Sample - OpenAI API
DELETE/organization/projects/{project_id}/api_keys/{api_key_id}

Delete project API key

Deletes an API key from the project.

Returns confirmation of the key deletion, or an error if the key belonged to a service account.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
project_idstringrequired
The ID of the project.
api_key_idstringrequired
The ID of the API key.

2 status codes
200Project API key deleted successfully.
objectstringrequired
Allowed:organization.project.api_key.deleted
idstringrequired
deletedbooleanrequired
400Error response for various conditions.
errorobjectrequired

Error handling

A 400 is returned: Error response for various conditions.