Delete Token
Introduction
The Delete Token API is designed to efficiently delete the token (request ID) that was previously generated using the Create URL API.
API details
Endpoint
POST https://api.signzy.app/api/v3/digilocker/revokeAccessPOST https://api-preproduction.signzy.app/api/v3/digilocker/revokeAccessRequest headers
Name | Value | Required | Description |
|---|---|---|---|
Content-Type | application/json | Mandatory | The type of content that the request body contains. |
Authorization | XXXXXXXXXXXXXXX | Mandatory | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |
Request body parameter
Parameter | Data Type | Description | Required |
|---|---|---|---|
requestId | String | Unique ID allocated after the authorization in digilocker iframe. This is returned as “requestId” in Create URL API. | Mandatory |
{
"requestId": "6523e2dc5a9f9000112b19d8"
}Code samples
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.signzy.app/api/v3/digilocker/revokeAccess"
method := "POST"
payload := strings.NewReader(`{
"requestId" : "652523835a9f9000112b1ee6"
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "<Your Access Token>")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}Response body parameters
Parameter | Data Type | Description |
|---|---|---|
result | Object | Contains the result of the task. |
result.status | String | The status of the task. “SUCCESS” is returned, When the token(Request ID) is deleted and made inactive. |
{
"error": {
"reason": "Internal Server Error.",
"message": "Internal Server Error.",
"status": 500,
"type": "Error",
"statusCode": 500
}
}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 [email protected]. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.
We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!