These docs are for v0.0.1. Click to read the latest docs for v1.0.61.

Discussions

Ask a Question
Back to All

Invalid Token <<Generate JWT Token>>

I tried to generate a JWT Token for use in web-based chat API's recently. I have also added appkey and bearer on my postman header, but I still got the response of Un-Authorized, status: 401, detail: invalid token.

Here is my request.

URL: https://ap.api.avayacloud.com/api/digital/chat/v1/accounts/ABCDEF/tokens

{
"verifiedCustomer": true,
"ttl": 30,
"integrationId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"customerId": "xx@email",
"customerName": "Joe Soap",
"customerIdentifiers": {
"emailAddresses": [
"xx@email"
],
"userId": [
"xx@email"
]
}
}