curl --request PUT \
--url https://staging.crossmint.com/api/2025-06-09/users/{userLocator}/legal-documents \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"acceptedAt": "2025-10-05T14:48:00Z",
"type": "crossmint-privacy-policy"
}
'{
"acceptanceId": "<string>",
"acceptedAt": "2024-01-15T10:30:00.000Z"
}Accept Legal Document
Record user acceptance of a legal document. Supported types are crossmint-privacy-policy and crossmint-terms-of-service. Send version to record the exact version the user was shown; without it, the latest version at the time of the call is recorded. When accepting crossmint-terms-of-service, the region field is required so the correct regional agreement is resolved. Returns the acceptance’s acceptanceId; accepting the same version again for the same user returns the existing acceptance, with its first acceptedAt.
API scope required: users.create
curl --request PUT \
--url https://staging.crossmint.com/api/2025-06-09/users/{userLocator}/legal-documents \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"acceptedAt": "2025-10-05T14:48:00Z",
"type": "crossmint-privacy-policy"
}
'{
"acceptanceId": "<string>",
"acceptedAt": "2024-01-15T10:30:00.000Z"
}Path Parameters
A user locator can be of the format:
email:<email>userId:<userId>phoneNumber:<phoneNumber>twitter:<handle>x:<handle>
"email:user@example.com"
"userId:507f1f77bcf86cd799439011"
"userId:did:example:cm4lr5piw0h6t1bjho0onryql"
"phoneNumber:+12125551234"
"twitter:johndoe"
"x:@johndoe"
Body
The version of the document the user was shown: the version Crossmint returns with each document the user still has to accept (also the last part of that document's URL, /legal/{type}/{slug}/{version}). When omitted, the latest version at the time of the call is recorded.
^[0-9a-f]{24}$Response
Legal document acceptance recorded
Was this page helpful?

