The API call fails immediately with this error. No conversation is created.
What I’ve tried
Verified the API key is correct (works fine in Postman with Bearer )
Confirmed the domain and
The same key works when tested directly outside the FDK template
Suspected cause
The FDK’s encode() helper appears to wrap the value in a signed JWS (JSON Web Signature) rather than pere. Freshchat v2 doesn’tsupport signed JWSs and rejects the Authorization header entirely.
Question
What is the correct way to pass a Freshchat API key as a Bearer token inside a requests.json template without triggering this JWS wrapping? Is encode() intended only for Basic auth username:password pairs?
Hi Krishna, your diagnosis is right. encode() is the problem here, and Basic is the wrong scheme for Freshchat.
Root cause encode() is for Base64-encoding Basic auth (e.g. Freshdesk APIKEY:X). On secure iparams/context values it can produce a platform-wrapped value that Freshchat reads as a signed JWS, hence “Signed JWSs are not supported”.
Freshchat v2 expects Bearer <token>, passed directly - no encode().