---
title: "Extract SIM"
method: POST
path: "/ocr/sim"
tags: ["SIM"]
---

# Extract SIM

`POST /ocr/sim`

The purpose of OCR is to extract information from SIM image. The result will be in “text” format. All the data inside SIM will be extracted.

  You will receive a response consists of message and an error code if the
request fails to process. The following is a list of error codes.
<br>

| Error status                                  | Error code                    | Description                                  |
| ------------------------------|----------------------------------------------|----------------------------------------------|
| 200 | SIM_NOT_DETECTED  | Image is not detected as SIM |
| 400 | INVALID_PAYLOAD                | No value in payload   |
| 400 | INVALID_PAYLOAD_IMAGE_FORMAT        |  Invalid  image format                      |
| 400 | INSUFFICIENT_QUOTA         |  Quota is not sufficient to continue                       |
| 500 | INTERNAL_SERVER_ERROR         | Internal server error |

## Headers

- `App-ID` string, required
- `API-Key` string, required

## Response `200`

Successful Response

- ResponseExtractSIM
  - `Message` string — Message indicating the status of the request to be processed
  - `data` object — Show the recognition result
    - `sim_number` string — Shows SIM number
    - `sim_type` string — Shows type of SIM
    - `name` string — Shows name from SIM
    - `address` string — Shows address from SIM
    - `occupation` string — Shows occupation from SIM
    - `gender` string — Shows gender from SIM
    - `domain` string — Shows domain of SIM
    - `blood_type` string — Shows blood type from SIM
    - `birth_date` string — Shows birth date from SIM
    - `birth_place` string — Shows birth place from SIM
    - `height` string — Shows height from SIM
    - `valid_until` string — Shows expiry date of SIM

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.dev/verihubs/apis/sms-api-documentation.md) · [All operations](https://skmtc.dev/verihubs/apis/sms-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/verihubs/sms-api-documentation/revisions/5fa885d38adc/schema)
