tenzro-xyz Credits API

The Credits API from tenzro-xyz — 4 operation(s) for credits.

Operations 4

GET /credits Get the credit balance #
GET /credits/activity List credit activity #
POST /credits/redeem Redeem a ticket #
GET /tickets List tickets you bought #

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/tenzro-xyz:tenzro-xyz-credits-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 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. See our Privacy Policy and Terms.

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

OpenAPI Specification

tenzro-xyz-credits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tenzro Labs Platform Credits API
  version: 1.0.0
  description: Browse the curated catalogue; manage credits, billing, keys, plans and rentals; place and pay orders; run Datasets, Fieldwork, Voices and Forecasts. Chat, embeddings, images, speech and the model list keep the OpenAI-compatible /v1 paths.
servers:
- url: https://api.tenzro.xyz
security:
- apiKey: []
tags:
- name: Credits
paths:
  /credits:
    get:
      tags:
      - Credits
      summary: Get the credit balance
      description: 'Total balance and its split between credit usable anywhere (machine_id null) and credit pinned to machines.


        Needs a key with the `read` permission.'
      operationId: getCredits
      x-tenzro-scope: read
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                total_credits: 25000
                by_scope:
                - machine_id: null
                  credits: 25000
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /credits/activity:
    get:
      tags:
      - Credits
      summary: List credit activity
      description: 'Credit added, plan credit granted, and usage charged, newest first.


        Needs a key with the `read` permission.'
      operationId: getCreditsActivity
      x-tenzro-scope: read
      parameters:
      - name: limit
        in: query
        required: false
        description: 1–500, default 50.
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                data:
                - id: '812'
                  type: usage
                  credits: 0
                  machine_id: tenzro-partner-cluster
                  at: '2026-09-26T08:01:12.000Z'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /credits/redeem:
    post:
      tags:
      - Credits
      summary: Redeem a ticket
      description: Needs a key with the `manage` permission.
      operationId: postCreditsRedeem
      x-tenzro-scope: manage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - code
              properties:
                code:
                  type: string
                  example: TZ-7K2M-9QXA-4BVN-P0RD
            example:
              code: TZ-7K2M-9QXA-4BVN-P0RD
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                redeemed: true
                credits: 25000
                machine_id: null
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /tickets:
    get:
      tags:
      - Credits
      summary: List tickets you bought
      description: 'Gift tickets and credit tickets this account bought, including codes not yet redeemed.


        Needs a key with the `read` permission.'
      operationId: getTickets
      x-tenzro-scope: read
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                data:
                - code: TZ-7K2M-9QXA-4BVN-P0RD
                  credits: 25000
                  machine_id: null
                  redeemed: false
                  redeemed_by_you: false
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            scope:
              type: string
              description: 'On a 403: the permission the key lacks.'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: A Tenzro Labs API key (tzl_…).
    ingestKey:
      type: http
      scheme: bearer
      description: 'A Fieldwork ingest key (tzi_…): bound to one project and the origins listed on it, able only to run the participant flow. Safe in a browser. Create it with POST /fieldwork/projects/{id}/ingest-keys.'
    serviceAssertion:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'A Tenzro Labs service''s ES256 assertion: header kid = the RFC 7638 thumbprint of a key in the service''s published JWKS; iss = sub = the service; aud = this endpoint; exp at most 60 s after iat; jti used once.'