ZafClient request custom HTTP header | The place for Zendesk users to come together and share
Skip to main content
Question

ZafClient request custom HTTP header

  • September 6, 2023
  • 3 replies
  • 17 views

Samir11

I have custom private app and using Zafclient to fetch data from external API to show on ticket side bar. When I include a custom HTTP header like ZENDESK_AUTH_TOKEN, that header is not being sent to the external API (I have access to external API, so I can see request metadata). However if I add Authorization HTTP header, I can see that header is sent. Is there restriction on which headers can be sent to external API via Zafclient and Zendesk proxy? I am using secure settings with placeholder {{setting.myParam}} and Zendesk proxy to replace these values, in case this helps.

3 replies

  • Employee
  • October 5, 2023
Hi Samir,
 
Do you happen to be using ZCLI and still in your testing environment? If so, you would need to package and upload the app as secure settings aren't supported by the ZCLI server

  • April 27, 2026

Hi Erica and Samir,

I have the same scenario as Samir, I can confirm that I am packaging and uploading the app into our sandbox but unfortunately I experience the same issue: the headers are not being passed in the API call.

Best,

Agustina


Cedric14
  • Newcomer
  • April 28, 2026

Hey guys,

Can you try with the dashes? Maybe it is dropped by the proxy server

 

ZENDESK_AUTH_TOKEN

to 

Zendesk-Auth-Token