HTTP 400 using Send REST API #2373
Replies: 2 comments 2 replies
-
What is the content of the HTTP 400 response? Are you sending the message from something else on the same server as Postal? |
Beta Was this translation helpful? Give feedback.
-
FYI, I had a similar issue but the cause was formatting, I had a trailing comma in my json post data, ie: curl -v -X POST https://HOST/api/v1/send/message Threw the null 400, but: curl -v -X POST https://HOST/api/v1/send/message Did not. The issue was the trailing comma on plain_body. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have an interesting situation where if the Send API is called from the server I get HTTP 400 response and no emails are sent. However if I take the same Send message and same API Key, I am able to send using my local Postman.
I have gone as far as to create a new API Key and use it exclusively for the server. Again I received an HTTP 400 error, and usage of the API Key was usage was updated. The usual test using Postman also worked on my local machine using the new API Key
Beta Was this translation helpful? Give feedback.
All reactions