List all organization and project API keys.
GEThttps:/api.openai.com/v1/organization/admin_api_keys
Retrieve a paginated list of organization admin API keys.
Query parameters
after
string or null
order
string
Defaults: asc
limit
integer
Defaults: 20
Response
A list of admin and project API key objects.
Example request
1 curl https://api.openai.com/v1/organization/admin_api_keys?after=key_abc&limit=20 \2 -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \3 -H "Content-Type: application/json"
Example response
1 {2 "object": "list",3 "data": [4 {5 "object": "organization.admin_api_key",6 "id": "key_abc",7 "name": "Main Admin Key",8 "redacted_value": "sk-admin...def",9 "created_at": 1711471533,10 "last_used_at": 1711471534,11 "owner": {12 "type": "service_account",13 "object": "organization.service_account",14 "id": "sa_456",15 "name": "My Service Account",16 "created_at": 1711471533,17 "role": "member"18 }19 }20 ],21 "first_id": "key_abc",22 "last_id": "key_abc",23 "has_more": false24 }
Built with