# Digital Signature API

### Request Method

POST

### Request Path

```
{{API_URL}}/api/v1/dsc/sign-doc/
```

| API Name      | Sign DSC                                                                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                     |                                                                                                                                                                                                                                                       |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| URL           | {{API\_URL}}/api/v1/dsc/sign-doc/                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                                     |                                                                                                                                                                                                                                                       |
| Method Type   | POST                                                                                                                                                                                                                                                       |                                                                                                                                                                                                                                                                                     |                                                                                                                                                                                                                                                       |
| Headers       | Key                                                                                                                                                                                                                                                        | Value                                                                                                                                                                                                                                                                               |                                                                                                                                                                                                                                                       |
| Authorization | JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjozMDMsInVzZXJuYW1lIjoiYnV5ZXJtYXN0ZXJzQGdtYWlsLmNvbSIsImV4cCI6MTY1MDUzODU3OSwiZW1haWwiOiJidXllcm1hc3RlcnNAZ21haWwuY29tIiwib3JpZ19pYXQiOjE2NTA0NTIxNzl9.90mEXrP74zXQCchgCqRa3viCGiShhsX\_r6cd5eGbDuw | Either auth token or MIPL key                                                                                                                                                                                                                                                       |                                                                                                                                                                                                                                                       |
| MiplApiKey    | PjpnwV0RIMWrTIn095wCtlnSCpBN\*\*\*\*                                                                                                                                                                                                                       |                                                                                                                                                                                                                                                                                     |                                                                                                                                                                                                                                                       |
| gstin         | 05AAAP\*\*\*\*\*\*\*02                                                                                                                                                                                                                                     | <p><br></p>                                                                                                                                                                                                                                                                         |                                                                                                                                                                                                                                                       |
| Body          | formdata                                                                                                                                                                                                                                                   |                                                                                                                                                                                                                                                                                     |                                                                                                                                                                                                                                                       |
| <p><br></p>   | Key                                                                                                                                                                                                                                                        | Value                                                                                                                                                                                                                                                                               | Define                                                                                                                                                                                                                                                |
| <p><br></p>   | file\_type                                                                                                                                                                                                                                                 | file                                                                                                                                                                                                                                                                                | Type of the File. Options: file                                                                                                                                                                                                                       |
| <p><br></p>   | file                                                                                                                                                                                                                                                       | Base64 encoded content of pdf file                                                                                                                                                                                                                                                  | <p><br></p>                                                                                                                                                                                                                                           |
| <p><br></p>   | signloc                                                                                                                                                                                                                                                    | {"1":{"ll\_x":320,"ll\_y":257,"ur\_x":591,"ur\_y":316}}                                                                                                                                                                                                                             | Location of sign in json, where key will be the page, and values provide the info of the cord. Here ll\_\* refers to the lower left and ur\_\* to the upper right corner from the top left of the page as center. Pass this json as stringify format. |
| Response      | <p><br></p>                                                                                                                                                                                                                                                | <p>{</p><p>    "success": false,</p><p>    "message": \[</p><p>        {</p><p>            "ErrorCode": "DSC01",</p><p>            "ErrorMessage": "Value error, Invalid File"</p><p>        }</p><p>    ],</p><p>    "data": {}</p><p>}</p>                                        | <p><br></p>                                                                                                                                                                                                                                           |
| <p><br></p>   | <p><br></p>                                                                                                                                                                                                                                                | <p>{</p><p>    "success": false,</p><p>    "message": \[</p><p>        {</p><p>            "ErrorCode": "DSC01",</p><p>            "ErrorMessage": "Value error, Invalid File Type, File type must be pdf"</p><p>        }</p><p>    ],</p><p>    "data": {}</p><p>}</p><p><br></p> | <p><br></p>                                                                                                                                                                                                                                           |

###


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mastersindia.co/digital-signature/digital-signature-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
