MyOCR Jobs API

Asynchronous conversion (up to 50MB, up to 500 pages per PDF, with webhook)

GitHub OpenAPI

Operations 6

POST /v1/jobs Create async conversion job #
GET /v1/jobs List async jobs for the calling API key (paginated) #
POST /v1/batch Create async batch (multiple files) #
GET /v1/jobs/{request_id} Poll job status #
DELETE /v1/jobs/{request_id} Delete job + cleanup files #
GET /v1/jobs/{request_id}/result Download job result #

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/myocr-app:myocr-app-jobs-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

myocr-app-jobs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: myocr.app Jobs API
  version: 1.0.0
  description: 'Convert PDF and image documents to structured Excel/text. Tables and full-text run on our OCR engine; specialized models return domain-specific fields.


    **Base URL:** `https://api.myocr.app`


    **Authentication:** `X-API-Key` header. Get a key from your dashboard.

    Test keys (`sk_test_...`) and live keys (`sk_live_...`) are supported.


    **Rate limits** (per API key — clients behind shared NAT/proxy do NOT share the limit):

    - `/v1/convert` (sync): 60 requests/min

    - `/v1/jobs` (async): 120 requests/min

    - `/v1/batch` (multi-file): 30 requests/min


    Requests without an API key (`/v1/status`) are rate-limited per IP.


    **Response envelope:**

    ```json

    {"success": true, "data": {...}, "request_id": "abcd1234"}

    ```

    Or on error:

    ```json

    {"success": false, "error": {"code": "INVALID_API_KEY", "message": "..."}, "request_id": "..."}

    ```


    All responses include `X-MyOCR-Request-Id` header. File responses also include `X-MyOCR-Pages-Used` and `X-MyOCR-Model`.'
  contact:
    name: myocr.app support
    email: info@myocr.app
    url: https://www.myocr.app
  license:
    name: Proprietary
servers:
- url: https://api.myocr.app
  description: Production
security:
- ApiKeyAuth: []
tags:
- name: Jobs
  description: Asynchronous conversion (up to 50MB, up to 500 pages per PDF, with webhook)
paths:
  /v1/jobs:
    post:
      tags:
      - Jobs
      summary: Create async conversion job
      description: 'Upload a file (≤50MB, ≤500 pages for PDFs) for background processing. Returns immediately with `request_id`.

        Poll `GET /v1/jobs/{request_id}` or set `webhook_url` to be notified. PDFs above the page cap are rejected upfront with `TOO_MANY_PAGES`; split the document.'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - file
              - model
              properties:
                file:
                  type: string
                  format: binary
                model:
                  type: string
                  enum:
                  - tables
                  - text
                  - invoice
                  - receipt
                  - bank_statement
                  - business_card
                  - fields
                page_range:
                  type: string
                  example: 1,3-5
                  description: 'PDF only — process just these pages: `3`, `3-5`, `1,3-5`, `2-` (to the end).

                    Applied before the page cap and before the quota reservation, so excluded pages

                    are neither counted nor billed. Malformed → 400 `INVALID_PAGE_RANGE`.

                    '
                fields:
                  type: string
                  example: invoice number,date,total
                  description: Required when `model=fields` — field names, comma-separated or JSON array, max 60.
                fields_mode:
                  type: string
                  enum:
                  - page
                  - list
                  default: page
                  description: '`page` (default) = one row per page. `list` = the document is a printed list and

                    each entry becomes a row, with values assigned by position.

                    '
                webhook_url:
                  type: string
                  format: uri
                  description: 'HTTPS URL to receive `job.completed` / `job.failed` events.

                    Payload is signed with HMAC SHA-256 of the raw body, using your account''s webhook

                    signing secret from the API dashboard (header `X-MyOCR-Signature: sha256=...`).

                    Retries: 1m, 5m, 30m, 2h.

                    '
      responses:
        '200':
          description: Job created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobCreatedResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/QuotaExceeded'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/RateLimit'
        '503':
          $ref: '#/components/responses/StorageError'
      operationId: postV1Jobs
      x-operation-id-source: derived
    get:
      tags:
      - Jobs
      summary: List async jobs for the calling API key (paginated)
      parameters:
      - in: query
        name: status
        schema:
          type: string
          enum:
          - pending
          - processing
          - done
          - failed
      - in: query
        name: model
        schema:
          type: string
          enum:
          - tables
          - text
          - invoice
          - receipt
          - bank_statement
          - business_card
      - in: query
        name: limit
        schema:
          type: integer
          default: 20
          maximum: 100
      - in: query
        name: offset
        schema:
          type: integer
          default: 0
      responses:
        '200':
          description: Paginated job list
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      total:
                        type: integer
                      limit:
                        type: integer
                      offset:
                        type: integer
                      jobs:
                        type: array
                        items:
                          $ref: '#/components/schemas/JobStateResponse/properties/data'
                  request_id:
                    type: string
        '401':
          $ref: '#/components/responses/Unauthorized'
      operationId: getV1Jobs
      x-operation-id-source: derived
  /v1/batch:
    post:
      tags:
      - Jobs
      summary: Create async batch (multiple files)
      description: 'Submit up to 20 files (≤50MB each, ≤500 pages per PDF) in a single multipart request.

        Each file becomes a separate ApiJob and consumes one quota call. Returns array of

        `request_id` (one per file) plus an `errors` array for files that failed validation

        (e.g. `FILE_TOO_LARGE`, `TOO_MANY_PAGES`, `UNSUPPORTED_FILE_TYPE`).'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - files
              - model
              properties:
                files:
                  type: array
                  items:
                    type: string
                    format: binary
                  description: 1–20 files (pdf/png/jpg/...)
                model:
                  type: string
                  enum:
                  - tables
                  - text
                  - invoice
                  - receipt
                  - bank_statement
                  - business_card
                  - fields
                  description: Single model applied to all files in batch
                page_range:
                  type: string
                  example: '1'
                  description: 'PDF only — applied to **every** file of the batch, so use it when the files share

                    the same layout. A file the range cannot be applied to is reported in `errors`

                    with `INVALID_PAGE_RANGE`, without failing the rest of the batch.

                    Excluded pages are not billed.

                    '
                fields:
                  type: string
                  example: invoice number,date,total
                  description: Required when `model=fields` — field names, comma-separated or JSON array, max 60.
                fields_mode:
                  type: string
                  enum:
                  - page
                  - list
                  default: page
                  description: '`page` (default) = one row per page. `list` = the document is a printed list and

                    each entry becomes a row, with values assigned by position.

                    '
                webhook_url:
                  type: string
                  format: uri
                  description: Notified once per job (job.completed/failed for each file)
      responses:
        '200':
          description: Batch accepted (some jobs may have errors — check `errors` array)
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      batch_id:
                        type: string
                      model:
                        type: string
                      jobs_created:
                        type: integer
                      jobs:
                        type: array
                        items:
                          type: object
                          properties:
                            filename:
                              type: string
                            request_id:
                              type: string
                            status:
                              type: string
                      errors:
                        type: array
                        items:
                          type: object
                          properties:
                            filename:
                              type: string
                            code:
                              type: string
                            message:
                              type: string
                  request_id:
                    type: string
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/QuotaExceeded'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/RateLimit'
      operationId: postV1Batch
      x-operation-id-source: derived
  /v1/jobs/{request_id}:
    get:
      tags:
      - Jobs
      summary: Poll job status
      parameters:
      - in: path
        name: request_id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Job state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobStateResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getV1JobsByRequestId
      x-operation-id-source: derived
    delete:
      tags:
      - Jobs
      summary: Delete job + cleanup files
      parameters:
      - in: path
        name: request_id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: deleteV1JobsByRequestId
      x-operation-id-source: derived
  /v1/jobs/{request_id}/result:
    get:
      tags:
      - Jobs
      summary: Download job result
      description: 'Returns a signed URL (24h, R2-backed) or streams the result file directly.

        Only available when `status == "done"`.'
      parameters:
      - in: path
        name: request_id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Signed URL or binary
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResultUrlResponse'
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Job not done yet
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      operationId: getV1JobsByRequestIdResult
      x-operation-id-source: derived
components:
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    StorageError:
      description: Object storage (R2) error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    QuotaExceeded:
      description: Monthly quota exhausted
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    PayloadTooLarge:
      description: File too large or too many pages
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimit:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    BadRequest:
      description: Validation error (missing/invalid field)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            code:
              type: string
              enum:
              - MISSING_API_KEY
              - INVALID_API_KEY
              - UNSUPPORTED_MODEL
              - UNSUPPORTED_OUTPUT
              - UNSUPPORTED_FILE_TYPE
              - MISSING_FILE
              - INVALID_FILE
              - INVALID_PARAMETER
              - FILE_TOO_LARGE
              - TOO_MANY_PAGES
              - INVALID_WEBHOOK_URL
              - INVALID_PAGE_RANGE
              - MISSING_FIELDS
              - CARD_REQUIRED
              - NO_ACTIVE_PLAN
              - INSUFFICIENT_PAGES
              - QUOTA_EXCEEDED
              - SPEND_CAP_REACHED
              - SMART_EXTRACT_LIMIT
              - NOT_READY
              - NOT_FOUND
              - SERVICE_BUSY
              - OCR_ERROR
              - STORAGE_ERROR
              - SERVICE_NOT_READY
              - INTERNAL_ERROR
            message:
              type: string
        request_id:
          type: string
    JobStateResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            request_id:
              type: string
            status:
              type: string
              enum:
              - pending
              - processing
              - done
              - failed
            model:
              type: string
            pages_used:
              type: integer
              nullable: true
            created_at:
              type: string
              format: date-time
            completed_at:
              type: string
              format: date-time
              nullable: true
            error_detail:
              type: string
              nullable: true
    JobCreatedResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            request_id:
              type: string
            status:
              type: string
              enum:
              - pending
            model:
              type: string
        request_id:
          type: string
    ResultUrlResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            result_url:
              type: string
              format: uri
              description: Signed URL, 24h expiry
            expires_in:
              type: integer
              example: 86400
    SuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          type: object
        request_id:
          type: string
          example: abcd1234efgh5678
        warnings:
          type: array
          description: 'Optional and additive — present only when there is something worth telling you.

            The conversion itself is unaffected: ignore the field and the response is what it

            has always been. Today the only code is `PAGE_RANGE_SUGGESTED`, returned when a

            single-document model (invoice, receipt, business_card) is asked to read a PDF of

            more than 3 pages without `page_range`. File responses (xlsx/csv/txt) carry the

            code in the `X-MyOCR-Warning` header instead, since they have no JSON body.

            '
          items:
            type: object
            properties:
              code:
                type: string
                example: PAGE_RANGE_SUGGESTED
              message:
                type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Send your API key in the `X-API-Key` header. Get one at /account/api.