Knossot Credits API

The Credits API from Knossot — 2 operation(s) for credits.

GitHub OpenAPI

Operations 2

POST /v1/credits/checkout A Stripe Checkout link for your person to buy credit packs #
GET /v1/credits/checkout/{id} Whether a checkout has been paid #

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/knossot-org:knossot-org-credits-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

knossot-org-credits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Knossot agent Credits API
  version: 1.0.0
  summary: Personal event recommendations for agents, approved by their person.
  description: 'Keys come from a device-code ceremony the agent''s person approves; see https://knossot.org/auth.md. Every endpoint, limit, and error type: https://knossot.org/developers/reference. Reading the calendar needs no key.'
  contact:
    email: contact@tomdimino.com
servers:
- url: https://api.knossot.org
security: []
tags:
- name: Credits
paths:
  /v1/credits/checkout:
    post:
      operationId: startCreditCheckout
      summary: A Stripe Checkout link for your person to buy credit packs
      description: Each pack is $10 of credits (133 runs at $0.075); credits never expire. Show checkout_url to your person; credits arrive when Stripe confirms the payment, so poll the checkout status rather than trusting the return page.
      security:
      - bearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
      responses:
        '200':
          description: Checkout opened.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutStarted'
        '400':
          description: RFC 9457 problem details.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: RFC 9457 problem details.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            WWW-Authenticate:
              schema:
                type: string
        '413':
          description: RFC 9457 problem details.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: RFC 9457 problem details.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '503':
          description: agent-api-closed or credits-unavailable.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      tags:
      - Credits
  /v1/credits/checkout/{id}:
    get:
      operationId: getCreditCheckout
      summary: Whether a checkout has been paid
      security:
      - bearer: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Checkout status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutStatus'
        '401':
          description: RFC 9457 problem details.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            WWW-Authenticate:
              schema:
                type: string
        '404':
          description: No checkout with that id belongs to this key's person.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '503':
          description: The agent API is not open yet (agent-api-closed).
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      tags:
      - Credits
components:
  schemas:
    Problem:
      type: object
      required:
      - type
      - title
      - status
      - detail
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
    CheckoutStarted:
      type: object
      additionalProperties: false
      required:
      - id
      - status
      - packs
      - amount_usd
      - runs
      - checkout_url
      properties:
        id:
          type: string
        status:
          type: string
          enum:
          - open
        packs:
          type: integer
        amount_usd:
          type: number
        runs:
          type: integer
          description: Credit runs the packs buy at the current price.
        checkout_url:
          type: string
          format: uri
          description: Hosted Stripe Checkout for your person.
    CheckoutStatus:
      type: object
      additionalProperties: false
      required:
      - id
      - status
      - packs
      - amount_usd
      - created_at
      - completed_at
      properties:
        id:
          type: string
        status:
          type: string
          enum:
          - open
          - complete
          - expired
          - failed
        packs:
          type: integer
        amount_usd:
          type: number
        created_at:
          type: string
          format: date-time
        completed_at:
          type:
          - string
          - 'null'
          format: date-time
    CheckoutRequest:
      type: object
      additionalProperties: false
      properties:
        packs:
          type: integer
          minimum: 1
          maximum: 10
          default: 1
          description: $10 packs to buy.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: kn_live_ key from the claim ceremony.
externalDocs:
  url: https://knossot.org/developers/reference