Acreum Docs
Platform

API Keys

GET
/v1/api-keys

Required scope: admin:keys

Pagination: none

Authorization

access-token
headerAuthorizationBearer <token>

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/api-keys'
{  "data": [    {      "created_at": "string",      "created_by": "string",      "expires_at": "string",      "id": "string",      "kind": "standard",      "last_used_at": "string",      "legal_entity_id": "string",      "name": "string",      "plan_only": true,      "prefix": "string",      "rate_limit_tier": "default",      "revoked_at": "string",      "scopes": [        "string"      ]    }  ],  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Create a new API key

POST
/v1/api-keys

Required scope: admin:keys

Error codes: VALIDATION_FAILED, FORBIDDEN, LEGAL_ENTITY_NOT_IN_SCOPE, API_KEY_EXPIRES_AT_IN_PAST

Authorization

access-token
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
expires_at?string

ISO-8601 timestamp after which the key stops authenticating.

kind?string
Default"standard"
Value in"standard""acreum_internal"
legal_entity_id?string

Bind the key to a single legal entity (hard refusal on cross-LE access).

name*string

Human-readable label for this key.

plan_only?boolean

A plan-only key can read (GET) and call /v1/plans, but cannot write directly: its writes must be steps of a plan (preview, then commit).

Defaultfalse
rate_limit_tier?string
Default"default"
Value in"default""elevated"
scopes*array<>

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/api-keys' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "scopes": [    "documents:read"  ]}'
{  "data": {    "created_at": "string",    "created_by": "string",    "expires_at": "string",    "id": "string",    "kind": "standard",    "last_used_at": "string",    "legal_entity_id": "string",    "name": "string",    "plan_only": true,    "prefix": "string",    "rate_limit_tier": "default",    "revoked_at": "string",    "scopes": [      "string"    ],    "secret": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Get a single API key

GET
/v1/api-keys/{id}

Required scope: admin:keys

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/api-keys/string'
{  "data": {    "created_at": "string",    "created_by": "string",    "expires_at": "string",    "id": "string",    "kind": "standard",    "last_used_at": "string",    "legal_entity_id": "string",    "name": "string",    "plan_only": true,    "prefix": "string",    "rate_limit_tier": "default",    "revoked_at": "string",    "scopes": [      "string"    ]  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Update an API key

PATCH
/v1/api-keys/{id}

Required scope: admin:keys

Error codes: NOT_FOUND, VALIDATION_FAILED, FORBIDDEN, API_KEY_TIER_OVERRIDE_FORBIDDEN, API_KEY_EXPIRES_AT_IN_PAST

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body
expires_at?string
name?string
plan_only?boolean

Make the key plan-only (reads and /v1/plans only; writes go through plans) or lift that.

rate_limit_tier?string
Value in"default""elevated"
scopes?array<>

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/api-keys/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "created_at": "string",    "created_by": "string",    "expires_at": "string",    "id": "string",    "kind": "standard",    "last_used_at": "string",    "legal_entity_id": "string",    "name": "string",    "plan_only": true,    "prefix": "string",    "rate_limit_tier": "default",    "revoked_at": "string",    "scopes": [      "string"    ]  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/api-keys/{id}/revoke

Required scope: admin:keys

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/api-keys/string/revoke'
{  "data": {    "created_at": "string",    "created_by": "string",    "expires_at": "string",    "id": "string",    "kind": "standard",    "last_used_at": "string",    "legal_entity_id": "string",    "name": "string",    "plan_only": true,    "prefix": "string",    "rate_limit_tier": "default",    "revoked_at": "string",    "scopes": [      "string"    ]  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/api-keys/{id}/rotate

Required scope: admin:keys

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/api-keys/string/rotate'
{  "data": {    "created_at": "string",    "created_by": "string",    "expires_at": "string",    "id": "string",    "kind": "standard",    "last_used_at": "string",    "legal_entity_id": "string",    "name": "string",    "plan_only": true,    "prefix": "string",    "rate_limit_tier": "default",    "revoked_at": "string",    "scopes": [      "string"    ],    "secret": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/api-keys/{id}/usage

Required scope: admin:keys

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/api-keys/string/usage'
{  "data": {    "last_used_at": "string",    "requests_24h": 0,    "requests_30d": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}