Creating blog posts involves two steps: firstly, we need a token from our WordPress website and secondly, we need to post content to the JSON endpoint. The endpoint for getting our token is
/?json=get_nonce, and the endpoint for creating a post is
/?json=posts/create_post. So let's see how we can do it manually.
In order to create a blog post using JSON-API, WordPress requires you to get a token known as a nonce. Here's how you can create posts manually via JSON-API: