Get Legal Status
Returns the legal terms acceptance status for the current customer. The portal checks this on every authenticated session bootstrap. If MustAgreeToTerms 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
true when the customer must accept one or more outstanding terms before accessing the portal. Show the acceptance modal when this is true.
Whether the customer has already accepted the space’s general terms and conditions.
HTML or plain-text content of the general terms and conditions to display to the customer.
Array of contract-specific terms the customer must accept. Present only when there are pending contract terms. Each entry contains:
Unique identifier of the contract.
ContractTerms[].StartDate
ISO 8601 date when the contract starts.
ContractTerms[].TariffName
Display name of the plan associated with this contract.
ContractTerms[].TermsAndConditions
HTML or plain-text content of the contract-specific terms to display.
Example Response
{
"MustAgreeToTerms": true,
"GeneralTermsAccepted": false,
"GeneralTerms": "<p>By using this portal you agree to our <a href='...'>terms</a>.</p>",
"ContractTerms": [
{
"Id": 101,
"StartDate": "2026-04-01T00:00:00Z",
"TariffName": "Hot Desk Monthly",
"TermsAndConditions": "<p>These terms govern your Hot Desk Monthly membership...</p>"
}
]
}
TypeScript Integration
import endpoints from '@/api/endpoints'
import { useTypedData } from '@/api/fetchData'
const endpoint = endpoints.system.legal_status()
const { resource: legalStatus } = useTypedData(httpClient, endpoint)
if (legalStatus?.MustAgreeToTerms) {
// Show the legal terms modal
}
Usage in Portal
| Context | Source file |
|---|
| Session bootstrap — legal terms gate | src/App.tsx or auth context |
| Legal terms acceptance modal | src/components/LegalTerms/ |
Error Responses
The bearer token is missing, expired, or invalid. The customer must sign in.
| Method | Endpoint | Description |
|---|
POST | /api/public/legal/accept | Record acceptance of outstanding terms |