=encoding utf8

=head1 NAME

OpenAPI::Client::OpenAI::Path::organization-admin_api_keys - Documentation for the /organization/admin_api_keys path.

=head1 DESCRIPTION

This document describes the API endpoint at C</organization/admin_api_keys>.

=head1 PATHS


=head2 C<GET /organization/admin_api_keys>

List organization API keys


Retrieve a paginated list of organization admin API keys.



=head3 Operation ID

C<admin-api-keys-list>

    $client->admin-api-keys-list( ... );

=head3 Parameters

=over 4

=item * C<after> (in query) (Optional) - 

Type: C<string>



=item * C<order> (in query) (Optional) - 

Type: C<string>

Allowed values: C<asc, desc>


Default: C<asc>


=item * C<limit> (in query) (Optional) - 

Type: C<integer>


Default: C<20>


=back


=head3 Responses


=head4 Status Code: C<200>

A list of organization API keys.


=head4 Content Types:

=over 4


=item * C<application/json>

Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/master/openapi.yaml>):

    {
       "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"
    }


=back

=head2 C<POST /organization/admin_api_keys>

Create an organization admin API key


Create a new admin-level API key for the organization.



=head3 Operation ID

C<admin-api-keys-create>

    $client->admin-api-keys-create( ... );

=head3 Parameters

=over 4

=back

=head3 Request Body
  
=head3 Content Type: C<application/json>

    
      

      
      
Example:

    {
       "name" : "New Admin Key"
    }


             

=head3 Responses


=head4 Status Code: C<200>

The newly created admin API key.


=head4 Content Types:

=over 4


=item * C<application/json>

Example (See the L<OpenAI spec for more detail|https://github.com/openai/openai-openapi/blob/master/openapi.yaml>):

    {
      "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"
      }
    }


=back

=head1 SEE ALSO

L<OpenAPI::Client::OpenAI::Path>

=head1 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.

=cut