Skip to main content

Getting Started

This guide walks you from a fresh account to your first structured OCR result — first in the console, then over the API.

1. Create an account

Sign up at netraocr.shivicx.com. New accounts can start processing documents right away.

2. Process your first document in the console

  1. Sign in to the console.
  2. Select an extraction template for the document type. Global templates are available by default, and selecting a template is required for OCR. You can also create custom templates for your own document formats.
  3. From the Dashboard, click Upload and choose a PDF or image.
  4. (Optional) Toggle Document integrity to run tampering detection.
  5. Submit. For a single document the result appears within seconds — you'll see the extracted text and structured data, plus a downloadable copy.

That's it — you've processed your first document. Next, let's do the same over the API.

3. Get API credentials

API access uses an API key + secret pair.

  1. In the console, go to Settings → API Keys.
  2. Click Create API key.
  3. Add at least one allowed IP address — IP allow-listing is mandatory (the call that will use this key must originate from one of these IPs).
  4. Copy the API secret shown on creation — it is displayed only once. Store it in a secret manager.

You now have:

ValueLooks likeNotes
api_keyak_live_xxxxxxxxPublic identifier — safe to log
api_secretsk_live_xxxxxxxxSecret — shown once, store securely

See Authentication and Managing API Keys for the full details.

4. Call the API

NetraOCR authenticates API requests with HTTP Basic auth, using your api_key as the username and api_secret as the password.

The base URL is:

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

Upload a document

curl -X POST "https://netraocr.shivicx.com/api/v1/ocr/upload?template_id=gl1" \
-u "ak_live_xxxxxxxx:sk_live_xxxxxxxx" \
-F "file=@invoice.pdf"

A successful response returns the OCR result synchronously:

{
"job_id": "8f3c…",
"filename": "invoice.pdf",
"structured_data": { "invoice_number": "INV-1024", "total": "1180.00" },
"page_count": 1,
"document_type": "invoice",
"processing_time_ms": 2310,
"coins_consumed": 3
}
Template is required

Every OCR upload needs a selected template. Global templates are available by default, and custom templates can be created in Templates. Pass the selected template as template_id when uploading over the API.

5. Next steps