Stori Billing API

Subscription and payment endpoints

GitHub OpenAPI

Operations 3

POST /api/stripe/create-checkout Create Stripe checkout session #
GET /api/billing/status Get billing status #
POST /api/stripe/portal Create billing portal session #

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/onestori-com:onestori-com-billing-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

onestori-com-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stori Billing API
  version: 1.0.0
  description: '# Stori API Documentation


    Stori is a candidate intelligence platform that helps job seekers stand out and recruiters find the right talent.


    ## Authentication


    Most endpoints require authentication via one of:

    - **Bearer Token**: Pass your Supabase JWT in the `Authorization: Bearer ` header

    - **Session Cookie**: Automatic for web app users


    ## Rate Limits


    All endpoints are rate-limited to prevent abuse:


    | Endpoint Type | Limit |

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

    | PDL Search | 75 req/min |

    | AI Generation | 7 req/min |

    | Auth | 5 req/min |

    | Email Send | 10 req/min |

    | Video Upload | 4 req/min |

    | Standard API | 100 req/min |

    | Read-only | 200 req/min |


    Rate limit headers are included in all responses:

    - `X-RateLimit-Limit`: Maximum requests allowed

    - `X-RateLimit-Remaining`: Requests remaining

    - `X-RateLimit-Reset`: Unix timestamp when limit resets


    ## Credits


    Some operations consume credits:

    - PDL searches cost credits based on results

    - Unlocking contact info costs 1 credit per contact

    - Credits can be purchased via Stripe checkout


    ## Error Handling


    All errors follow this format:

    ```json

    {

    "error": "Error message",

    "details": { "field": ["validation error"] }

    }

    ```


    Common status codes:

    - `400` - Validation error

    - `401` - Unauthorized (invalid/missing token)

    - `402` - Payment required (insufficient credits)

    - `403` - Forbidden (subscription required)

    - `429` - Rate limit exceeded

    - `500` - Internal server error'
  contact:
    name: Stori Support
    url: https://onestori.com
servers:
- url: https://onestori.com
  description: Production
- url: http://localhost:3000
  description: Development
tags:
- name: Billing
  description: Subscription and payment endpoints
paths:
  /api/stripe/create-checkout:
    post:
      tags:
      - Billing
      summary: Create Stripe checkout session
      description: Creates a Stripe checkout session for subscriptions or credit purchases
      security:
      - BearerAuth: []
      - CookieAuth: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                mode:
                  type: string
                  enum:
                  - subscription
                  - payment
                  description: Checkout mode
                priceId:
                  type: string
                  enum:
                  - OUTREACH
                  description: 'Subscription mode: Outreach is the only subscription sold here'
                items:
                  type: array
                  items:
                    type: object
                    properties:
                      priceId:
                        type: string
                        enum:
                        - CANDIDATE_OUTREACH_50
                        - CANDIDATE_OUTREACH_100
                        - CANDIDATE_OUTREACH_200
                        - INTERVIEWS_10
                        - INTERVIEWS_100
                        - INTERVIEWS_500
                        - INTERVIEWS_1000
                      quantity:
                        type: integer
                        minimum: 1
                        maximum: 100
                    required:
                    - priceId
                    - quantity
                  maxItems: 10
                creditType:
                  type: string
                  enum:
                  - candidate_outreach
                  - client_interview
                companyId:
                  type: string
                  format: uuid
                  description: Required for client_interview
                returnUrl:
                  type: string
                  maxLength: 500
                  description: Relative path to return to after checkout
              required:
              - mode
      responses:
        '200':
          description: Checkout session created
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
                    description: Stripe checkout URL
                required:
                - url
        '401':
          description: Unauthorized
      operationId: postApiStripeCreateCheckout
      x-operation-id-source: derived
  /api/billing/status:
    get:
      tags:
      - Billing
      summary: Get billing status
      description: Returns current subscription status and plan details
      security:
      - BearerAuth: []
      - CookieAuth: []
      responses:
        '200':
          description: Billing status
          content:
            application/json:
              schema:
                type: object
                properties:
                  hasSubscription:
                    type: boolean
                  plan:
                    type: string
                  status:
                    type: string
                  currentPeriodEnd:
                    type: string
                required:
                - hasSubscription
        '401':
          description: Unauthorized
      operationId: getApiBillingStatus
      x-operation-id-source: derived
  /api/stripe/portal:
    post:
      tags:
      - Billing
      summary: Create billing portal session
      description: Creates a Stripe billing portal session for managing subscriptions
      security:
      - BearerAuth: []
      - CookieAuth: []
      responses:
        '200':
          description: Portal URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
                    description: Stripe billing portal URL
                required:
                - url
        '401':
          description: Unauthorized
      operationId: postApiStripePortal
      x-operation-id-source: derived
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase JWT token from authentication
    CookieAuth:
      type: apiKey
      in: cookie
      name: sb-access-token
      description: Supabase session cookie
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Stori API key (sk_live_... or sk_test_...). All v1 endpoints are scoped to the key''s company. Scopes: read:jobs, read:candidates, read:credits, read:health.'