ChainTraced Batch API

Batch status API. The batch endpoints for Transactions respond with a batch ID; poll it here to follow the progress of the batch.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /v2/batches/{id} Fetch information about a batch #

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/chaintraced:chaintraced-batch-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

chaintraced-batch-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'This is the second version of the OpenAPI for ChainTraced.


    **Terminology**: the documents that suppliers and customers exchange are called **Transactions** in the ChainTraced app. What this API calls a *Certificate* is a Transaction: type `LOT_APPROVAL` is a **Lot Transaction** and type `PART_APPROVAL` (a *Part Approval*) is a **Product Transaction**. Endpoint paths, event types, HTTP headers and payload field names keep their existing names for backwards compatibility.


    **Direction**: the endpoints are split by the direction of the Transaction as seen from your company. An **Inbound** Transaction is one that you, as the customer, *request* from a supplier. An **Outbound** Transaction is one that you, as the supplier, *submit* to a customer. The `counterparty` in a payload is therefore the supplier for inbound and the customer for outbound Transactions.


    v2 of the OpenAPI will continuously be updated with new features and improvements without breaking backwards compatibility. For example, new endpoints and fields on request/response payloads might be added as we add new functionality to our platform.


    **Information about Rate-limiting**: If you make too many requests in a short amount of time you will hit our Rate-limiter. When this happens, you receive an HTTP response with status code `429` and the following headers.

    * `Retry-After`: The amount of time in seconds you need to wait before attempting another request. This is a standard HTTP header, see RFC-9110. Example: `1`

    * `X-Rate-Limit-Limit`: The amount of requests you can make per `X-Rate-Limit-Duration`. Example: `4.00`

    * `X-Rate-Limit-Duration`: The size of the window in which `X-Rate-Limit-Limit` applies. Example: `1s`


    As a rule of thumb, try not to send more than `4` requests per second per API key if you are planning to do a lot of consecutive calls.'
  title: ChainTraced Batch API
  contact:
    name: API Support
    url: https://www.chaintraced.com/
    email: support@chaintraced.com
  version: '2.0'
servers:
- url: https://api-demo.chaintraced.com
tags:
- description: Batch status API. The batch endpoints for Transactions respond with a batch ID; poll it here to follow the progress of the batch.
  name: Batch
paths:
  /v2/batches/{id}:
    get:
      security:
      - ApiKeyAuth: []
      description: Polling endpoint for the batch APIs. The response holds the number of items in each state and the status of the batch as a whole; see the `status` field of the response for the possible values and which of them are terminal.
      tags:
      - Batch
      summary: Fetch information about a batch
      parameters:
      - description: Batch ID
        name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pubsub.PubsubBatchInformationV2'
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
      operationId: getV2BatchesById
      x-operation-id-source: derived
components:
  schemas:
    pubsub.BatchStatus:
      type: string
      enum:
      - queued
      - processing
      - processed
      - processed_with_failures
      - cancelled
      x-enum-comments:
        BatchStatusCancelled: The batch was cancelled by the user
        BatchStatusProcessed: The batch is fully processed without failures
        BatchStatusProcessedWithFailures: The batch is fully processed but at least one job failed
        BatchStatusProcessing: The batch has one or more items in processing
        BatchStatusQueued: The batch has not yet started processing
      x-enum-varnames:
      - BatchStatusQueued
      - BatchStatusProcessing
      - BatchStatusProcessed
      - BatchStatusProcessedWithFailures
      - BatchStatusCancelled
    pubsub.PubsubBatchInformationV2:
      type: object
      properties:
        batchId:
          type: string
        cancelled:
          description: The amount of jobs that were cancelled before processing
          type: integer
        cancelledAt:
          description: Set when the batch was cancelled by the user
          type: string
        created:
          description: The total amount of jobs in the batch
          type: integer
        failed:
          description: The amount of jobs that have failed and will not be processed
          type: integer
        processed:
          description: The amount of jobs that have been fully processed without errors
          type: integer
        processing:
          description: The amount of jobs currently being processed
          type: integer
        status:
          description: 'Status of the batch as a whole.<ul><li><code>queued</code>: The batch is waiting to be processed</li><li><code>processing</code>: One or more jobs in the batch are currently processing</li><li><code>processed</code>: All jobs in the batch have been processed without errors. <b>This status is terminal.</b></li><li><code>processed_with_failures</code>: All jobs have been processed, but one or more jobs failed. <b>This status is terminal.</b></li><li><code>cancelled</code>: The batch was cancelled by the user. <b>This status is terminal.</b></li></ul>'
          allOf:
          - $ref: '#/components/schemas/pubsub.BatchStatus'
  securitySchemes:
    ApiKeyAuth:
      description: 'Add the following to your request header: `Authorization: API-KEY <key>`, where the key is the API key generated in the ChainTraced admin panel'
      type: apiKey
      name: Authorization
      in: header