Hi,
I’m trying to create new posts in a self-hosted wordpress/jetpack blog using the WordPress REST API.
I’m using OAUTH to authenticate/authorize, and this is working fine. I’ve got my blogID and OAuth token which I’m then sending in a POST request to: https://public-api.wordpress.com/rest/v1/sites/<site_id>/posts/new.
This generates a 400 bad request error however, with the following error:
7b
{“error”:”jetpack_response_error”,”message”:”The Jetpack site encountered an error and could not process the API request.”}
0
The same POST to a wordpress.com hosted blog works fine – so it’s not obvious why this is failing on the Jetpack site.
Can you offer any advice on troubleshooting this, or how to determine what the error above means?