Agnost AI Billing API

Stripe billing management

Operations 3

POST /dashboard/api/billing/create-checkout Create Stripe checkout session #
POST /dashboard/api/billing/create-portal Create Stripe billing portal session #
POST /dashboard/api/billing/cancel Cancel subscription #

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/agnost-ai-billing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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

OpenAPI Specification

agnost-ai-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Agnost AI Alerts Billing API
  description: 'Complete REST API for Agnost AI: an analytics and monitoring platform for AI agents.


    **Authentication**:

    - SDK ingestion endpoints (`/api/v1/*`) use `x-org-id` header (UUID)

    - Dashboard endpoints use `Authorization: Bearer <jwt>` + `x-org-id` header, or `x-api-key` header

    - API key management uses JWT only (no API key auth)

    '
  version: 2.1.2
  contact:
    name: Agnost AI
    url: https://agnost.ai
servers:
- url: https://api.agnost.ai
  description: Production
tags:
- name: Billing
  description: Stripe billing management
paths:
  /dashboard/api/billing/create-checkout:
    post:
      tags:
      - Billing
      summary: Create Stripe checkout session
      operationId: createCheckoutSession
      security:
      - BearerAuth: []
        OrgScope: []
      responses:
        '200':
          description: Stripe checkout URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
  /dashboard/api/billing/create-portal:
    post:
      tags:
      - Billing
      summary: Create Stripe billing portal session
      operationId: createPortalSession
      security:
      - BearerAuth: []
        OrgScope: []
      responses:
        '200':
          description: Stripe portal URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
  /dashboard/api/billing/cancel:
    post:
      tags:
      - Billing
      summary: Cancel subscription
      operationId: cancelSubscription
      security:
      - BearerAuth: []
        OrgScope: []
      responses:
        '200':
          description: Subscription cancelled
components:
  securitySchemes:
    OrgId:
      type: apiKey
      in: header
      name: x-org-id
      description: Organization ID (UUID). Used by SDKs for event ingestion. Header is case-insensitive.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token from OAuth login.
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API key (`agnost_<64-hex>`) for programmatic dashboard access. Issued via Settings → API Keys.
    OrgScope:
      type: apiKey
      in: header
      name: x-org-id
      description: Optional. Selects which organization a JWT- or API-key-authenticated request targets when the credential has access to multiple.