GET
/organization/projects/{project_id}/api_keys/{api_key_id}Retrieve a project API key
Retrieves an API key in an organization project by its identifier. Use project_id and api_key_id to select the project and key whose redacted value, owner access, and usage timestamps you need to inspect.
project_idstringrequired
The identifier of the project that contains the API key.
api_key_idstringrequired
The identifier of the project API key to retrieve.
200Returns the project API key object, including its redacted value, name, creation and usage timestamps, owner project access, and owner details.
objectstringrequired
The object type, which is always `organization.project.api_key`
redacted_valuestringrequired
The redacted value of the API key
namestringrequired
The name of the API key
created_atintegerrequired
The Unix timestamp (in seconds) of when the API key was created
expires_atintegeroptional
The Unix timestamp (in seconds) when the API key expires, or null if it does not expire.
last_used_atintegerrequired
The Unix timestamp (in seconds) of when the API key was last used.
idstringrequired
The identifier, which can be referenced in API endpoints
owner_project_accessstringrequired
Whether the API key's owner currently has effective access to the project.
ownerobjectrequired
400Returned when the project is archived.
errorobjectrequired
403Returned when the authenticated user does not have permission to retrieve the project API key.
errorobjectrequired
Details about the permission error.
404Returned when the project or API key is not found.
errorobjectrequired
429Returned when too many management requests are made; reduce the request rate and try again later.
errorobjectrequired
Error handling
A 400 is returned when the project is archived, and a 403 is returned when the authenticated user lacks permission. A 404 is returned when the project or API key is not found; a 429 is returned when management requests are sent too frequently. The project_id and api_key_id path parameters must identify the project and API key to retrieve.