Legal
Get Legal Status
Check whether the authenticated customer must accept general or contract-specific terms and conditions before using the portal.
GET
Get Legal Status
Get Legal Status
Returns the legal terms acceptance status for the current customer. The portal checks this on every authenticated session bootstrap. IfMustAgreeToTerms is true, a blocking modal is shown with the full terms text before the customer can continue.
Authentication
Requires a valid customer bearer token.Response
boolean
true when the customer must accept one or more outstanding terms before accessing the portal. Show the acceptance modal when this is true.boolean
Whether the customer has already accepted the space’s general terms and conditions.
string
HTML or plain-text content of the general terms and conditions to display to the customer.
array | undefined
Array of contract-specific terms the customer must accept. Present only when there are pending contract terms. Each entry contains:
number
Unique identifier of the contract.
string
ISO 8601 date when the contract starts.
string
Display name of the plan associated with this contract.
string
HTML or plain-text content of the contract-specific terms to display.
Example Response
TypeScript Integration
Usage in Portal
Error Responses
error
The bearer token is missing, expired, or invalid. The customer must sign in.
Related Endpoints
Get Legal Status