We are integrating freshdesk with the onboarding portal for internal requirements but we got an error while I am running this code.
Please find the below code and an error message.
Request you to raise a ticket for this and provide some resolution.
=================Using below mention code=============
curl --location ‘https://api.freshchat.com/v2/outbound-messages/whatsapp’
–header ‘accept: application/json’
–header 'Authorization: Bearer{Freshchat Token}
–header ‘Content-Type: application/json’
–data ‘{
“from”: {
“phone_number”: “+918929688533”
},
“provider”: “whatsapp”,
“to”: [
{
“phone_number”: “{{number}}”
}
],
“data”: {
“message_template”: {
“storage”: “none”,
“template_name”: “payout_invoice_01_”,
“namespace”: “7cdc83cc_50e2_4ec4_91ca_b578f0e084d9”,
“language”: {
“policy”: “deterministic”,
“code”: “en_US”
}
}
}
}’
==================================================
==============Getting below mention error==============
{
“success”: false,
“error_code”: 0,
“error_message”: “java.lang.RuntimeException: Token not present”
}
======================================================