9 endpoints

# API Keys

API key creation, management, permissions, and usage logs.

GET`/api-keys`List API KeysGet all API keys for the company.

POST`/api-keys`Create API KeyCreate a new API key. The full key is only shown once, when it is created, so store it securely.

GET`/api-keys/{uuid}`Get API KeyGet details of an API key (never returns the full key value).

PUT`/api-keys/{uuid}`Update API KeyUpdate API key name, description, or active status.

DELETE`/api-keys/{uuid}`Delete API KeyDelete an API key (immediately revokes access).

POST`/api-keys/{uuid}/regenerate`Regenerate API KeyGenerate a new key value. The old key is immediately invalidated. New key shown once only.

GET`/api-keys/{uuid}/permissions`Get API Key PermissionsGet the scoped permissions for an API key.

POST`/api-keys/{uuid}/permissions`Set API Key PermissionsSet permissions for an API key. Replaces existing permissions.

GET`/api-key-usage`API Key Usage LogView API key usage statistics and recent requests.

---

**URL:** https://cube-hr.co.uk/docs/api-keys
