Delete Token
Introduction
By default, the access token received for an end use is valid for 1 hour and you can download the documents from his/her Digilocker account, within 1 hour. But, if you want to delete the token, you can call this API to delete the token. Post that, you would no longer have access to the end user’s account.
How to call the API
You will need to log in before sending the request. You are required to pass the access token received from the login call, as the authorization header in the request.
API Input Guidelines
You need to make sure that your input parameter requestId is authorized before you call this API.
Sample Curl
curl --location 'https://api.wayne-rta.com/api/v1/digilocker/revokeAccess' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data '{
"requestId": ""
}'Input Parameters
PARAMETERS | DESCRIPTION | TYPE | VALUE (COMPULSORY OR OPTIONAL) |
|---|---|---|---|
requestId | RequestId token | String | COMPULSORY |
Sample Response
{
"result": {
"status": "SUCCESS"
}
}
Response Parameter
PARAMETERS | DESCRIPTION | TYPE | VALUE |
|---|---|---|---|
status | Status of request | String | SUCCESS/FAILURE |
Sample Error
{
"message": "No API key found in request"
}Error Parameter
PARAMETER NAME | DESCRIPTION |
|---|---|
error | This parameter contains the error. |
error.name | the name of the error |
error.message | the error message |
error.status | status of the api |
error.statusCode | Request Status code from Signzy |
error.reason | Reason for error |
error.type | Type of the error |
Error Codes
CODE | DESCRIPTION |
|---|---|
400 | Invalid inputs |
401 | Authorization token is invalid |
409 | If Upstream service not reachable |
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 [email protected].