Create admin API key
Changed onCreate an organization admin API key
post/organization/admin_api_keys
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/organization/admin_api_keys
- AuthHTTP bearer
Request body
Example request
{
"name": "New Admin Key",
"expires_in_seconds": 2592000
}Response
The newly created admin API key.
Example response
{
"id": "key_abc",
"name": "Administration Key",
"redacted_value": "sk-admin...def",
"created_at": 1711471533,
"expires_at": 1714063533,
"last_used_at": 1711471534,
"owner": {
"type": "user",
"object": "organization.user",
"id": "sa_456",
"name": "My Service Account",
"created_at": 1711471533,
"role": "owner"
},
"value": "sk-admin-1234abcd"
}Changes
- info
added the optional property
//////to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info