Organizations

List organization API keys

Changed on

List all API keys associated with users in an organization, sorted by creation date with the newest keys first. An organization-scoped API key determines the organization; otherwise, provide org_id. If org_id does not match the organization-scoped key's organization, or the caller is not an owner of the organization, no keys are returned. Responses include key metadata only; key secrets are never returned. To list service tokens, use GET /v1/service_token.

get/v1/organization/api_keys

Request

  • Base URL
    https://api.braintrust.dev
  • Auth
    • HTTP bearer
    • or none

Query parameters

limitinteger nullable

Limit the number of objects to return

starting_afterstring uuid

Pagination cursor id.

For example, if the final item in the last page you fetched had an id of foo, pass starting_after=foo to fetch the next page. Note: you may only pass one of starting_after and ending_before

ending_beforestring uuid

Pagination cursor id.

For example, if the initial item in the last page you fetched had an id of foo, pass ending_before=foo to fetch the previous page. Note: you may only pass one of starting_after and ending_before

string uuid
OR
string[]
api_key_namestring

Name of the api_key to search for

org_idstring uuid

Identify the organization to list API keys for

created_afterstring date-time

Include API keys created at or after this timestamp

created_beforestring date-time

Include API keys created at or before this timestamp

Response

Returns a list of api_key objects

Changes