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

1 Answer 1


You need to call like below.

API call:-


  • how to create nonce for custom post, say add new book ? I have used ACF and CPT UI to create custom post type 'book'
    – Riz
    Apr 1, 2020 at 6:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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