Get current organization trial state
Return the organization's authoritative trial state (WBC-164).
Additive, read-only surface consumed by the in-product trial indicator (WBC-166), HubSpot sync (WBC-168), and billing emails (WBC-169). trialStatus is derived (never stored) from Orb + payment state.
trialEndsAt is the time-based trial end (signup + 14 days) today. Credit exhaustion does not shorten it: the zero-balance timestamp needs an Orb-ledger fetch this endpoint does not make, so it is left unset rather than fabricated. Credit exhaustion ends the trial early via WS4 events (WBC-766), which flip the plan/subscription this endpoint already reflects. Do not read trialEndsAt as credit-aware, and do not treat trialCreditsRemaining == 0 as "trial over". See :mod:src.internal.billing.trial_state.
Degrades gracefully: an org with no trial data -- every org until the WBC-763 trial-grant flag is enabled -- gets all-null fields rather than an error. All upstream Orb failures (transport errors, an unconfigured client, the multi-subscription guard) also degrade to all-null, never a 500.
Request
- Base URL: https://api.cloud.wherobots.com
- URL: https://api.cloud.wherobots.com/subscriptions/trial-state
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.