HTTP Post Question

I’m a little stuck.

I have an API cURL that I extensively use in Tasker with HTTP POST, and entering the URL, headers, and body all works fine. I’ve cut and pasted the exact same information, mirroring how I do it in Tasker, and although SharpTools does send it, it does not trigger. Can anyone spot any mistakes that could cause this? I would also like to replace the data in the body for all three entries with variables. I have obviously redacted information in the picture, but I have triple-checked that it is correct.

Thanks!

Can you post a redacted version of the Tasker profile that works? And/or share a link to the docs on the API that you are using?

curl -X POST https://(my Url)
-H “Authorization: Bearer {key}”
-d ‘{
“to”: 447000123890,
“from”: “robot”,
“msg”: “hello world”
}’

Thanks for sharing!

I just noticed that in your SharpTools HTTP Action configuration your header key includes the : character. You should not include that character and instead just the raw Authorization text.

1 Like

That’s was it, Thanks!

1 Like