Create an API key
Issues a new API key in this workspace. The key is shown only in this response, and only its hash is stored. expiresAt makes it stop working at a set time, useful for a contractor or a one-off script. An expired key stays in the list until you revoke it.
Authorization
bearerAuth An API key from POST /v1/api-keys. Keys start with ref_.
In: header
Request Body
application/json
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/api-keys" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "name": "string", "prefix": "string", "scope": "read", "createdAt": "string", "lastUsedAt": "string", "expiresAt": "string", "key": "string"}Update the company profile
Changing profile fields rebuilds the classifier's context. Setting `context` yourself replaces it until the next profile change. New mentions are scored with the change right away.
List API keys
Lists the workspace's active keys, latest first, with name, prefix, scope, expiry and last use. Revoked keys and secrets are never listed.