Skip to main content
POST
Record acceptance of every active legal document
Records the authenticated user’s acceptance of the legal documents currently in force. document_ids must match the active set exactly. A missing id, or one that has since been superseded, is rejected with a 400. This stops a page that was loaded before a new version went live from recording an acceptance of the wrong documents. Re-fetch the document list and submit every document_id it returns. One ledger row is written per document, all sharing a timestamp, IP address and user-agent. Accepting is idempotent: a document the user already agreed to keeps its original acceptance date. Session auth only. This endpoint is not usable with an API key.

Authorizations

Authorization
string
header
required

API key from the Omnifence dashboard

Body

application/json
document_ids
string[]
required
Minimum array length: 1
Minimum string length: 1

Response

200 - application/json

Default Response

accepted
boolean
required
accepted_at
string<date-time>
required
documents
object[]
required