Skip to content
Sign in Create account

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_at string required

    A value accepted by date validation.

  • privacy_version string required
    Length: at most 20 characters
  • terms_accepted_at string required

    A value accepted by date validation.

  • terms_version string required
    Length: 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_at string (date-time) or null required
  • privacy_version string or null required
  • terms_accepted_at string (date-time) or null required
  • terms_version string 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

  • error object required
    • code string required
      Value: "unauthenticated"
    • message string required
422 One or more required values are missing or invalid.

application/json object

  • error any required

    One of

    • string
    • object
      • code string
      • fields object

        Other keys: array of string

      • message string
    • object
      • code string
      • message string
429 The route limit of 60 requests per minute was exceeded.

Response headers

  • Retry-After integer header

    Seconds to wait before retrying.

  • X-RateLimit-Scope string header

application/json object

  • error object required
    • code string required
      Value: "too_many_attempts"
    • message string required
    • retry_after_s integer required
      Range: at least 1
    • scope string required
      Value: "route"

text/html string