Skip to main content
POST
cURL
Required scope: consent:write Record authorization and evidence. Required scope: consent:write. Caller must have authority; recording consent does not manufacture user authorization. Once account cancellation is submitted, processing and usage deductions stop immediately. Reject new operational commands with 409 invalid_state; pending work is cancelled without another debit. Read-only reporting remains available until workspace deletion. Accepted commands have a durable request receipt. Full response replay lasts 24 hours; afterward the same key and target return 409 idempotency_result_expired without re-execution. Different payloads return 409 idempotency_conflict. Use GET /v1/request-receipts/lookup to find the original resource. The fingerprint includes the resolved target path and intended payload; a key used on another target is rejected rather than replayed onto it. Pre-execution validation or insufficient-credit rejection creates no accepted receipt. Product scope · Processing lifecycle · Errors

Authorizations

Authorization
string
header
required

Server-to-server API key bound to exactly one workspace, institution tenant and environment. No caller-supplied workspace override is accepted. Do not use in public browser code.

Headers

X-Request-ID
string

Optional caller correlation ID; the response includes AMLOK request_id.

Idempotency-Key
string
required

Reuse for retries of the same intended command and identical payload. Retention: 24 hours.

Body

application/json
subject_id
string
required

Subject granting or represented by authorization.

Minimum string length: 1
subject_type
enum<string>
required

Business or person.

Available options:
business,
person
purposes
string[]
required

Permitted documented purposes.

Minimum array length: 1
scopes
string[]
required

Data/action permissions.

Minimum array length: 1
policy_version
string
required

Text or authority version captured.

Minimum string length: 1
evidence_document_id
string
required

Evidence of real authorization.

Minimum string length: 1

Response

Record authorization and evidence.

data
consent · object
required

Authorization and permitted use linked to a subject and client. Population depends on source and tenant entitlement.

meta
object
required