API Keys
API keys authenticate your requests to the Humiris API. Generate keys with specific scopes, rotate them on a schedule, and manage permissions per key.
How to generate an API key
You can generate API keys from the Humiris dashboard or via the API itself (using an existing admin key). Each key is a unique string prefixed with hum_sk_live_ for production or hum_sk_test_ for sandbox environments.
The full key is shown only once at creation time. Store it securely. If you lose a key, you can revoke it and generate a new one.
Authentication: Bearer token
Include your API key in the Authorization header of every request as a Bearer token.
If the key is missing, invalid, or expired, the API returns a 401 Unauthorized response.
Scopes and permissions
Each API key can be restricted to specific scopes. This follows the principle of least privilege: give each key only the permissions it needs.
agents:readList and retrieve agent detailsagents:writeCreate, update, and delete agentsemail:readRead agent email inboxesemail:sendSend email from agent addressesphone:readRead SMS inbox and call logsphone:sendSend SMS and initiate callswallet:readView wallet balances and historywallet:writeSign and send transactionscard:readView card details and transactionscard:writeIssue cards and update controlscomputer:readView VPS status and backupscomputer:writeExecute commands and manage VPSwebhooks:manageCreate, update, and delete webhooksapi-keys:manageCreate and revoke API keysKey rotation
Rotate API keys regularly to minimize risk. Humiris supports a graceful rotation workflow: create a new key, deploy it to your application, then revoke the old key. Both keys will work during the transition period.
You can also set an expiration date on keys. Expired keys are automatically revoked and will return 401 Unauthorized after the expiration timestamp.