Logo
Akamai APIs API Documentation

Get certificate history

GET https://{{host}}/cps/v2/enrollments/:enrollmentId/history/certificates

View the certificate history.

 

Body PARAM

Key Datatype Required Description 
accountSwitchKey
string (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).



HEADERS

Key Datatype Required Description 
Accept
string




RESPONSES

status OK

{ "certificates": [ { "deploymentStatus": "inactive", "geography": "core", "multiStackedCertificates": [ { "certificate": "-----BEGIN CERTIFICATE-----\nMIID ... <sample - removed for readability> .... Bp52w=\n-----END CERTIFICATE-----", "expiry": "2022-02-15T06:05:33Z", "keyAlgorithm": "RSA", "trustChain": "-----BEGIN CERTIFICATE-----\nMIID ... <sample - removed for readability> .... 7gf0=\n-----END CERTIFICATE-----" } ], "primaryCertificate": { "certificate": "-----BEGIN CERTIFICATE-----\nMIID ... <sample - removed for readability> .... 9t0G\n-----END CERTIFICATE-----", "expiry": "2022-02-15T06:05:32Z", "keyAlgorithm": "ECDSA", "trustChain": "-----BEGIN CERTIFICATE-----\nMIIDT ... <sample - removed for readability> .... okCk=\n-----END CERTIFICATE-----" }, "ra": "third-party", "slots": [], "stagingStatus": "inactive", "type": "third-party" }, { "deploymentStatus": "active", "geography": "core", "multiStackedCertificates": [ { "certificate": "-----BEGIN CERTIFICATE-----\nMIID ... <sample - removed for readability> .... Mweq/\n-----END CERTIFICATE-----", "expiry": "2022-02-05T13:21:20Z", "keyAlgorithm": "RSA", "trustChain": "-----BEGIN CERTIFICATE-----\nMIID ... <sample - removed for readability> .... KEUp0=\n-----END CERTIFICATE-----" } ], "primaryCertificate": { "certificate": "-----BEGIN CERTIFICATE-----\nMIID ... <sample - removed for readability> .... J9JQs/v0=\n-----END CERTIFICATE-----", "expiry": "2022-02-05T13:21:21Z", "keyAlgorithm": "ECDSA", "trustChain": "-----BEGIN CERTIFICATE-----\nMIID ... <sample - removed for readability> .... KEUp0=\n-----END CERTIFICATE-----" }, "ra": "third-party", "slots": [ 19598 ], "stagingStatus": "active", "type": "third-party" } ] }



Curl
curl -X GET 'https://undefined/cps/v2/enrollments/:enrollmentId/history/certificates?accountSwitchKey=' -H 'Accept: application/vnd.akamai.cps.certificate-history.v2+json'

ENDPOINTS