OpenAI API

OpenAI API

2.3.0OAS 3.0

The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.

API Base URL
  • Server 1:https://api.openai.com/v1
Security
ApiKeyAuth (http)

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer 123

Additional Information

List organization API keys

Retrieve a paginated list of organization admin API keys.

get
https://api.openai.com/v1/organization/admin_api_keys

Query Parameters

afterstring | null

Return keys with IDs that come after this ID in the pagination order.

orderstring

Order results by creation time, ascending or descending.

Allowed values:ascdesc

Default:asc

limitinteger

Maximum number of keys to return.

Default:20

Response

200 application/json

A list of organization API keys.

ApiKeyList

objectstring

Example:list

dataarray[object]
Show Child Parameters
has_moreboolean

Example:false

first_idstring

Example:key_abc

last_idstring

Example:key_xyz

get/organization/admin_api_keys
 
200 application/json

Create an organization admin API key

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

post
https://api.openai.com/v1/organization/admin_api_keys

Body

application/json
namestringrequired

Example:New Admin Key

Response

200 application/json

The newly created admin API key.

AdminApiKey

objectstring

Example:organization.admin_api_key

idstring

Example:key_abc

namestring

Example:Administration Key

redacted_valuestring

Example:sk-admin...def

valuestring

Example:sk-admin-1234abcd

created_atinteger(int64)

Example:1711471533

ownerobject
Show Child Parameters
post/organization/admin_api_keys

Body

{ "name": "New Admin Key" }
 
200 application/json