Skip to content

Error "No data passed" when request HTTP POST

edited January 7 in Troubleshooting

I already setup sendy on my hosting and the admin dashboard works fine.

However when I try to implement HTTP API following this https://sendy.co/api, but it always got error "No data passed" on every request.

For example, this one:

curl --location --request POST 'https://mydomain.com/api/brands/get-brands.php?api_key={MY_KEY}'
--header 'Content-Type: application/x-www-form-urlencoded'
No data passed%

I'm sure that my API KEY and my domain url is correct.

Where am I wrong?

Comments

  • Hi,

    If you are using Postman, please make sure x-www-form-urlencoded is selected under ‘Body':

    Thanks.

    Best regards,
    Ben

This discussion has been closed.