DocsOCR STNK API
OCR STNK API
Extract vehicle identity (registration number, brand, model, engine details, chassis number) from Indonesian Vehicle Registration Certificates (STNK).
POST
http://178.105.157.85:3000/api/ocr?type=STNKRequest Example
cURL
curl -X POST \
"http://178.105.157.85:3000/api/ocr?type=STNK" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: multipart/form-data" \
-F "image=@/path/to/document.jpg"Authentication Header
Authorization: Bearer YOUR_API_KEY
Generate an API key from your Dashboard → API Keys panel. For testing server/sandbox local environments, key verification is bypassed.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
image | File | Yes | STNK card/sheet image file (JPG, PNG) |
enhance | Boolean | No | Enable high-contrast document filtering |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | String | Yes | Bearer YOUR_API_KEY (Optional for local sandbox) |
Content-Type | String | Yes | multipart/form-data |
Response Example
JSON
{
"success": true,
"data": {
"nomor_registrasi": "B 1234 ABC",
"nama_pemilik": "BUDI SETIAWAN",
"alamat": "JL. AMAN NO. 2",
"merk": "TOYOTA",
"tipe": "AVANZA",
"jenis": "MINIBUS",
"model": "PASSENGER",
"tahun_pembuatan": "2022",
"isi_silinder": "1496 CC",
"nomor_rangka": "MHF11BK28JK12938",
"nomor_mesin": "2NR-FE12384",
"warna": "HITAM METALIK",
"bahan_bakar": "BENSIN",
"warna_tnkb": "HITAM",
"tahun_registrasi": "2022",
"nomor_bpkb": "L-091238",
"kode_lokasi": "3171",
"berlaku_sampai": "25-06-2027"
},
"confidence": 94.12,
"processing_time": 0.52
}Rate Limit
Depending on your plan. Check your dashboard for current limits.