Projects

List project API keys

Changed on

Returns a list of API keys in the project.

get/organization/projects/{project_id}/api_keys

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/organization/projects/{project_id}/api_keys
  • Auth
    HTTP bearer

Path parameters

project_idstring required

The ID of the project.

Query parameters

limitinteger

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.

afterstring

A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.

owner_project_access'active' | 'inactive' | 'any'

Filter API keys by whether the owner currently has effective access to the project. Use active for owners with access, inactive for owners without access, or any for all enabled project API keys. If omitted, the endpoint applies its existing membership-based visibility rules, which may exclude some enabled keys.

Response

Project API keys listed successfully.

object'list' required
first_idstring nullable
last_idstring nullable
has_moreboolean required

Changes

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • breaking

      the response property became optional for the status

    • breaking

      the response property became optional for the status

    • breaking

      response property first_id list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property last_id list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      removed the required property //// from the response with the status

    • breaking

      removed the required property //// from the response with the status

    • breaking

      removed the required property //// from the response with the status

    • info

      the endpoint scheme security AdminApiKeyAuth was added to the API

    • info

      added the new optional query request parameter owner_project_access

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the optional property // to the response with the status

    • info

      removed the member enum value from the //// response property for the response status

    • info

      removed the member enum value from the //// response property for the response status

    • info

      removed the owner enum value from the //// response property for the response status

    • info

      removed the owner enum value from the //// response property for the response status

    • info

      added the required property // to the response with the status

    • info

      added the required property //// to the response with the status

    • info

      added the required property // to the response with the status