GET/api_keys/{apiKeyID}/secret

Get an API key secret

Retrieves the secret for an API key by its identifier. Supply the key ID using the ak_ or api_key_ prefix followed by 32 hexadecimal characters. Treat the returned secret as a credential.

1 parameter
apiKeyIDstringrequired
The API key identifier, using the `ak_` or `api_key_` prefix followed by 32 hexadecimal characters.

3 status codes
200Returns an object containing the API key `secret`. Treat the secret as a credential.
secretstringrequired
400Returned when the request is invalid.
errorsarray<object>required
404Returned when the API key is not found.
errorsarray<object>required

Error handling

A 400 indicates an invalid request; a 404 indicates the API key was not found. The apiKeyID path parameter must match either the ak_ or api_key_ prefix followed by 32 hexadecimal characters.