I want to POST a request using http module in make.com but maybe I am doing something wrong here. can anyone help me with this?
http config in scenario:
Error message:
curl command works in vscode:
curl -X 'POST' \
'https://humanize.undetectable.ai/document' \
-H 'accept: application/json' \
-H 'apikey: XYZ' \
-H 'Content-Type: application/json' \
-d '{
"id": "bb3a7ddf-9b66-4001-91ea-4fbe30e00f5c"
}'
Hi @M.Jasani,
You are not POST-ing a body. You are only using query strings, which are commonly associated with GET requests. The HTTP POST method is primarily used for submitting data to a server, which typically involves sending the data in the request body.
So pass the ID in the body as JSON, like this:
{
"id": "{{id}}"
}
Cheers,
Henk
2 Likes
It worked! Thanks for your quick response.
Could you provide more insight into when to use query strings in the HTTP module?
Great! There is a lot of information readily available on the internet about HTTP requests and the use of query strings. It often depends on the api documentation you are using. For example: HTTP Methods GET vs POST
1 Like