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.
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.