Mathpix · Capability

Mathpix Batch API — Batches

Mathpix Batch API — Batches. Submit many images in one request and retrieve results keyed by caller IDs. Self-contained Naftiko capability.

Mathpix Batch API — Batches is a Naftiko capability published by Mathpix, one of 7 capabilities the APIs.io network indexes for this provider. It bundles 1 operation across the POST method rooted at /v1/v3/batch.

The capability includes 1 read-only operation and 1 state-changing operation. Lead operation: Submit A Batch. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Mathpix, Batch, and OCR.

Run with Naftiko MathpixBatchOCR

What You Can Do

POST
Submitbatch — Submit A Batch
/v1/v3/batch

MCP Tools

mathpix-submit-batch

Submit A Batch

mathpix-get-batch-results

Get Batch Results

read-only idempotent

Capability Spec

batch-batches.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mathpix Batch API — Batches
  description: 'Mathpix Batch API — Batches. Submit many images in one request and retrieve results
    keyed by caller IDs. Self-contained Naftiko capability.'
  tags:
  - Mathpix
  - Batch
  - OCR
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    MATHPIX_APP_ID: MATHPIX_APP_ID
    MATHPIX_APP_KEY: MATHPIX_APP_KEY
capability:
  consumes:
  - type: http
    namespace: batch-batches
    baseUri: https://api.mathpix.com
    resources:
    - name: v3-batch
      path: /v3/batch
      operations:
      - name: submitbatch
        method: POST
        description: Submit A Batch
        outputRawFormat: json
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    - name: v3-batch-item
      path: /v3/batch/{batch_id}
      operations:
      - name: getbatchresults
        method: GET
        description: Get Batch Results
        outputRawFormat: json
        inputParameters:
        - name: batch_id
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: app_key
      value: '{{env.MATHPIX_APP_KEY}}'
      placement: header
      additionalHeaders:
        app_id: '{{env.MATHPIX_APP_ID}}'
  exposes:
  - type: rest
    namespace: batch-batches-rest
    port: 8080
    resources:
    - path: /v1/v3/batch
      name: v3-batch
      operations:
      - method: POST
        name: submitbatch
        description: Submit A Batch
        call: batch-batches.submitbatch
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: batch-batches-mcp
    port: 9090
    transport: http
    tools:
    - name: mathpix-submit-batch
      description: Submit A Batch
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: batch-batches.submitbatch
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mathpix-get-batch-results
      description: Get Batch Results
      hints:
        readOnly: true
        idempotent: true
      call: batch-batches.getbatchresults
      with:
        batch_id: tools.batch_id
      outputParameters:
      - type: object
        mapping: $.