Send JSON data to google workflow callback url through curl

I'm building a google workflow and at some point, I have a callback url waiting for data. I'm using curl to send the data like indicated in the docs with a command like this : 

 

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer ACCESS_TOKEN_STRING" -d '{"foo" : "bar"}' CALLBACK_URL

 

Everything is fine when it comes to authorization, the service account I'm using the access token has the right role and permissions to reach the callback endpoint. I have a 200 HTTP status code when using the curl command. But the json data just don't go. The resulting object is empty (the callback request http_request object is null).

I've tried a bunch of things around the json I was sending and I decided to simply send a '{"foo" : "bar"}' with the -d in the curl command: same thing. The content type was alwaysapplication/json but same issue. I've tried --json for curl > 7.82, I've tried to read the json from a file but same issue.
So I don't know what I'm doing wrong. 

Can someone help me please?

0 0 24
0 REPLIES 0
Top Labels in this Space