Can't send PM via API (HTTPUnprocessableEntity 422)

anyway you can look at the response body and not just the status code? The response body should still return json with an “errors” section that could explain what is going on:

example:

{"action":"create_post","errors":["Your error message here for a 422 status code"]}