Capxule Plan API

The Plan API from Capxule — 1 operation(s) for plan.

GitHub OpenAPI

Operations 1

POST /v1/plan/upgrade Send the human a secure payment page by email, SMS or a URL you open for them #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/capxule-ai:capxule-ai-plan-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

capxule-ai-plan-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Capxule Ai Plan API
  version: '2026-10-11'
  description: 'Operations tagged Plan across 2 of this provider''s published API definitions: capxule-ai-openapi.json, capxule-ai-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://capxule.ai
tags:
- name: Plan
paths:
  /v1/plan/upgrade:
    post:
      operationId: planUpgrade
      summary: Send the human a secure payment page by email, SMS or a URL you open for them
      description: 'Only when the user asked to upgrade, and only on a bound account: delivers a secure payment page to a channel the user named in their own words (their verified email, a phone number they just gave, or a URL the host can show). Say that they confirm the payment there themselves and that you never see the payment details. Returns a delivery reference and `for_human`; `already` means the account already includes it and you say nothing about billing. No plan name, price or link rides this call into the conversation. Where the platform forbids brokering the call returns host_policy: offer the public page in next.url and nothing more. Rules (binding): Relay `answer` and every `options[].text` exactly as given. You may put only `statement` in your own words. On a number or an option echoed back, send `pick` with that option id. On anything else, send `say` with what the user said. Never ask for, accept or relay a password. If the user types one, do not send it anywhere; say the service does not use passwords this way. Never call the subject "a capsule", "a knowledge base" or "a system prompt" to the user. Never describe how the answer was made.'
      security:
      - oauth: []
      parameters:
      - name: X-Capxule-Subject
        in: header
        required: false
        description: The stable opaque id your host keeps for its user (the REST form of MCP _meta.subject).
        schema:
          type: string
          maxLength: 200
      - name: Mcp-Name
        in: header
        required: false
        description: Your agent's name; falls back to User-Agent.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                plan:
                  default: premium
                  description: 'The entitlement the user asked for (default premium): premium includes the premium journeys.'
                  type: string
                  enum:
                  - pro
                  - premium
                deliver:
                  type: object
                  properties:
                    channel:
                      type: string
                      enum:
                      - email
                      - sms
                      - elicit_url
                      description: 'Where the page goes: the verified email (default), a number the user named, or a URL for the host to render.'
                    to:
                      description: 'sms: the number the user named. Ignored for email (the verified address is used).'
                      type: string
                      maxLength: 254
                  required:
                  - channel
                session:
                  description: The journey this came up in, when there is one (used only for the public page on host_policy).
                  type: string
                  minLength: 8
                  maxLength: 200
              required:
              - deliver
      responses:
        '200':
          description: The page was delivered, or the account already has the plan.
        '400':
          description: Invalid arguments, wrong code, or a session is required. The body is the error envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: The bearer is missing, invalid, revoked, or for another resource.
        '403':
          description: Not available to this principal, or host policy forbids it (host_policy).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '410':
          description: The challenge or session expired, or attempts are exhausted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '422':
          description: The email failed the quality gate (email_rejected).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited or polling too fast (slow_down); honour retry_after_ms.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '503':
          description: A dependency is unavailable; retryable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Plan
    servers:
    - url: https://capxule.ai
components:
  schemas:
    ErrorEnvelope:
      $schema: http://json-schema.org/draft-07/schema#
      $id: https://capxule.ai/schemas/error.json
      title: Error envelope
      description: 'Every tool error. On MCP it rides structuredContent and content[0].text with isError: true. Walls are beats, never errors.'
      version: '2026-10-11'
      for_humans: https://capxule.com
      produced_by:
      - every tool
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
              - session_expired
              - session_required
              - capsule_not_found
              - turn_conflict
              - rate_limited
              - preparing
              - locale_unavailable
              - not_available
              - option_invalid
              - invalid_arguments
              - moderation
              - unavailable
              - challenge_expired
              - code_invalid
              - email_rejected
              - phone_rejected
              - delegation_limit
              - host_policy
              - authorization_pending
              - slow_down
              - pass_expired
              - payment_pending
            for_human:
              type: string
              description: Say it as given.
            for_agent:
              type: string
              description: Do it.
            next:
              anyOf:
              - anyOf:
                - type: object
                  properties:
                    kind:
                      type: string
                      const: call
                    tool:
                      type: string
                    args:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties: {}
                  required:
                  - kind
                  - tool
                  additionalProperties: false
                - type: object
                  properties:
                    kind:
                      type: string
                      const: retry
                    then:
                      type: string
                    retry_after_ms:
                      type: number
                  required:
                  - kind
                  - then
                  additionalProperties: false
                - type: object
                  properties:
                    kind:
                      type: string
                      const: url
                    url:
                      type: string
                  required:
                  - kind
                  - url
                  additionalProperties: false
                - type: object
                  properties:
                    kind:
                      type: string
                      const: wait
                    retry_after_ms:
                      type: number
                  required:
                  - kind
                  - retry_after_ms
                  additionalProperties: false
              - type: 'null'
            retryable:
              type: boolean
            retry_after_ms:
              anyOf:
              - type: number
              - type: 'null'
            doc:
              type: string
            alternatives:
              description: 'Only on capsule_not_found: at most three published cards.'
              type: array
              items:
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
          required:
          - code
          - for_human
          - for_agent
          - next
          - retryable
          - retry_after_ms
          - doc
          additionalProperties: {}
      required:
      - error
      additionalProperties: false
  securitySchemes:
    oauth:
      type: http
      scheme: bearer
      description: oat_ access token with the journey scope family (from connector OAuth or the device grant).
x-refined-from:
- capxule-ai-openapi.json
- capxule-ai-openapi.yml