Assistance Required: Payload Data Null Issue in API Request

I’m facing an issue with our custom Click-to-Call API, called using the invokeTemplate method of the Freshdesk SDK. The request template includes the phone_number parameter:
{
“clickToCallEventTemplate”: {
“schema”: {
“method”: “GET”,
“host”: “<%= iparam.ip %>”,
“path”: “<%= iparam.pathbase %>click-2-call”,
“query”: {
“user”: “<%= context.user %>”,
“phone_number”: “<%= context.phone_number %>”
}
}
}
}
The API endpoint is:
https://${client.context.settings.ip}${client.context.settings.pathbase}click-2-call?user=${email}&phone_number=${event.data.number}.

Despite the phone_number being present in the request (verified via the attached HAR file), the API logs indicate it is null:

Please help identify why phone_number is not being correctly received by our custom API even when it is being shared in the context as per the request method documentations .

Best regards,
Sidhant Kaushal

Hi @Sidhant_Kaushal,

  1. Have you tried sending the phone number hard-coded, and it worked?
  2. Does it fail only if a context template is used?
  3. Can you share the code from where the context is passed?
  4. What is the value of the phone_number query field received as in your API logs?
  5. Does it receive the other query parameter properly?

The issue is resolved now using context templates. Thank you for your assistance.