Skip to main content

API Overview

The NetraOCR REST API lets you embed document intelligence into your own products and automate document pipelines at scale. Everything you can do in the console, you can do over the API.

Base URL

https://netraocr.shivicx.com/api/v1

All endpoint paths in this reference are relative to that base URL. For example, "POST /ocr/upload" means POST https://netraocr.shivicx.com/api/v1/ocr/upload.

Authentication

API requests authenticate with an API key + secret pair over HTTP Basic auth — the api_key is the username, the api_secret is the password. Every key also enforces a mandatory IP allow-list.

curl https://netraocr.shivicx.com/api/v1/templates \
-u "ak_live_xxxxxxxx:sk_live_xxxxxxxx"

See Authentication and Managing API Keys.

Conventions

  • Format — requests and responses are JSON, except file uploads which use multipart/form-data.
  • Encoding — UTF-8.
  • Timestamps — ISO 8601, UTC (e.g. 2026-06-16T10:30:00Z).
  • IDsjob_id and similar identifiers are opaque strings; don't parse them.
  • Errors — non-2xx responses carry a JSON body with a detail message. See Errors.
  • Rate limits — applied per route. See Rate Limits.

Endpoint map

OCR

MethodPathPurpose
POST/ocr/uploadUpload a file (multipart), synchronous result
POST/ocr/upload-base64Upload a Base64 file (JSON), synchronous result
POST/ocr/bulk-analyzePre-flight validation + cost estimate
POST/ocr/bulk-uploadSubmit many files (asynchronous)

See OCR.

Batches

MethodPathPurpose
GET/batchesList bulk-upload batches
GET/batches/{batch_id}Get batch progress and paginated jobs
GET/batches/{batch_id}/exportExport completed batch results as JSON

See Batches.

Jobs & results

MethodPathPurpose
GET/ocr/jobsList your jobs
GET/ocr/jobs/{job_id}/statusCheck job status
GET/ocr/jobs/{job_id}/resultGet the full result
GET/ocr/jobs/{job_id}/downloadDownload the original file

See Jobs & Results.

Document integrity

MethodPathPurpose
POST/ocr/verifyStandalone integrity verification
GET/ocr/jobs/{job_id}/fraud-analysisGet integrity results for a job
POST/ocr/jobs/{job_id}/trigger-fraud-checkRun a check on an existing job
GET/ocr/fraud-checks/availableList available checks

See Document Integrity.

Templates

MethodPathPurpose
GET/templatesList templates
POST/templatesCreate a template
GET/templates/{id}Get a template
PUT/templates/{id}Update a template
DELETE/templates/{id}Delete a template
POST/templates/generateGenerate a template with AI
POST/templates/generate-from-imageGenerate a template from a sample document image

See Templates.

API keys

MethodPathPurpose
POST/api-keysCreate a key
GET/api-keysList keys
GET/api-keys/my-ipDetect your current IP
PATCH/api-keys/{key_id}/ip-whitelistUpdate a key's IP allow-list
DELETE/api-keys/{key_id}Revoke a key

See Managing API Keys.

Ready to authenticate? Continue to Authentication.