API keys
Issue, scope, rotate and revoke the keys your integrations use, in the app or through the API.
An API key is the credential a back-office integration, script or agent presents to the Acreum API. Keys are issued per organization, carry an explicit list of scopes, and may be bound to one legal entity.
Issue a key in the app
- Go to Organization → API Keys. The page needs the
admin:keyscapability, which owners and admins have. - Select New API key.
- Enter a name that says what the key is for ("Yardi sync", "Board reporting").
- Pick the scopes. The dialog groups them by module and warns when a write you granted usually needs a read from another module; accept the suggestion unless you know the integration never opens those forms.
- Optionally bind the key to one legal entity. The key can then only touch that entity's records.
- Optionally set an expiry. An expiry in the past is refused
(
API_KEY_EXPIRES_AT_IN_PAST). - Select Issue key. Copy the secret now; it is never shown again.
The list shows each key's name, prefix, scopes, entity binding, rate-limit tier, last used time, requests in the last 24 hours and status (an expired key reads Expired). Rotate and revoke are in the row menu.
Issue a key through the API
The same operations are available under /v1/api-keys. All require the admin:keys
scope, which only an owner's or admin's session (or a key explicitly granted it) carries.
| Method | Path | Purpose |
|---|---|---|
POST | /v1/api-keys | Issue a new key. Returns the secret once. Takes no Idempotency-Key: a retry issues a second key. |
GET | /v1/api-keys | List keys for the organization. Not paginated: one response holds every key, and meta.next_cursor is null. |
GET | /v1/api-keys/{id} | Metadata for one key. The secret is never returned. |
PATCH | /v1/api-keys/{id} | Update name, scopes or expiry (and rate_limit_tier, staff only). |
POST | /v1/api-keys/{id}/rotate | Revoke the key and issue a replacement with a new id. The old secret stops working immediately. Returns the new secret once. |
POST | /v1/api-keys/{id}/revoke | Permanently disable the key. Idempotent; safe to call twice. |
GET | /v1/api-keys/{id}/usage | requests_24h, requests_30d and last_used_at for the key. |
curl -sS -X POST "$API_BASE/v1/api-keys" \
-H "Authorization: Bearer $ADMIN_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Nightly rent roll export",
"scopes": ["reports:read", "contracts:read", "properties:read"],
"legal_entity_id": null,
"expires_at": "2027-12-31T00:00:00Z"
}' | jq '.data.secret'A new key's scopes cannot exceed the scopes of the credential that issues it, and an
expires_at in the past is refused (API_KEY_EXPIRES_AT_IN_PAST) on create and update.
The rate_limit_tier field on a key can only be changed by Acreum staff
(API_KEY_TIER_OVERRIDE_FORBIDDEN); see Rate limits.
Rotate a key
Rotation revokes the key and issues a replacement with a new id, named after the old one with " (rotated)" appended. The replacement keeps the scopes, legal-entity binding, rate-limit tier and expiry. Plan the cut-over: the old secret is rejected from the moment the call returns.
- Call
POST /v1/api-keys/{id}/rotate(or Rotate in the row menu). - Store the new secret, and the new key id if you track it, in your integration's configuration.
- Restart or reload the integration. Requests still using the old secret return
401 API_KEY_REVOKED.
Revoke a key
POST /v1/api-keys/{id}/revoke (or Revoke in the row menu) disables the key
permanently. Subsequent requests return 401 API_KEY_REVOKED. Revocation cannot be
undone; issue a new key instead.
Audit
Key creation, rotation, revocation, and every successful write made with a key, are recorded in the organization's Audit log with the key's id, never its secret. Reads are not audited; they are counted in the key's usage.