Skip to content
Primary navigation

Admin API Keys

List all organization and project API keys.
AdminApiKeyListPage admin().organization().adminApiKeys().list(AdminApiKeyListParamsparams = AdminApiKeyListParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/organization/admin_api_keys
Create admin API key
AdminApiKeyCreateResponse admin().organization().adminApiKeys().create(AdminApiKeyCreateParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
POST/organization/admin_api_keys
Retrieve admin API key
AdminApiKey admin().organization().adminApiKeys().retrieve(AdminApiKeyRetrieveParamsparams = AdminApiKeyRetrieveParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/organization/admin_api_keys/{key_id}
Delete admin API key
AdminApiKeyDeleteResponse admin().organization().adminApiKeys().delete(AdminApiKeyDeleteParamsparams = AdminApiKeyDeleteParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
DELETE/organization/admin_api_keys/{key_id}
ModelsExpand Collapse
class AdminApiKey:

Represents an individual Admin API key in an org.

String id

The identifier, which can be referenced in API endpoints

long createdAt

The Unix timestamp (in seconds) of when the API key was created

formatunixtime
JsonValue; object_ "organization.admin_api_key"constant"organization.admin_api_key"constant

The object type, which is always organization.admin_api_key

Owner owner
Optional<String> id

The identifier, which can be referenced in API endpoints

Optional<Long> createdAt

The Unix timestamp (in seconds) of when the user was created

formatunixtime
Optional<String> name

The name of the user

Optional<String> object_

The object type, which is always organization.user

Optional<String> role

Always owner

Optional<String> type

Always user

String redactedValue

The redacted value of the API key

Optional<Long> lastUsedAt

The Unix timestamp (in seconds) of when the API key was last used

formatunixtime
Optional<String> name

The name of the API key