PureCipher Internal: Subscription API

The Internal: Subscription API from PureCipher — 14 operation(s) for internal: subscription.

GitHub OpenAPI

Operations 14

POST /api/v1/subscription/subscribe Create Subscription #
POST /api/v1/subscription/create-subscription Create Subscription From Stripe Endpoint #
POST /api/v1/subscription/subscription-success Subscription Successfull #
POST /api/v1/subscription/cancel Cancel Subscription #
POST /api/v1/subscription/undo-cancel Undo Cancel Subscription #
POST /api/v1/subscription/leave-intent Create Leave Intent #
POST /api/v1/subscription/close-account Close Account #
POST /api/v1/subscription/change-plan Change Plan #
POST /api/v1/subscription/webhook Stripe Webhook #
GET /api/v1/subscription/my-invoices Get My Invoices #
GET /api/v1/subscription/my-payments Get My Payments #
GET /api/v1/subscription/mode Get Stripe Mode #
GET /api/v1/subscription/plans Get All Plans #
GET /api/v1/subscription/current-plan Get Current Plan #

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/purecipher-com:purecipher-com-internal-subscription-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

purecipher-com-internal-subscription-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'Omniseal™ API Documentation Internal: Subscription API'
  version: '2.0'
tags:
- name: 'Internal: Subscription'
paths:
  /api/v1/subscription/subscribe:
    post:
      tags:
      - 'Internal: Subscription'
      summary: Create Subscription
      operationId: create_subscription_api_v1_subscription_subscribe_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: price_id
        in: query
        required: true
        schema:
          type: string
          title: Price Id
      - name: payment_method_id
        in: query
        required: true
        schema:
          type: string
          title: Payment Method Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/subscription/create-subscription:
    post:
      tags:
      - 'Internal: Subscription'
      summary: Create Subscription From Stripe Endpoint
      operationId: create_subscription_from_stripe_endpoint_api_v1_subscription_create_subscription_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: price_id
        in: query
        required: true
        schema:
          type: string
          title: Price Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/subscription/subscription-success:
    post:
      tags:
      - 'Internal: Subscription'
      summary: Subscription Successfull
      operationId: subscription_successfull_api_v1_subscription_subscription_success_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: priceID
        in: query
        required: true
        schema:
          type: string
          title: Priceid
      - name: randomID
        in: query
        required: true
        schema:
          type: string
          title: Randomid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/subscription/cancel:
    post:
      tags:
      - 'Internal: Subscription'
      summary: Cancel Subscription
      operationId: cancel_subscription_api_v1_subscription_cancel_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: subscription_id
        in: query
        required: true
        schema:
          type: string
          title: Subscription Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/subscription/undo-cancel:
    post:
      tags:
      - 'Internal: Subscription'
      summary: Undo Cancel Subscription
      description: Clear cancel_at_period_end so the subscription renews. User must own the subscription.
      operationId: undo_cancel_subscription_api_v1_subscription_undo_cancel_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: subscription_id
        in: query
        required: true
        schema:
          type: string
          title: Subscription Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/subscription/leave-intent:
    post:
      tags:
      - 'Internal: Subscription'
      summary: Create Leave Intent
      description: Register leave-account intent for Free users; send win-back email with Stay vs Close links.
      operationId: create_leave_intent_api_v1_subscription_leave_intent_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - APIKeyHeader: []
  /api/v1/subscription/close-account:
    post:
      tags:
      - 'Internal: Subscription'
      summary: Close Account
      description: Close account using token from leave-intent email. No auth required.
      operationId: close_account_api_v1_subscription_close_account_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloseAccountBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/subscription/change-plan:
    post:
      tags:
      - 'Internal: Subscription'
      summary: Change Plan
      description: Downgrade to a lower plan or to Free. For upgrades use the Checkout flow.
      operationId: change_plan_api_v1_subscription_change_plan_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: target_price_id
        in: query
        required: true
        schema:
          type: string
          title: Target Price Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/subscription/webhook:
    post:
      tags:
      - 'Internal: Subscription'
      summary: Stripe Webhook
      operationId: stripe_webhook_api_v1_subscription_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /api/v1/subscription/my-invoices:
    get:
      tags:
      - 'Internal: Subscription'
      summary: Get My Invoices
      description: Return Stripe invoices for the authenticated user. Individual users only; empty when Stripe disabled.
      operationId: get_my_invoices_api_v1_subscription_my_invoices_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items: {}
                title: Response Get My Invoices Api V1 Subscription My Invoices Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/subscription/my-payments:
    get:
      tags:
      - 'Internal: Subscription'
      summary: Get My Payments
      description: Return paid invoices (payments) for the authenticated user. Empty when Stripe disabled.
      operationId: get_my_payments_api_v1_subscription_my_payments_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items: {}
                title: Response Get My Payments Api V1 Subscription My Payments Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/subscription/mode:
    get:
      tags:
      - 'Internal: Subscription'
      summary: Get Stripe Mode
      description: Return Stripe billing mode. Use stripe_test_mode to show a test-mode banner when testing upgrades/downgrades.
      operationId: get_stripe_mode_api_v1_subscription_mode_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - APIKeyHeader: []
  /api/v1/subscription/plans:
    get:
      tags:
      - 'Internal: Subscription'
      summary: Get All Plans
      operationId: get_all_plans_api_v1_subscription_plans_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - APIKeyHeader: []
  /api/v1/subscription/current-plan:
    get:
      tags:
      - 'Internal: Subscription'
      summary: Get Current Plan
      operationId: get_current_plan_api_v1_subscription_current_plan_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - APIKeyHeader: []
components:
  schemas:
    CloseAccountBody:
      properties:
        token:
          type: string
          title: Token
      type: object
      required:
      - token
      title: CloseAccountBody
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: api_token
x-tagGroups:
- name: General
  tags:
  - Registration
  - Health and Readiness
- name: Release 3
  tags:
  - Audio
  - Video
- name: Release 2
  tags:
  - Unified API
  - Edix12
  - Data Lineage
  - Data Provenance
  - Base64
- name: Release 1
  tags:
  - Signature
  - Encryption
  - Hash
  - Steganography