Errors when performing POST requests

Hi all, I’ve been wildly successful in performing GET requests, but when trying to perform POST requests (even through Postman) I keep getting the same bad_request response. Has anyone else had this issue?

1 Like

Hey Craig, thanks for the response. That seems to work for POST requests to /feed but not for /webhooks

1 Like

I could be wrong as I haven’t read the Monzo API docs, but I can’t imagine sending the account_id param in the URI is correct. I’d imagine it has to be sent as the data in the request, likely as json like:

{
    account_id: "abcdefg123",
    url: "https://my.website"
}

It appears the Monzo API just expects it as a request argument, not in JSON format (source: https://docs.monzo.com/#read-balance).

body needs to be form encoded rather than JSON