I have a problem when I call my referral webhook. There is an error 400 with th leadCapture/save2. I have this message :
Do you have this problem?
Any ideas here?
Actually the whole approach is wrong, now that I'm more awake... /save2 is an x-www-form-urlencoded endpoint.
Your POST should be a standard URL-encoded form payload. Not JSON. Just like the client library sends.
It's not only about the encoding of individual fields.
The forms /save and /save2 endpoints accept form-like POST payloads (i.e. like a query string k=v&k2=v2&k3=v3). You're trying to send JSON. This is totally different.
Format your payload correctly and use Form/Url encoding.