---
title: Delete Token API
slug: v2-apis/delete-token-api
description: Learn how to delete a token (requestId) generated using Signzy's Create URL API with this informative document. Find step-by-step instructions on how to call the Delete Token API, including the login process and passing the access token as authorization. 
createdAt: 2022-09-19T07:28:09.000Z
---

# Introduction

This API from signzy is used to delete the token (requestId) generated using the Create URL API.

## How to call the API

You will need to [login](https://docs.signzy.com/sandboxapis) before sending  request. You are required to pass the access token received from the login call, as authorization header in the Delete Token API request.&#x20;

## API Input Guidelines

- You need to provide the requestId recieved from the [create URL API](https://docs.signzy.com/sandboxapis/create-url-api).

### Sample Curl

::::Tabs
:::Tab{title="Preproduction"}
```curl
curl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/..patronID../digilockers' \
--header 'Authorization: .....' \
--header 'Content-Type: application/json' \
--data-raw '{
       "task" : "deleteToken",
       "essentials" : {
            "requestId" : "...requestId..."
       }

```
:::

:::Tab{title="Production"}
```curl
curl --location --request POST 'https://signzy.tech/api/v2/patrons/..patronID../digilockers' \
--header 'Authorization: .....' \
--header 'Content-Type: application/json' \
--data-raw '{
       "task" : "deleteToken",
       "essentials" : {
            "requestId" : "...requestId..."
       }

```
:::
::::

### Input Parameters

| **Parameter Name&#x20;** | **Required/Optional** | **Description**                                                   |
| ------------------------ | --------------------- | ----------------------------------------------------------------- |
| Authorization            | Required              | Contains the id parameter returned from the login step            |
| Content-Type             | Required              | application/json                                                  |
| task                     | Required              | Type of Tasks to be performed in Signzy System, eg: URL , GetData |
| essentials               | Required              | This parameter contains the essential data for generating output  |
| essentials.requestId     | Required              | This parameter contains the requestId generated from              |

### Sample Response

```json
{
"essentials": {
"requestId": "..< Request id>.."
},
"id": "..<token>..",
"patronId": "..<patron id>..",
"task": "deleteToken",
"result": {
"status": "SUCCESS"
}
}
```

### Response Parameter

| ***Parameter Name&#x20;*** | **Description**                                                                                                                                        |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| essentials                 | This parameter contains the essential data for generating output                                                                                       |
| essentials.requestId       | This parameter contains the requestId generated from [create URL API](https://docs.signzy.com/sandboxapis/create-url-api)                              |
| id                         | Unique id of the response                                                                                                                              |
| patronId                   | Unique patron id generated from the login                                                                                                              |
| task                       | Type of Tasks to be performed in Signzy System, eg: URL , GetData<br />Required<br />Type of Tasks to be performed in Signzy System, eg: URL , GetData |
| result                     | This parameter contains the actual response                                                                                                            |
| result.status              | This parameter contains the status of the result (i.e success/failed)                                                                                  |

***

:::hint{type="info"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.


You can reach out to us at [help@signzy.com](#).
:::

