Certificate Management
View as MarkdownPath Parameters
Unique identifier of the agent (UUID format)
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/agents/string/certificates/identity"[ { "certificateIssuer": "CN=Agent Name Service CA,O=GoDaddy,C=US", "certificatePEM": "-----BEGIN CERTIFICATE-----\nCERT DATA\n...truncated...\n-----END CERTIFICATE-----", "certificatePublicKeyAlgorithm": "RSA", "certificateSerialNumber": "1234567890ABCDEF", "certificateSignatureAlgorithm": "SHA256withRSA", "certificateSubject": "CN=myagent.example.com,O=Example Corp,C=US,SAN:URI:ans://v1.0.0.myagent.example.com", "certificateValidFrom": "2019-08-24T14:15:22Z", "certificateValidTo": "2019-08-24T14:15:22Z", "chainPEM": "string", "csrId": "3081018b-0577-442d-b092-6e1f08ef6e0d" }]Path Parameters
Unique identifier of the agent (UUID format)
Request Body
application/json
CSR submission request
Request to submit a Certificate Signing Request
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/agents/string/certificates/identity" \ -H "Content-Type: application/json" \ -d '{ "csrPEM": "string" }'{ "csrId": "3081018b-0577-442d-b092-6e1f08ef6e0d", "message": "string"}Path Parameters
Unique identifier of the agent (UUID format)
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/agents/string/certificates/server"[ { "certificateIssuer": "CN=Agent Name Service CA,O=GoDaddy,C=US", "certificatePEM": "-----BEGIN CERTIFICATE-----\nCERT DATA\n...truncated...\n-----END CERTIFICATE-----", "certificatePublicKeyAlgorithm": "RSA", "certificateSerialNumber": "1234567890ABCDEF", "certificateSignatureAlgorithm": "SHA256withRSA", "certificateSubject": "CN=myagent.example.com,O=Example Corp,C=US,SAN:URI:ans://v1.0.0.myagent.example.com", "certificateValidFrom": "2019-08-24T14:15:22Z", "certificateValidTo": "2019-08-24T14:15:22Z", "chainPEM": "string", "csrId": "3081018b-0577-442d-b092-6e1f08ef6e0d" }]Path Parameters
Unique identifier of the agent (UUID format)
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/agents/string/certificates/server/renewal"{ "renewalType": "SERVER_CSR", "status": "PENDING_VALIDATION", "csrId": "3081018b-0577-442d-b092-6e1f08ef6e0d", "challenges": { "dns01": { "dnsRecord": { "name": "_acme-challenge.agent.example.com", "type": "TXT", "value": "string" }, "expiresAt": "2019-08-24T14:15:22Z", "httpPath": "/.well-known/acme-challenge/xyz123", "keyAuthorization": "string", "token": "string", "type": "DNS_01" }, "http01": { "dnsRecord": { "name": "_acme-challenge.agent.example.com", "type": "TXT", "value": "string" }, "expiresAt": "2019-08-24T14:15:22Z", "httpPath": "/.well-known/acme-challenge/xyz123", "keyAuthorization": "string", "token": "string", "type": "DNS_01" } }, "tlsaDnsRecord": { "name": "string", "priority": 0, "purpose": "DISCOVERY", "required": true, "ttl": 3600, "type": "HTTPS", "value": "string" }, "failureReason": "string", "expiresAt": "2019-08-24T14:15:22Z", "nextStep": { "action": "CONFIGURE_DNS", "description": "string", "endpoint": "http://example.com" }}Path Parameters
Unique identifier of the agent (UUID format)
Request Body
application/json
Renewal request (CSR or BYOC)
Request to renew server certificate (CSR or BYOC path). Exactly one of serverCsrPEM or serverCertificatePEM must be provided; they are mutually exclusive. serverCertificateChainPEM is only valid when serverCertificatePEM is provided.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/agents/string/certificates/server/renewal" \ -H "Content-Type: application/json" \ -d '{}'{ "renewalType": "SERVER_CSR", "status": "PENDING_VALIDATION", "csrId": "3081018b-0577-442d-b092-6e1f08ef6e0d", "challenges": { "dns01": { "dnsRecord": { "name": "_acme-challenge.agent.example.com", "type": "TXT", "value": "string" }, "expiresAt": "2019-08-24T14:15:22Z", "httpPath": "/.well-known/acme-challenge/xyz123", "keyAuthorization": "string", "token": "string", "type": "DNS_01" }, "http01": { "dnsRecord": { "name": "_acme-challenge.agent.example.com", "type": "TXT", "value": "string" }, "expiresAt": "2019-08-24T14:15:22Z", "httpPath": "/.well-known/acme-challenge/xyz123", "keyAuthorization": "string", "token": "string", "type": "DNS_01" } }, "expiresAt": "2019-08-24T14:15:22Z", "nextStep": { "action": "CONFIGURE_DNS", "description": "string", "endpoint": "http://example.com" }, "links": [ { "href": "https://api.godaddy.com/v1/agents/550e8400-e29b-41d4-a716-446655440000", "rel": "agent-details" } ]}Path Parameters
Unique identifier of the agent (UUID format)
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/agents/string/certificates/server/renewal"Path Parameters
Unique identifier of the agent (UUID format)
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/agents/string/certificates/server/renewal/verify-acme"{ "status": "VERIFIED", "csrId": "3081018b-0577-442d-b092-6e1f08ef6e0d", "tlsaDnsRecord": { "name": "string", "priority": 0, "purpose": "DISCOVERY", "required": true, "ttl": 3600, "type": "HTTPS", "value": "string" }, "nextStep": { "action": "CONFIGURE_DNS", "description": "string", "endpoint": "http://example.com" }}Path Parameters
Unique identifier of the agent (UUID format)
Unique identifier of the CSR
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/agents/string/csrs/497f6eca-6276-4993-bfeb-53cbbbba6f08/status"{ "csrId": "3081018b-0577-442d-b092-6e1f08ef6e0d", "failureReason": "string", "status": "PENDING", "submittedAt": "2019-08-24T14:15:22Z", "type": "SERVER", "updatedAt": "2019-08-24T14:15:22Z"}Last updated on
How is this guide?