Skip to main content

Endpoint

POST https://api.documind.cloud/api/v1/auth/api-keys

Authentication

Requires api_keys:write scope.

Request Body

FieldTypeRequiredDescription
namestringYesAPI key name
descriptionstringNoAPI key description
scopesarrayNoPermission scopes
expires_in_daysnumberNoExpiration in days
org_widebooleanNoAssociate the key with the caller’s organization
project_namestringNoProject label stored with the key

Response

{
  "id": "key-id",
  "key": "your-api-key-here",
  "name": "Production Key",
  "description": "Production automation",
  "prefix": "abc12345",
  "scopes": ["extractions:read", "extractions:write"],
  "is_active": true,
  "is_revoked": false,
  "project_name": "Invoices",
  "expires_at": null,
  "last_used_at": null,
  "revoked_at": null,
  "created_at": "2026-06-02T10:00:00Z",
  "updated_at": "2026-06-02T10:00:00Z"
}
The full API key is only returned once upon creation. Store it securely.