v3
latestOpenAPI 3.0.02026-08-081996601.2 MBList API keys
Lists the API keys the caller can access. The response shows the corpora each key can access and with what permissions.
Callers with the corpus_administrator, administrator, or owner role list every API key in the account. Users holding only other roles must set api_key_role to personal and receive only their own personal key; machine credentials — API keys, app clients, and service accounts — without one of those three roles cannot list keys at all.
Query parameters
The maximum number of API keys to return at one time.
The opaque cursor returned in metadata.page_key of the previous response. Omit it to fetch the first page.
A user-provided key for a corpus.
Filters the API keys to only those with permissions on the specified corpus key.
The role of the API key. A personal key has the same permissions as its owner. A serving API key can only perform query type requests on its corpora, and a serving_and_indexing key can perform both indexing and query type requests; these two roles are deprecated for creation — assign roles with api_roles instead.
Filters API keys by their role. Callers that hold none of the corpus_administrator, administrator, or owner roles must set this parameter to personal; omitting it or setting any other value returns a 403 error.
Headers
The platform makes a best effort to complete the request in the specified seconds, or it times out.
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Response
The response includes an api_keys array with the API keys, and a metadata field with the pagination key.
Example response
{
"metadata": {
"page_key": "eyJvZmZzZXQiOjF9"
}
}