---
title: Create OCR Request
slug: api-marketplace/create-ocr-request
createdAt: 2026-08-05T11:20:57.004Z
---

### Introduction

This API processes GSTR-1, GSTR-2B, and GSTR-3B documents to extract GST return data. It automatically identifies the type of the uploaded document and extracts the relevant information from each return. The extracted data is returned in a structured JSON format, which can be used for further processing or analysis.

### cURL

:::CodeblockTabs
Production

```curl
curl --location 'https://api.signzy.app/api/v3/gstr-analytics/create-ocr-request' \
--header 'Authorization: <auth token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "gstin": "29ABCDE1234F1Z5",
    "fromDate": "022025",
    "toDate": "012026",
    "documents": [
        "url1",
        "url2"
    ]
}'
```

Pre-Production

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/gstr-analytics/create-ocr-request' \
--header 'Authorization: <auth token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "gstin": "29ABCDE1234F1Z5",
    "fromDate": "022025",
    "toDate": "012026",
    "documents": [
        "url1",
        "url2"
    ]
}'
```
:::

### Endpoints&#x20;

:::CodeblockTabs
Production

```curl
https://api.signzy.app/api/v3/gstr-analytics/create-ocr-request
```

Preproduction

```none
https://api-preproduction.signzy.app/api/v3/gstr-analytics/create-ocr-request
```
:::

### Request Headers

| Key           | Value            |
| ------------- | ---------------- |
| Authorization | shared by Signzy |
| Content-type  | application/json |

### Request Body

```json
{
    "gstin": "29ABCDE1234F1Z5",
    "fromDate": "022025",
    "toDate": "012026",
    "documents": [
        "url1",
        "url2"
    ]
}
```

**Input Mapping**

| PARAMETERS | DESCRIPTION                                                                                       | TYPE             | VALUE (COMPULSORY OR OPTIONAL) |
| ---------- | ------------------------------------------------------------------------------------------------- | ---------------- | ------------------------------ |
| gstin      | GSTIN of the business/customer for which the analytics report/raw data is to be generated/fetched | String           | COMPULSORY                     |
| fromDate   | Starting date (MMYYYY format) from which the analytics report is to be generated                  | String           | COMPULSORY                     |
| toDate     | Ending date (MMYYYY format) till which the analytics report is to be generated                    | String           | COMPULSORY                     |
| documents  | List of persist files of GSTR Docs                                                                | Array of Strings | COMPULSORY                     |

### Response Data

:::CodeblockTabs
200 OK

```json
{
    result: {
        status: "SUCCESS",
        requestId: "95087786-d989-4f92-b0be-dd507a5c612f",
        message: "OCR Request Created Successfully"
    }
}
```
:::

| PARAMETERS | DESCRIPTION                                                                                     | TYPE   | VALUE (COMPULSORY OR OPTIONAL) |
| ---------- | ----------------------------------------------------------------------------------------------- | ------ | ------------------------------ |
| result     | This parameter contains the actual output.                                                      | Object | COMPULSORY                     |
| requestId  | This is a unique 36-character long alphanumeric string created during the successful submisson. | String | COMPULSORY                     |
| message    | It indicates whether the OTP generation step was successful or not.                             | String | COMPULSORY                     |
| status     | Shows status of the request                                                                     | String | COMPULSORY                     |

### Sample Status Codes And Messages

:::CodeblockTabs
200 OK

```json
{
    result: {
        status: "SUCCESS",
        requestId: "95087786-d989-4f92-b0be-dd507a5c612f",
        message: "OCR Request Created Successfully"
    }
}
```

409

```json
{
    "error": {
        "name": "error",
        "message": "Error in getting data from Upstream",
        "status": 409,
        "reason": "Error",
        "type": "Conflict",
        "statusCode": 409
    }
}
```

400

```json
{
    "error": {
        "name": "error",
        "message": "Invalid gstin",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 200
    }
}
```

401

```json
{
    "message": "Invalid authentication credentials"
}
```

500

```json
{
    "error": {
        "name": "error",
        "message": "Internal Server Error",
        "status": 500,
        "reason": "ERROR",
        "type": "Internal Server Error",
        "statusCode": 500
    }
}
```
:::

