v2
latestOpenAPI 3.0.02026-08-051996591.2 MBAPI Keys
Create an API key
Creates an API key. You can bind the key to one or more corpora. Each key has one of these access levels:
- Personal: the key has the same permissions as your user account.
- Query only (read-only).
- Query and index (read-write).
For example, create a read-only key for an application that only queries data.
:::note For more information about the different types of API keys, see API Key Management. :::
post/v2/api_keys
Headers
Request-Timeoutinteger
The platform makes a best effort to complete the request in the specified seconds, or it times out.
Request-Timeout-Millisinteger
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Request body
Example request
{
"corpus_keys": [
"my-corpus"
]
}Response
The response includes the assigned API key ID, name, secret key, enabled status, API key role, and API policy.