NAME
OpenAPI::Client::OpenAI::Path::organization-admin_api_keys - Documentation for the /organization/admin_api_keys path.
DESCRIPTION
This document describes the API endpoint at /organization/admin_api_keys
.
PATHS
GET /organization/admin_api_keys
List all organization and project API keys.
List organization API keys
Operation ID
admin-api-keys-list
$client->admin-api-keys-list( ... );
Parameters
after
(in query) (Optional) -Type:
string
order
(in query) (Optional) -Type:
string
Allowed values:
asc, desc
Default:
asc
limit
(in query) (Optional) -Type:
integer
Default:
20
Responses
Status Code: 200
A list of organization API keys.
Content Types:
application/json
Example (See the OpenAI spec for more detail):
{ "data" : [ "{\n \"object\": \"organization.admin_api_key\",\n \"id\": \"key_abc\",\n \"name\": \"Main Admin Key\",\n \"redacted_value\": \"sk-admin...xyz\",\n \"created_at\": 1711471533,\n \"last_used_at\": 1711471534,\n \"owner\": {\n \"type\": \"user\",\n \"object\": \"organization.user\",\n \"id\": \"user_123\",\n \"name\": \"John Doe\",\n \"created_at\": 1711471533,\n \"role\": \"owner\"\n }\n}\n" ], "first_id" : "key_abc", "has_more" : false, "last_id" : "key_xyz", "object" : "list" }
POST /organization/admin_api_keys
Create admin API key
Create an organization admin API key
Operation ID
admin-api-keys-create
$client->admin-api-keys-create( ... );
Parameters
Request Body
Content Type: application/json
Example:
{
"name" : "New Admin Key"
}
Responses
Status Code: 200
The newly created admin API key.
Content Types:
application/json
Example (See the OpenAI spec for more detail):
{ "object": "organization.admin_api_key", "id": "key_abc", "name": "Main Admin Key", "redacted_value": "sk-admin...xyz", "created_at": 1711471533, "last_used_at": 1711471534, "owner": { "type": "user", "object": "organization.user", "id": "user_123", "name": "John Doe", "created_at": 1711471533, "role": "owner" } }
SEE ALSO
COPYRIGHT AND LICENSE
Copyright (C) 2023-2025 by Nelson Ferraz
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.0 or, at your option, any later version of Perl 5 you may have available.