NAME
OpenAPI::Client::OpenAI::Path::organization-admin_api_keys-key_id - Documentation for the /organization/admin_api_keys/{key_id} path.
DESCRIPTION
This document describes the API endpoint at /organization/admin_api_keys/{key_id}
.
PATHS
DELETE /organization/admin_api_keys/{key_id}
Delete an organization admin API key
Delete the specified admin API key.
Operation ID
admin-api-keys-delete
$client->admin-api-keys-delete( ... );
Parameters
key_id
(in path) (Required) -Type:
string
Responses
Status Code: 200
Confirmation that the API key was deleted.
Content Types:
application/json
Example (See the OpenAI spec for more detail):
{ "deleted" : true, "id" : "key_abc", "object" : "organization.admin_api_key.deleted" }
GET /organization/admin_api_keys/{key_id}
Retrieve a single organization API key
Get details for a specific organization API key by its ID.
Operation ID
admin-api-keys-get
$client->admin-api-keys-get( ... );
Parameters
key_id
(in path) (Required) -Type:
string
Responses
Status Code: 200
Details of the requested API key.
Content Types:
application/json
Example (See the OpenAI spec for more detail):
{ "created_at" : 1711471533, "id" : "key_abc", "name" : "Administration Key", "object" : "organization.admin_api_key", "owner" : { "created_at" : 1711471533, "id" : "sa_456", "name" : "My Service Account", "role" : "member", "type" : "service_account" }, "redacted_value" : "sk-admin...def", "value" : "sk-admin-1234abcd" }
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.