cQnce Subscriptions API

Subscription plan and billing management (requires tenant JWT)

GitHub OpenAPI

Operations 4

GET /v1/subscriptions/plans List subscription plans #
GET /v1/subscriptions/me Get current subscription #
POST /v1/subscriptions/checkout Create Stripe checkout session #
GET /v1/subscriptions/usage Get usage metrics #

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/cqnce-app:cqnce-app-subscriptions-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

cqnce-app-subscriptions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: cQnce Subscriptions API
  description: 'Authorization-request routing and agent-management API for the cQnce platform.


    ## Authentication


    | Scheme | Header | Used by |

    |---|---|---|

    | Bearer JWT (tenant) | `Authorization: Bearer ` | Dashboard / admin routes |

    | Bearer JWT (agent) | `Authorization: Bearer ` | Agent mobile app routes |

    | API Key | `x-api-key: ` | Server-to-server request submission |'
  version: 1.0.0
  contact:
    name: cQnce Support
servers:
- url: https://api.cqnce.app
  description: Production
tags:
- name: Subscriptions
  description: Subscription plan and billing management (requires tenant JWT)
paths:
  /v1/subscriptions/plans:
    get:
      tags:
      - Subscriptions
      summary: List subscription plans
      description: Returns all active subscription plans available to the tenant.
      operationId: listSubscriptionPlans
      security:
      - tenantJWT: []
      responses:
        '200':
          description: Available plans
          content:
            application/json:
              schema:
                type: object
                properties:
                  plans:
                    type: array
                    items:
                      $ref: '#/components/schemas/SubscriptionPlan'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/subscriptions/me:
    get:
      tags:
      - Subscriptions
      summary: Get current subscription
      description: Returns the tenant's active subscription and plan.
      operationId: getMySubscription
      security:
      - tenantJWT: []
      responses:
        '200':
          description: Current subscription
          content:
            application/json:
              schema:
                type: object
                properties:
                  subscription:
                    $ref: '#/components/schemas/Subscription'
                  plan:
                    $ref: '#/components/schemas/SubscriptionPlan'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No active subscription
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/subscriptions/checkout:
    post:
      tags:
      - Subscriptions
      summary: Create Stripe checkout session
      description: Creates a Stripe checkout session for upgrading to a paid plan. Returns a redirect URL.
      operationId: createCheckoutSession
      security:
      - tenantJWT: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - planName
              properties:
                planName:
                  type: string
                  description: Name of the plan to subscribe to
      responses:
        '200':
          description: Stripe checkout URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Plan not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Stripe integration not configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/subscriptions/usage:
    get:
      tags:
      - Subscriptions
      summary: Get usage metrics
      description: Returns usage metrics for the current billing period.
      operationId: getSubscriptionUsage
      security:
      - tenantJWT: []
      responses:
        '200':
          description: Usage metrics
          content:
            application/json:
              schema:
                type: object
                properties:
                  usage:
                    type: object
                    properties:
                      projects:
                        type: integer
                      agents:
                        type: integer
                      requestsThisMonth:
                        type: integer
                      teams:
                        type: integer
                      maxRoutingRulesPerProject:
                        type:
                        - integer
                        - 'null'
                  periodStart:
                    type:
                    - string
                    - 'null'
                    format: date-time
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          example: Validation failed
        details:
          type: array
          items:
            type: object
    SubscriptionPlan:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        displayName:
          type: string
        monthlyPriceInCents:
          type:
          - integer
          - 'null'
        stripePriceId:
          type:
          - string
          - 'null'
        features:
          type:
          - array
          - 'null'
          items:
            type: object
            properties:
              label:
                type: string
              included:
                type: boolean
        sortOrder:
          type: integer
        isPopular:
          type: boolean
        maxProjects:
          type:
          - integer
          - 'null'
        maxAgents:
          type:
          - integer
          - 'null'
        maxRequestsPerMonth:
          type:
          - integer
          - 'null'
        maxTeams:
          type:
          - integer
          - 'null'
        maxRoutingRulesPerProject:
          type:
          - integer
          - 'null'
        isActive:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Subscription:
      type: object
      properties:
        id:
          type: string
          format: uuid
        tenantId:
          type: string
          format: uuid
        planId:
          type: string
          format: uuid
        status:
          type: string
          enum:
          - ACTIVE
          - TRIALING
          - PAST_DUE
          - CANCELLED
        currentPeriodStart:
          type:
          - string
          - 'null'
          format: date-time
        currentPeriodEnd:
          type:
          - string
          - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  securitySchemes:
    tenantJWT:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued on tenant login (`POST /v1/auth/login`)
    agentJWT:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued on agent login/register (`POST /v1/auth/agent/login` or `/register`)
    projectApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Per-project API key used for server-to-server request submission