Cancellation

Everything the cancellation flow UI needs in one read

One read that renders the whole flow. It returns the plan, billing interval, and period end, what Luca has done for this coach, whether an open balance or a save cap turns offers off, any renewal-grace refund on the table, and the offers each reason leads with. The client never needs a second round trip to decide what to show.

Session-only. This endpoint isn't on the API-key allowlist. An organization API key gets a 403 here, whatever scopes it holds.

get/api/cancellation/context

Request

  • Base URL: https://api.setluca.com
  • URL: https://api.setluca.com/api/cancellation/context
  • Auth: API key in cookie luca.session_token

Headers

Luca-API-Version'1'

The major version of the API this client was built against. Omit it and the request is served by the current major version. Any other value is refused with 400 unsupported_api_version.

Response

ok

planTierstring required
billingInterval'month' | 'year' required
planStatusstring required
trialOrPaid'trial' | 'paid' required
periodEndsAtstring nullable required
pausedUntilstring nullable required
cancelRequestedboolean required
voiceMessageCountinteger required
leadsHandledinteger required
callsBookedinteger required
midConversationLeadsinteger required
saveCappedboolean required
pastDueboolean required
founderCallUrlstring nullable required
founderReplyEmailstring required
voiceRetentionDaysinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.