Skip to main content
PUT

Authorizations

X-API-KEY
string
header
required

API key required for authentication

Path Parameters

userLocator
string
required

A user locator can be of the format:

  • email:<email>
  • userId:<userId>
  • phoneNumber:<phoneNumber>
  • twitter:<handle>
  • x:<handle>
Examples:

"email:user@example.com"

"userId:507f1f77bcf86cd799439011"

"userId:did:example:cm4lr5piw0h6t1bjho0onryql"

"phoneNumber:+12125551234"

"twitter:johndoe"

"x:@johndoe"

Body

application/json
acceptedAt
string<date-time>
required

ISO 8601 in UTC. Fractional seconds are optional.

Example:

"2024-01-15T10:30:00.000Z"

type
enum<string>
required

The legal document the user is accepting.

Available options:
crossmint-privacy-policy,
crossmint-terms-of-service
region
enum<string>

Region the user is operating in. Required when type is crossmint-terms-of-service and determines which regional Terms of Service document is accepted. Ignored for crossmint-privacy-policy.

Available options:
eu,
us,
worldwide
version
string

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.

Pattern: ^[0-9a-f]{24}$

Response

200 - application/json

Legal document acceptance recorded

acceptanceId
string
required

The id of this acceptance's record. Accepting the same version again for the same user returns the same id and the first acceptedAt.

acceptedAt
string<date-time>
required

ISO 8601 in UTC. Fractional seconds are optional.

Example:

"2024-01-15T10:30:00.000Z"