I try to open this url in my browser or calling from my frontend application: i keep getting the response

{"status":"error","error":"Include 'controller' and 'method' vars in your request."}

what is wrong, I want to be able to create a custom post type with custom fields in the end but using json api I need nonce first


You need to call like below.

API call:-



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.