Record legal acceptance
POST /api/v1/onboarding-state
Records the authenticated user’s acceptance of the Terms of Service and Privacy Policy. Both timestamps must be valid dates and both version identifiers are required. The submitted timestamps are validated but the server records the acceptance time when it handles the request.
Authenticate with a portal session token.
Request body
application/json RecordLegalOnboardingAcceptance
privacy_policy_accepted_atstring requiredA value accepted by date validation.
privacy_versionstring requiredLength: at most 20 charactersterms_accepted_atstring requiredA value accepted by date validation.
terms_versionstring requiredLength: at most 20 characters
Generated sample
{
"privacy_policy_accepted_at": "string",
"privacy_version": "string",
"terms_accepted_at": "string",
"terms_version": "string"
}Responses
201 Legal acceptance recorded.
application/json LegalOnboardingState
privacy_policy_accepted_atstring (date-time) or null requiredprivacy_versionstring or null requiredterms_accepted_atstring (date-time) or null requiredterms_versionstring or null required
Generated sample
{
"privacy_policy_accepted_at": "2026-01-01T00:00:00Z",
"privacy_version": "string",
"terms_accepted_at": "2026-01-01T00:00:00Z",
"terms_version": "string"
}401 Authentication is missing or invalid.
application/json object
errorobject requiredcodestring requiredValue:"unauthenticated"messagestring required
422 One or more required values are missing or invalid.
application/json object
errorany requiredOne of
- string
- object
codestringfieldsobjectOther keys: array of string
messagestring
- object
codestringmessagestring
429 The route limit of 60 requests per minute was exceeded.
Response headers
Retry-Afterinteger headerSeconds to wait before retrying.
X-RateLimit-Scopestring header
application/json object
errorobject requiredcodestring requiredValue:"too_many_attempts"messagestring requiredretry_after_sinteger requiredRange: at least 1scopestring requiredValue:"route"
text/html string