Get an API key
Returns an API key. The response shows the corpora the key can access and with what permissions.
Users that hold none of the corpus_administrator, administrator, or owner roles can only get their own personal API key; a key that exists but belongs to another user returns a 404 error. Machine credentials — API keys, app clients, and service accounts — without one of those three roles cannot call this operation.
Path parameters
The ID of the API key.
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 the API key name, enabled status, API key role, and API policy.
Changes
Changed in 2 of the 7 revisions of this API.116
- ▲
the
response's property type changed fromstringto no type for statusresponse-property-type-changed
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added to the
response propertyallOflist for the response statusresponse-property-all-of-added
- ○
removed the
personalenum value from theresponse property for the response statusresponse-property-enum-value-removed
- ○
removed the
servingenum value from theresponse property for the response statusresponse-property-enum-value-removed
- ○
removed the
serving_and_indexingenum value from theresponse property for the response statusresponse-property-enum-value-removed
- ○
response property
api_key_rolereactivatedresponse-property-reactivated
- ▲
- ●
added the new
agent_end_userenum value to the//response property for the response statusresponse-property-enum-value-added
- ●