DocsIntroduction

Introduction

Welcome to the SaSiRa OCR Engine API documentation. Our API allows you to extract text and data from various Indonesian documents with high accuracy and low latency.

Authentication

All API requests must include your API key in the Authorization header:

// Request Header
Authorization: Bearer YOUR_API_KEY

You can manage your API credentials in the Dashboard → API Keys panel.

Base URL

Every OCR request goes to one endpoint. The document type is chosen with the type query parameter:

https://sasira-ai.com/api/ocr?type=LPR

Accepted values: KTP, SIM, STNK, PASSPORT, BARCODE, LPR, METERED, PANEL_METER, CONTAINER_ISO, CONTAINER_SEAL, SAFETY_K3. An unrecognised value is treated as KTPrather than rejected, so check the spelling if a result looks wrong.

Rate Limiting

Requests are rate-limited based on your active subscription plan. Check your Dashboard for current limits, consumption analytics, and upgrade options.