---
title: Cheque Signature Extraction
slug: api-marketplace/cheque-signature-extraction
createdAt: 2026-07-24T10:10:12.614Z
---

## Introduction

The Cheque Signature Extraction API detects and extracts signature regions from cheque images. Using a computer-vision detection model, the API locates each signature on the cheque, returns its bounding box and provides a cropped image of the detected region encoded in base64.

This API helps organizations automate cheque processing, isolate signatures for downstream signature-verification workflows, and reduce manual review during clearing and onboarding.

**Accuracy for signature detection - 95%**

### API Details

**Endpoint:**

:::CodeblockTabs
Production Environment

```none
 POST  https://api.signzy.app/api/v3/extraction/cheque-signature
```
:::

:::CodeblockTabs
UAT/Testing environment

```none
POST  https://api-preproduction.signzy.app/api/v3/extraction/cheque-signature
```
:::

## Request Parameters

### Request Body Parameters

| Parameter                   | Type   | Required | Description                                                                                               |
| --------------------------- | ------ | -------- | --------------------------------------------------------------------------------------------------------- |
| input                       | object | Yes      | Wrapper object containing the request parameters.                                                         |
| input.image                 | string | Yes      | Cheque image to process. Supported file types: <br />jpg, jpeg, png.<br />(Persisted file URL)            |
| input.confidence\_threshold | number | Yes      | Minimum confidence a detection must meet to be returned. Value between 0 and 1. Example: <br />0.6<br />. |

### Request Headers

| Name          | Value            | Required | Description                                                                                                |
| ------------- | ---------------- | -------- | ---------------------------------------------------------------------------------------------------------- |
| Content-Type  | application/json | Yes      | The type of content that the request body contains.                                                        |
| Authorization | XXXXXXXXXXX      | Yes      | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |

### JSON

:::BlockQuote
\{
&#x20;   "input": \{
&#x20;       "confidence\_threshold": 0.6,
&#x20;       "image": "image url"
&#x20;   }
}
:::

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/extraction/cheque-signature' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth_key>' \
--data '{
    "input": {
        "confidence_threshold": 0.6,
        "image": "image url"
    }
}'
```

```nodejs
const axios = require('axios');

const data = JSON.stringify({
  input: {
    confidence_threshold: 0.6,
    image: "image url"
  }
});

const config = {
  method: 'post',
  url: 'https://api-preproduction.signzy.app/api/v3/extraction/cheque-signature',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': '<auth_key>'
  },
  data: data
};

axios(config)
  .then((response) => console.log(JSON.stringify(response.data)))
  .catch((error) => console.log(error));
```

```python
import requests
import json

url = "https://api-preproduction.signzy.app/api/v3/extraction/cheque-signature"

payload = json.dumps({
    "input": {
        "confidence_threshold": 0.6,
        "image": "image url"
    }
})
headers = {
    'Content-Type': 'application/json',
    'Authorization': '<auth_key>'
}

response = requests.post(url, headers=headers, data=payload)
print(response.json())
```

```go
package main

import (
    "bytes"
    "fmt"
    "io"
    "net/http"
)

func main() {
    url := "https://api-preproduction.signzy.app/api/v3/extraction/cheque-signature"
    payload := bytes.NewBuffer([]byte(`{"input": {"confidence_threshold": 0.6, "image": "image url"}}`))

    req, _ := http.NewRequest("POST", url, payload)
    req.Header.Add("Content-Type", "application/json")
    req.Header.Add("Authorization", "<auth_key>")

    res, err := http.DefaultClient.Do(req)
    if err != nil {
        fmt.Println(err)
        return
    }
    defer res.Body.Close()

    body, _ := io.ReadAll(res.Body)
    fmt.Println(string(body))
}
```
:::

***

### Response body parameters&#x20;

| Group      | Parameter                              | Data Type | Description                                                                          |
| ---------- | -------------------------------------- | --------- | ------------------------------------------------------------------------------------ |
| execution  | execution\_id                          | string    | Unique identifier for this execution. Example: 2fd0f340-2f86-40bf-adc4-0f8e7e6156bc. |
| execution  | status                                 | string    | Processing status of the request. Example: success.                                  |
| output     | output.detection\_count                | integer   | Number of signature regions detected that met the confidence threshold.              |
| detections | output.detections.label                | string    | Class label of the detected region. Example: Signature.                              |
| detections | output.detections.confidence           | number    | Model confidence for the detection, as a value between 0 and 1. Example: 0.85617.    |
| detections | output.detections.bounding\_box        | object    | Pixel coordinates of the detected region within the source image.                    |
| detections | output.detections.bounding\_box.x      | number    | X coordinate of the top-left corner of the bounding box, in pixels.                  |
| detections | output.detections.bounding\_box.y      | number    | Y coordinate of the top-left corner of the bounding box, in pixels.                  |
| detections | output.detections.bounding\_box.width  | number    | Width of the bounding box, in pixels.                                                |
| detections | output.detections.bounding\_box.height | number    | Height of the bounding box, in pixels.                                               |
| detections | output.detections.cropped\_image       | string    | Base64-encoded JPEG of the cropped signature region.                                 |

**Response examples**

:::CodeblockTabs
200

```json
//When detection count more than 0 
{
    "data": {
        "execution_id": "2fd0f340-2f86-40bf-adc4-0f8e7e6156bc",
        "status": "success",
        "output": {
            "detection_count": 1,
            "detections": {
                "label": "Signature",
                "confidence": 0.85617,
                "bounding_box": {
                    "x": 343.32581,
                    "y": 149.21405,
                    "width": 52.39206,
                    "height": 91.34175
                },
                "cropped_image": "/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCABbADQDAREAAhEBAxEB..."
            }
        }
    }
}

//When detection count 0

{
    "data": {
        "execution_id": "b7438435-0eb0-4922-a90a-837e9275401c",
        "status": "success",
        "output": {
            "detection_count": 0
        }
    }
}

```

400

```json
//Returned when the image field or any confidence_score is empty or missing
{
    "error": {
        "statusCode": 400,
        "status": "Bad Request",
        "message": "\"requestBody.input.image\" is not allowed to be empty",
        "id": "53bf4cd5-9738-4bfa-a76f-e7acdf352ab2"
    }
}

```

401

```json
{
    "error": {
        "success": false,
        "error_code": "401",
        "message": “Unauthorized, access denied”
    }
}

```

409

```json
{
    "error": {
        "reason": "Error From Upstream",
        "status": 409,
        "message": "Upstream Down",
        "type": "Conflict",
        "statusCode": 409,
        "name": "error"
    }
}
```

422

```json
//Returned for an incorrect URL, password-protected URL, wrong URL, or corrupt image.
{
    "error": {
        "success": false,
        "error_code": "422",
        "message": "Please upload the correct url"
    }
}

```
:::

##

## Best Practices

1. **File Quality**: Ensure cheques are clear, legible, and not heavily watermarked or damaged for optimal extraction accuracy.
2. **Supported Formats**: Use supported file formats (JPG, JPEG, PNG, PDF, TIFF) for best results

## Contact Us for Any Assistance

If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at **help\@signzy.com**. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.
