MyOCR Keys API

API key management (requires session login, not API key)

GitHub OpenAPI

Operations 4

POST /v1/keys Create API key #
GET /v1/keys List own API keys #
POST /v1/keys/{id}/rotate Rotate an API key (atomic revoke + create) #
DELETE /v1/keys/{id} 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/myocr-app:myocr-app-keys-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-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: myocr.app Keys 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: Keys
  description: API key management (requires session login, not API key)
paths:
  /v1/keys:
    post:
      tags:
      - Keys
      summary: Create API key
      description: 'Requires logged-in session (cookie auth, not X-API-Key).

        The raw key is returned **once** — store it now.'
      security: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                label:
                  type: string
                  maxLength: 120
                is_test:
                  type: boolean
                  default: false
      responses:
        '200':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeyCreatedResponse'
      operationId: postV1Keys
      x-operation-id-source: derived
    get:
      tags:
      - Keys
      summary: List own API keys
      security: []
      responses:
        '200':
          description: List
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ApiKeyInfo'
      operationId: getV1Keys
      x-operation-id-source: derived
  /v1/keys/{id}/rotate:
    post:
      tags:
      - Keys
      summary: Rotate an API key (atomic revoke + create)
      description: 'Revokes the existing key and creates a new one with the same `label`, `is_test` and

        `monthly_limit`. The new raw key is returned **once** — store it now.

        Use this when you suspect a key was leaked or as part of periodic rotation policy.'
      security: []
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Rotated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      old_id:
                        type: integer
                      old_revoked:
                        type: boolean
                      id:
                        type: integer
                      key:
                        type: string
                        description: New raw key — shown once
                      prefix:
                        type: string
                      label:
                        type: string
                      is_test:
                        type: boolean
                      created_at:
                        type: string
                        format: date-time
                      note:
                        type: string
      operationId: postV1KeysByIdRotate
      x-operation-id-source: derived
  /v1/keys/{id}:
    delete:
      tags:
      - Keys
      summary: Revoke an API key
      security: []
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Revoked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
      operationId: deleteV1KeysById
      x-operation-id-source: derived
components:
  schemas:
    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
    ApiKeyInfo:
      type: object
      properties:
        id:
          type: integer
        prefix:
          type: string
        label:
          type: string
          nullable: true
        is_active:
          type: boolean
        is_test:
          type: boolean
        created_at:
          type: string
          format: date-time
          nullable: true
        last_used_at:
          type: string
          format: date-time
          nullable: true
    KeyCreatedResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            id:
              type: integer
            key:
              type: string
              description: Raw key — shown once, store securely
              example: sk_live_...
            prefix:
              type: string
            label:
              type: string
            is_test:
              type: boolean
            created_at:
              type: string
              format: date-time
            note:
              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.