LaminarForge API Platform API

Shared platform endpoints — health, keys, usage, billing (available on both workers)

GitHub OpenAPI

Operations 8

GET /v1/health Health check #
POST /v1/keys Create API key #
GET /v1/keys List API keys (metadata only) #
GET /v1/usage Usage stats #
POST /v1/checkout Create Stripe checkout session #
POST /v1/webhook Stripe webhook #
GET /v1/balance Check balance and credits #
DELETE /v1/keys/{hash} Revoke an API key #

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/laminarforge-dev:laminarforge-dev-platform-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

laminarforge-dev-platform-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Laminarforge Dev Platform API
  version: 1.1.0
  contact:
    url: https://laminarforge.dev/contact
  description: 'Operations tagged Platform across 2 of this provider''s published API definitions: laminarforge-dev-openapi.json, laminarforge-dev-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Platform
  description: Shared platform endpoints — health, keys, usage, billing (available on both workers)
paths:
  /v1/health:
    get:
      tags:
      - Platform
      summary: Health check
      description: Returns service health status, version, and KV store availability for the worker. No authentication required.
      operationId: healthCheck
      responses:
        '200':
          description: Health status
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
                  service:
                    type: string
                  version:
                    type: string
                    example: 1.0.0
                  endpoints:
                    type: integer
                  kv:
                    type: object
                    properties:
                      api_keys:
                        type: boolean
                      usage:
                        type: boolean
                      rate_limits:
                        type: boolean
                      customers:
                        type: boolean
  /v1/keys:
    post:
      tags:
      - Platform
      summary: Create API key
      description: 'Generate a free-tier API key. Returns the raw key once — save it immediately; it is stored as a SHA-256 hash and the raw value is never retrievable again. Supports optional key expiry: pass a `ttl` in seconds from now, an explicit `expires_at` ISO 8601 timestamp, an optional `owner_email` to group sibling keys, and a free-form `note`. An expired key is rejected with HTTP 401 on subsequent use.'
      operationId: createApiKey
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                tier:
                  type: string
                  enum:
                  - free
                  default: free
                  description: Key tier. Only 'free' can be created via this endpoint.
                ttl:
                  type: integer
                  minimum: 1
                  description: 'Optional expiry: number of seconds from now. Mutually exclusive with expires_at.'
                expires_at:
                  type: string
                  format: date-time
                  description: 'Optional expiry: explicit ISO 8601 timestamp. Mutually exclusive with ttl.'
                owner_email:
                  type: string
                  description: Optional owner email used to group sibling keys (list/revoke together).
                note:
                  type: string
                  description: Optional free-form note stored with the key metadata.
      responses:
        '200':
          description: API key created
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
                  api_key:
                    type: string
                    description: The raw API key (lf_...). Save this immediately — it won't be shown again.
                  tier:
                    type: string
                    example: free
                  created:
                    type: string
                    format: date-time
                    description: Creation timestamp (ISO 8601).
                  expires_at:
                    type:
                    - string
                    - 'null'
                    format: date-time
                    description: Expiry timestamp if a ttl/expires_at was set, else null.
                  note:
                    type: string
                  docs:
                    type: string
        '400':
          $ref: '#/components/responses/BadRequest'
    get:
      tags:
      - Platform
      summary: List API keys (metadata only)
      description: 'Returns metadata for the authenticated caller''s API key(s): the key used for the request plus any sibling keys that share its owner_email. Keys are stored as SHA-256 hashes and are NEVER returned in full — only metadata (prefix, tier, active, created, expires_at, last_used, total_calls, owner_email). Requires authentication (admin sees all keys sharing the owner_email).'
      operationId: listApiKeys
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: Key metadata list
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  count:
                    type: integer
                    description: Number of keys returned.
                  keys:
                    type: array
                    description: Metadata for each key. Raw key values are never exposed.
                    items:
                      type: object
                      properties:
                        key_hash:
                          type: string
                          description: SHA-256 hash of the key.
                        prefix:
                          type: string
                          description: Truncated key prefix for identification (e.g. lf_abc123...).
                        tier:
                          type: string
                        active:
                          type: boolean
                          description: Whether the key is active (not revoked/expired).
                        created:
                          type:
                          - string
                          - 'null'
                          format: date-time
                        expires_at:
                          type:
                          - string
                          - 'null'
                          format: date-time
                          description: Key expiry, if one was set.
                        last_used:
                          type:
                          - string
                          - 'null'
                          format: date-time
                        total_calls:
                          type: integer
                        owner_email:
                          type:
                          - string
                          - 'null'
                  note:
                    type: string
        '401':
          description: Unauthorized — missing or invalid API key
  /v1/usage:
    get:
      tags:
      - Platform
      summary: Usage stats
      description: Returns current daily usage statistics for the authenticated API key, including tier info, daily limit, and remaining calls. Requires authentication.
      operationId: getUsage
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: Usage statistics
          content:
            application/json:
              schema:
                type: object
                properties:
                  key_prefix:
                    type: string
                    description: Truncated key prefix for identification
                  tier:
                    type: string
                  tier_label:
                    type: string
                  daily_limit:
                    type: integer
                  calls_today:
                    type: integer
                  remaining:
                    type: integer
  /v1/checkout:
    post:
      tags:
      - Platform
      summary: Create Stripe checkout session
      description: Creates a Stripe Checkout Session for upgrading an API key to a paid tier (Starter, Pro, or Business). Returns the checkout URL for redirect.
      operationId: createCheckout
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tier:
                  type: string
                  enum:
                  - starter
                  - pro
                  - biz
                  description: Target tier for upgrade
                key_hash:
                  type: string
                  description: SHA-256 hash of the API key being upgraded
                success_url:
                  type: string
                  format: uri
                  description: Redirect URL on successful payment
                cancel_url:
                  type: string
                  format: uri
                  description: Redirect URL on cancelled payment
              required:
              - tier
      responses:
        '200':
          description: Checkout session created
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
                    description: Stripe Checkout Session URL
                  session_id:
                    type: string
  /v1/webhook:
    post:
      tags:
      - Platform
      summary: Stripe webhook
      description: Receives Stripe webhook events (checkout.session.completed, customer.subscription.updated/deleted). Verifies the webhook signature using Stripe-Signature header, then updates the corresponding API key tier in KV storage.
      operationId: handleWebhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  description: Stripe event type
                data:
                  type: object
                  description: Stripe event data object
      responses:
        '200':
          description: Webhook received
          content:
            application/json:
              schema:
                type: object
                properties:
                  received:
                    type: boolean
                    example: true
  /v1/balance:
    get:
      tags:
      - Platform
      summary: Check balance and credits
      description: Returns the current account balance, daily usage, limit, and remaining calls for the authenticated key. Requires authentication.
      operationId: getBalance
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          description: Balance information
          content:
            application/json:
              schema:
                type: object
                properties:
                  tier:
                    type: string
                  used_today:
                    type: integer
                  limit:
                    type: integer
                  remaining:
                    type: integer
                  is_subscription:
                    type: boolean
  /v1/keys/{hash}:
    delete:
      tags:
      - Platform
      summary: Revoke an API key
      description: Revokes an API key by marking it inactive in KV. The revoked key is rejected on next use. A caller may revoke their own key, a key that shares their owner_email, or any key if the requester is admin. Requires authentication.
      operationId: revokeApiKey
      security:
      - ApiKeyAuth: []
      parameters:
      - name: hash
        in: path
        required: true
        schema:
          type: string
        description: SHA-256 hash (64 hex chars) of the key to revoke, from GET /v1/keys.
      responses:
        '200':
          description: Key revoked
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    description: Confirmation message.
                  key_hash:
                    type: string
                    description: Hash of the revoked key.
        '400':
          description: Bad request — missing key id
        '401':
          description: Unauthorized — missing or invalid API key
        '403':
          description: Forbidden — you do not have permission to revoke this key
        '404':
          description: Not found — key does not exist
        '503':
          description: Service unavailable — key storage (KV) not configured
components:
  responses:
    BadRequest:
      description: Bad request — missing or invalid parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      required:
      - error
      - message
      properties:
        error:
          type: boolean
          example: true
        message:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API key authentication. Provide via X-API-Key header or Authorization: Bearer <key> header.'
    X402Payment:
      type: apiKey
      in: header
      name: X-PAYMENT
      description: x402 pay-per-call payment. Send base64url(JSON) of the x402 payment payload in X-PAYMENT (or PAYMENT-SIGNATURE). No account or API key needed. Call the endpoint once without credentials and the 402 response tells you the exact price, network, asset and payTo address to pay.
x-refined-from:
- laminarforge-dev-openapi.json
- laminarforge-dev-openapi.json