Delete project API key
DELETEhttps:/api.openai.com/v1/organization/projects/{project_id}/api_keys/{key_id}
Deletes an API key from the project.
Path parameters
project_id
string
Required
The ID of the project.key_id
string
Required
The ID of the API key.
Response
Confirmation of the key's deletion or an error if the key belonged to a service account
Example request
1 curl -X DELETE https://api.openai.com/v1/organization/projects/proj_abc/api_keys/key_abc \2 -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \3 -H "Content-Type: application/json"
Example response
1 {2 "object": "organization.project.api_key.deleted",3 "id": "key_abc",4 "deleted": true5 }
Built with