Recognitium Credits API

The Credits API from Recognitium — 7 operation(s) for credits.

GitHub OpenAPI

Operations 7

GET /v1/credits/balance Get Credits Balance #
GET /v1/credits/history Get Credits History #
POST /v1/credits/checkout Create Checkout Session #
POST /v1/credits/topup Topup Credits #
POST /v1/credits/stripe-webhook Stripe Credits Webhook #
GET /v1/credits/mock-checkout Get Mock Checkout #
POST /v1/credits/mock-success Post Mock Success #

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/recognitium-com:recognitium-com-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

recognitium-com-credits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Recognitium Phase 1 API Middleware Credits API
  version: 0.1.0
tags:
- name: Credits
paths:
  /v1/credits/balance:
    get:
      summary: Get Credits Balance
      description: Returns current API key's credit balance.
      operationId: get_credits_balance_v1_credits_balance_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Credits
  /v1/credits/history:
    get:
      summary: Get Credits History
      description: Returns recent Stripe credit activations for the authenticated account.
      operationId: get_credits_history_v1_credits_history_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Credits
  /v1/credits/checkout:
    post:
      summary: Create Checkout Session
      description: Creates a Stripe checkout session for purchase. Falls back to mock checkout if keys not set.
      operationId: create_checkout_session_v1_credits_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Credits
  /v1/credits/topup:
    post:
      summary: Topup Credits
      description: 'Completes a payment top-up.


        SECURITY INVARIANT: credit is granted only on a payment this server has

        independently verified, and the amount is derived from that verified

        payment — never from the request body. Any method we cannot verify is

        refused before any balance moves.'
      operationId: topup_credits_v1_credits_topup_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TopupRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Credits
  /v1/credits/stripe-webhook:
    post:
      summary: Stripe Credits Webhook
      description: Credits receipt capacity after Stripe confirms Checkout payment.
      operationId: stripe_credits_webhook_v1_credits_stripe_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Credits
  /v1/credits/mock-checkout:
    get:
      summary: Get Mock Checkout
      description: Serves a beautiful, styled HTML mockup of a Stripe Checkout screen.
      operationId: get_mock_checkout_v1_credits_mock_checkout_get
      parameters:
      - name: key_id
        in: query
        required: true
        schema:
          type: string
          title: Key Id
      - name: amount_cents
        in: query
        required: true
        schema:
          type: integer
          title: Amount Cents
      - name: token
        in: query
        required: true
        schema:
          type: string
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Credits
  /v1/credits/mock-success:
    post:
      summary: Post Mock Success
      description: Simulates Stripe webhook/payment callback and redirects client back to dashboard.
      operationId: post_mock_success_v1_credits_mock_success_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_post_mock_success_v1_credits_mock_success_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Credits
components:
  schemas:
    CheckoutRequest:
      properties:
        amount_cents:
          type: integer
          title: Amount Cents
      type: object
      required:
      - amount_cents
      title: CheckoutRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Body_post_mock_success_v1_credits_mock_success_post:
      properties:
        key_id:
          type: string
          title: Key Id
        amount_cents:
          type: integer
          title: Amount Cents
        token:
          type: string
          title: Token
      type: object
      required:
      - key_id
      - amount_cents
      - token
      title: Body_post_mock_success_v1_credits_mock_success_post
    TopupRequest:
      properties:
        payment_method:
          type: string
          title: Payment Method
        confirmation_id:
          type: string
          title: Confirmation Id
        amount_cents:
          anyOf:
          - type: integer
          - type: 'null'
          title: Amount Cents
      type: object
      required:
      - payment_method
      - confirmation_id
      title: TopupRequest
    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