# Text Recognition Image

## API TEXT RECOGNITION IMAGE

<mark style="color:green;">`POST`</mark> `https://dsc-ocr.udata.id/api/order/ocr/image/recognition`

Upload file to server.

#### Headers

| Name           | Type   | Description                                                    |
| -------------- | ------ | -------------------------------------------------------------- |
| webhook\_url   | string | callback url                                                   |
| Authentication | string | Authentication token to track down who is emptying our stocks. |

#### Request Body

| Name  | Type   | Description |
| ----- | ------ | ----------- |
| image | object |             |

{% tabs %}
{% tab title="200 File processed." %}
```
{
    "message": "file processed",
    "success": true,
    "transaction_id": "TRANSACTION_ID"
}
```
{% endtab %}

{% tab title="401 Need to get access token." %}
```
Jwt is expired
```
{% endtab %}
{% endtabs %}

## Webhook  Response

```
{
  "filename": "TRANSACTION_ID",
  "ocrResult": [
    {
      "text": str
    },
    ...
  ],
  "type": str
}
```
