Skip to Content
APIReferenceConsent API

Consent API

5 operations from the external ASIRI OpenAPI surface.

Public endpoint

POST/v1/consent/{id}/records

Capture a new consent record (append-only)

Captures a single consent record against a published notice. The notice MUST be in status='published'; a draft or archived notice returns 409 conflict with `code: "consent_notice_not_published"` and `requiredStatus` / `actualStatus` fields on the error envelope. Publish via POST /v1/consent/{id}/publish before capturing. The records ledger is append-only — withdrawals create a new linked row rather than mutating the original.
Requiresconsent:write

Security

bearerAuthorization: Bearer <ASIRI_API_KEY>

Parameters

NameInRequiredSchemaDescription
idpathyesstring-

Request body

application/jsonobject

Responses