1. Subscription
  • Authentication
    • Current workspace and API key
      GET
  • Subscription
    • Current workspace subscription
      GET
    • Initiate subscription checkout
      POST
    • Change subscription plan
      POST
    • Cancel subscription at period end
      POST
    • Resume a scheduled cancellation
      POST
  • Channels
    • List enabled channels
      GET
  • Contacts
    • List contacts
      GET
    • Create a contact
      POST
    • View a contact
      GET
    • Update a contact
      PATCH
  • Conversations
    • List conversations
      GET
    • View a conversation
      GET
  • Messages
    • List conversation messages
      GET
    • Send a message
      POST
  • Leads
    • List leads
      GET
    • Create a lead
      POST
    • View a lead
      GET
    • Update a lead
      PATCH
  • Knowledge
    • List knowledge base entries
      GET
  • Platform
    • Public Plans
      • List commercially visible plans
      • Show one commercially visible plan
    • Plans Management
      • List all plans including inactive and soft-deleted
      • Create a plan
      • Show a plan for administration
      • Update a plan
    • Billing Webhooks
      • Receive a billing provider webhook
    • Channel Webhooks
      • Meta webhook verification challenge
      • Receive Meta messaging events
      • Receive Telegram bot updates
      • WhatsApp Business verification challenge
      • Receive WhatsApp Business messaging events
      • Receive WhatsApp Web inbound messages
    • Commerce Webhooks
      • Receive a WooCommerce webhook
  • Schemas
    • PublicPlan
    • Subscription
    • PublicPlanFeature
    • CheckoutRequest
    • PublicPlanLimit
    • CheckoutResponse
    • PlatformPlan
    • ChangePlanRequest
    • PlatformPlanCreateRequest
    • ApiKeyInfo
    • PlatformPlanUpdateRequest
    • Business
    • WebhookAcceptResponse
    • Channel
    • Error
    • Contact
    • ValidationError
    • ContactCreateRequest
    • ContactUpdateRequest
    • Conversation
    • Message
    • MessageCreateRequest
    • Lead
    • LeadCreateRequest
    • LeadUpdateRequest
    • KnowledgeBaseEntry
  1. Subscription

Initiate subscription checkout

POST
//workspace/subscription/checkout
Creates a hosted checkout session for the requested plan. Returns a checkout_url that the client
(browser or mobile app) should open. Subscription activation only happens after server-side confirmation
via webhooks or provider retrieval; the return URL alone does not activate a subscription.
Canonical idempotency is the Idempotency-Key header only. Body keys are ignored.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200CheckoutResponse
application/json
Pending checkout session
Bodyapplication/json

🟠401Unauthenticated
🟠403Forbidden
🟠409Conflict
🟠422ValidationError
🟠429TooManyRequests
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '//workspace/subscription/checkout' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "plan": "string",
    "return_url": "http://example.com",
    "cancel_url": "http://example.com"
}'
Response Response Example
200 - Example 1
{
    "data": {
        "checkout_url": "http://example.com",
        "payment_id": "string",
        "provider": "string",
        "expires_at": "2019-08-24T14:15:22.123Z",
        "idempotency_key": "string",
        "status": "pending"
    }
}
Modified at 2026-08-18 22:47:00
Previous
Current workspace subscription
Next
Change subscription plan
Built with