Title: REST API
Last modified: September 29, 2021

---

# REST API

 *  Resolved [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/)
 * Hi,
 * Cookie Banner is having a error message, that the REST API is not accessible.
 * But when I call the URL in the Browser, I get a clean response.
 * What could be the issue?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frest-api-124%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Contributor [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/#post-14920259)
 * Hi [@polarracing](https://wordpress.org/support/users/polarracing/) !
 * Thanks for your message. Here is Matthew 🙂
 * Can you please check out this: [https://devowl.io/knowledge-base/wordpress-rest-api-does-not-respond/](https://devowl.io/knowledge-base/wordpress-rest-api-does-not-respond/)
 * Regards
 *  Thread Starter [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/#post-14920356)
 * I have non of those plugins running.
 * If I call `/wp-json/real-cookie-banner/v1` – I get a proper response.
 * Same for `/wp-json/wp/v2`.
 * But for calls to `/wp-json/real-queue` I get 403 error.
 *  Plugin Contributor [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/#post-14920363)
 * Hi again [@polarracing](https://wordpress.org/support/users/polarracing/) !
 * Are you using the PRO or free version of Real Cookie Banner?
 * > But for calls to /wp-json/real-queue I get 403 error.
 * Can you please share a screenshot? What is the exact response body?
 * Regards 🙂
 *  Thread Starter [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/#post-14920389)
 * FREE VERSION.
 * Response for:
 * [https://www.my-race-instructor.com/wp-json/real-cookie-banner/v1](https://www.my-race-instructor.com/wp-json/real-cookie-banner/v1)
 * `{"namespace":"real-cookie-banner\/v1","routes":{"\/real-cookie-banner\/v1":{"
   namespace":"real-cookie-banner\/v1","methods":["GET"],"endpoints":[{"methods":["
   GET"],"args":{"namespace":{"default":"real-cookie-banner\/v1","required":false},"
   context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/
   www.my-race-instructor.com\/wp-json\/real-cookie-banner\/v1"}]}},"\/real-cookie-
   banner\/v1\/plugin":{"namespace":"real-cookie-banner\/v1","methods":["GET"],"
   endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/
   www.my-race-instructor.com\/wp-json\/real-cookie-banner\/v1\/plugin"}]}},"\/real-
   cookie-banner\/v1\/presets\/banner":{"namespace":"real-cookie-banner\/v1","methods":["
   GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"
   https:\/\/www.my-race-instructor.com\/wp-json\/real-cookie-banner\/v1\/presets\/
   banner"}]}},"\/real-cookie-banner\/v1\/presets\/blocker":{"namespace":"real-cookie-
   banner\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"force":{"
   type":"boolean","default":false,"required":false}}}],"_links":{"self":[{"href":"
   https:\/\/www.my-race-instructor.com\/wp-json\/real-cookie-banner\/v1\/presets\/
   blocker"}]}},"\/real-cookie-banner\/v1\/presets\/blocker\/(?P<identifier>[a-zA-
   Z0-9_-]+)":{"namespace":"real-cookie-banner\/v1","methods":["GET"],"endpoints":[{"
   methods":["GET"],"args":[]}]},"\/real-cookie-banner\/v1\/presets\/cookies":{"
   namespace":"real-cookie-banner\/v1","methods":["GET"],"endpoints":[{"methods":["
   GET"],"args":{"force":{"type":"boolean","default":false,"required":false}}}],"
   _links":{"self":[{"href":"https:\/\/www.my-race-instructor.com\/wp-json\/real-
   cookie-banner\/v1\/presets\/cookies"}]}},"\/real-cookie-banner\/v1\/presets\/
   cookies\/(?P<identifier>[a-zA-Z0-9_-]+)":{"namespace":"real-cookie-banner\/v1","
   methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}]},"\/real-cookie-
   banner\/v1\/checklist":{"namespace":"real-cookie-banner\/v1","methods":["GET"],"
   endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/
   www.my-race-instructor.com\/wp-json\/real-cookie-banner\/v1\/checklist"}]}},"\/
   real-cookie-banner\/v1\/checklist\/(?P<id>[a-zA-Z0-9_-]+)":{"namespace":"real-
   cookie-banner\/v1","methods":["PUT"],"endpoints":[{"methods":["PUT"],"args":{"
   state":{"type":"boolean","required":true}}}]},"\/real-cookie-banner\/v1\/modal-
   hint":{"namespace":"real-cookie-banner\/v1","methods":["PUT"],"endpoints":[{"
   methods":["PUT"],"args":{"identifier":{"type":"string","required":true}}}],"_links":{"
   self":[{"href":"https:\/\/www.my-race-instructor.com\/wp-json\/real-cookie-banner\/
   v1\/modal-hint"}]}},"\/real-cookie-banner\/v1\/revision\/current":{"namespace":"
   real-cookie-banner\/v1","methods":["GET","PUT"],"endpoints":[{"methods":["GET"],"
   args":[]},{"methods":["PUT"],"args":[]}],"_links":{"self":[{"href":"https:\/\/
   www.my-race-instructor.com\/wp-json\/real-cookie-banner\/v1\/revision\/current"}]}},"\/
   real-cookie-banner\/v1\/revision\/(?P<hash>[a-zA-Z0-9_-]{32})":{"namespace":"
   real-cookie-banner\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"
   backwardsCompatibility":{"type":"boolean","default":true,"required":false}}}]},"\/
   real-cookie-banner\/v1\/revision\/independent\/(?P<hash>[a-zA-Z0-9_-]{32})":{"
   namespace":"real-cookie-banner\/v1","methods":["GET"],"endpoints":[{"methods":["
   GET"],"args":{"backwardsCompatibility":{"type":"boolean","default":true,"required":
   false}}}]},"\/real-cookie-banner\/v1\/cookie-groups\/order":{"namespace":"real-
   cookie-banner\/v1","methods":["PUT"],"endpoints":[{"methods":["PUT"],"args":[]}],"
   _links":{"self":[{"href":"https:\/\/www.my-race-instructor.com\/wp-json\/real-
   cookie-banner\/v1\/cookie-groups\/order"}]}},"\/real-cookie-banner\/v1\/cookies\/
   order":{"namespace":"real-cookie-banner\/v1","methods":["PUT"],"endpoints":[{"
   methods":["PUT"],"args":[]}],"_links":{"self":[{"href":"https:\/\/www.my-race-
   instructor.com\/wp-json\/real-cookie-banner\/v1\/cookies\/order"}]}},"\/real-
   cookie-banner\/v1\/cookies\/unassigned":{"namespace":"real-cookie-banner\/v1","
   methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"
   href":"https:\/\/www.my-race-instructor.com\/wp-json\/real-cookie-banner\/v1\/
   cookies\/unassigned"}]}},"\/real-cookie-banner\/v1\/country-bypass\/database":{"
   namespace":"real-cookie-banner\/v1","methods":["PUT"],"endpoints":[{"methods":["
   PUT"],"args":[]}],"_links":{"self":[{"href":"https:\/\/www.my-race-instructor.
   com\/wp-json\/real-cookie-banner\/v1\/country-bypass\/database"}]}},"\/real-cookie-
   banner\/v1\/migration\/(?P<migrationId>[a-zA-Z0-9_-]+)\/(?P<actionId>[a-zA-Z0-
   9_-]+)":{"namespace":"real-cookie-banner\/v1","methods":["POST"],"endpoints":[{"
   methods":["POST"],"args":[]}]},"\/real-cookie-banner\/v1\/migration\/(?P<migrationId
   >[a-zA-Z0-9_-]+)":{"namespace":"real-cookie-banner\/v1","methods":["DELETE"],"
   endpoints":[{"methods":["DELETE"],"args":[]}]},"\/real-cookie-banner\/v1\/consent\/
   all":{"namespace":"real-cookie-banner\/v1","methods":["GET","DELETE"],"endpoints":[{"
   methods":["GET"],"args":{"offset":{"type":"number","required":true},"per_page":{"
   type":"number","required":false},"uuid":{"type":"string","required":false},"ip":{"
   type":"string","required":false}}},{"methods":["DELETE"],"args":[]}],"_links":{"
   self":[{"href":"https:\/\/www.my-race-instructor.com\/wp-json\/real-cookie-banner\/
   v1\/consent\/all"}]}},"\/real-cookie-banner\/v1\/consent\/clear":{"namespace":"
   real-cookie-banner\/v1","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"
   args":{"cookies":{"type":"string","required":true}}}],"_links":{"self":[{"href":"
   https:\/\/www.my-race-instructor.com\/wp-json\/real-cookie-banner\/v1\/consent\/
   clear"}]}},"\/real-cookie-banner\/v1\/consent":{"namespace":"real-cookie-banner\/
   v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["
   POST"],"args":{"markAsDoNotTrack":{"type":"boolean","default":false,"required":
   false},"buttonClicked":{"type":"string","enum":["none","main_all","main_essential","
   main_custom","ind_all","ind_essential","ind_custom","shortcode_revoke","unblock"],"
   required":true},"blocker":{"type":"number","default":0,"required":false},"viewPortWidth":{"
   type":"number","default":0,"required":false},"viewPortHeight":{"type":"number","
   default":0,"required":false},"tcfString":{"type":"string","required":false}}}],"
   _links":{"self":[{"href":"https:\/\/www.my-race-instructor.com\/wp-json\/real-
   cookie-banner\/v1\/consent"}]}},"\/real-cookie-banner\/v1\/consent\/dynamic-predecision":{"
   namespace":"real-cookie-banner\/v1","methods":["GET"],"endpoints":[{"methods":["
   GET"],"args":{"viewPortWidth":{"type":"number","default":0,"required":false},"
   viewPortHeight":{"type":"number","default":0,"required":false}}}],"_links":{"
   self":[{"href":"https:\/\/www.my-race-instructor.com\/wp-json\/real-cookie-banner\/
   v1\/consent\/dynamic-predecision"}]}},"\/real-cookie-banner\/v1\/stats\/(?P<slug
   >[a-zA-Z0-9_-]+)":{"namespace":"real-cookie-banner\/v1","methods":["GET"],"endpoints":[{"
   methods":["GET"],"args":{"from":{"type":"string","required":true},"to":{"type":"
   string","required":true},"context":{"type":"string","default":"","required":false}}}]},"\/
   real-cookie-banner\/v1\/scanner\/queue":{"namespace":"real-cookie-banner\/v1","
   methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"purgeUnused":{"type":"
   boolean","default":false,"required":false}}}],"_links":{"self":[{"href":"https:\/\/
   www.my-race-instructor.com\/wp-json\/real-cookie-banner\/v1\/scanner\/queue"}]}},"\/
   real-cookie-banner\/v1\/scanner\/result\/presets":{"namespace":"real-cookie-banner\/
   v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"
   self":[{"href":"https:\/\/www.my-race-instructor.com\/wp-json\/real-cookie-banner\/
   v1\/scanner\/result\/presets"}]}},"\/real-cookie-banner\/v1\/scanner\/result\/
   externals":{"namespace":"real-cookie-banner\/v1","methods":["GET"],"endpoints":[{"
   methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/www.my-race-
   instructor.com\/wp-json\/real-cookie-banner\/v1\/scanner\/result\/externals"}]}},"\/
   real-cookie-banner\/v1\/scanner\/result\/externals\/(?P<host>[a-zA-Z0-9\\._-]
   +\\.[a-zA-Z0-9_-]+)":{"namespace":"real-cookie-banner\/v1","methods":["GET"],"
   endpoints":[{"methods":["GET"],"args":[]}]},"\/real-cookie-banner\/v1\/scanner\/
   result\/externals\/(?P<preset>[a-zA-Z0-9_-]+)":{"namespace":"real-cookie-banner\/
   v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}]},"\/real-cookie-
   banner\/v1\/scanner\/result\/externals\/(?P<host>[a-zA-Z0-9\\._-]+)":{"namespace":"
   real-cookie-banner\/v1","methods":["PUT"],"endpoints":[{"methods":["PUT"],"args":{"
   ignored":{"type":"boolean","required":false}}}]},"\/real-cookie-banner\/v1\/scanner\/
   result\/markup\/(?P<id>\\d+)":{"namespace":"real-cookie-banner\/v1","methods":["
   GET"],"endpoints":[{"methods":["GET"],"args":[]}]},"\/real-cookie-banner\/v1\/
   import":{"namespace":"real-cookie-banner\/v1","methods":["POST"],"endpoints":[{"
   methods":["POST"],"args":{"json":{"type":"string","required":true},"cookieGroup":{"
   type":"number","required":true},"cookieStatus":{"type":"enum","enum":["keep","
   publish","private","draft"],"required":true},"cookieSkipExisting":{"type":"boolean","
   default":true,"required":false},"blockerStatus":{"type":"enum","enum":["keep","
   publish","private","draft"],"required":true},"blockerSkipExisting":{"type":"boolean","
   default":true,"required":false},"tcfVendorConfigurationStatus":{"type":"enum","
   enum":["keep","publish","private","draft"],"required":true}}}],"_links":{"self":[{"
   href":"https:\/\/www.my-race-instructor.com\/wp-json\/real-cookie-banner\/v1\/
   import"}]}},"\/real-cookie-banner\/v1\/export":{"namespace":"real-cookie-banner\/
   v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"download":{"type":"
   boolean","required":false},"settings":{"type":"boolean","default":true,"required":
   false},"cookieGroups":{"type":"boolean","default":true,"required":false},"cookies":{"
   type":"boolean","default":true,"required":false},"blocker":{"type":"boolean","
   default":true,"required":false},"tcfVendorConfigurations":{"type":"boolean","
   default":false,"required":false},"customizeBanner":{"type":"boolean","default":
   true,"required":false}}}],"_links":{"self":[{"href":"https:\/\/www.my-race-instructor.
   com\/wp-json\/real-cookie-banner\/v1\/export"}]}},"\/real-cookie-banner\/v1\/
   export\/consents":{"namespace":"real-cookie-banner\/v1","methods":["GET"],"endpoints":[{"
   methods":["GET"],"args":{"uuid":{"type":"string","required":false},"from":{"type":"
   string","required":false},"to":{"type":"string","required":false}}}],"_links":{"
   self":[{"href":"https:\/\/www.my-race-instructor.com\/wp-json\/real-cookie-banner\/
   v1\/export\/consents"}]}},"\/real-cookie-banner\/v1\/dismiss-config-page-pro-
   notice":{"namespace":"real-cookie-banner\/v1","methods":["DELETE"],"endpoints":[{"
   methods":["DELETE"],"args":[]}],"_links":{"self":[{"href":"https:\/\/www.my-race-
   instructor.com\/wp-json\/real-cookie-banner\/v1\/dismiss-config-page-pro-notice"}]}}},"
   _links":{"up":[{"href":"https:\/\/www.my-race-instructor.com\/wp-json\/"}]}}`
 * [https://www.my-race-instructor.com/wp-json/real-cookie-banner/v1/plugin?_v=2.7.0&rcbForceLang=en](https://www.my-race-instructor.com/wp-json/real-cookie-banner/v1/plugin?_v=2.7.0&rcbForceLang=en)
 * `{"Name":"Real Cookie Banner (Free)","PluginURI":"https:\/\/devowl.io\/wordpress-
   real-cookie-banner\/","Version":"2.7.0","Description":"Obtain GDPR (DSGVO) and
   ePrivacy (EU cookie law) compliant opt-in consent. Find cookies and fill all 
   legal information in your cookie banner. More than just a cookie notice!","Author":"
   devowl.io","AuthorURI":"https:\/\/devowl.io","TextDomain":"real-cookie-banner","
   DomainPath":"\/languages","Network":false,"RequiresWP":"","RequiresPHP":"","UpdateURI":"","
   Title":"Real Cookie Banner (Free)","AuthorName":"devowl.io"}`
 * RESPONSE FOR:
 * [https://www.my-race-instructor.com/wp-json/real-queue/v1/status?_v=1632915432&additionalData=](https://www.my-race-instructor.com/wp-json/real-queue/v1/status?_v=1632915432&additionalData=)
 * `{"code":"rest_forbidden","message":"Du bist leider nicht berechtigt, diese Aktion
   durchzuf\u00fchren.","data":{"status":401}}`
 * In Chrome console the error is logged as 403.
    -  This reply was modified 4 years, 7 months ago by [polarracing](https://wordpress.org/support/users/polarracing/).
 *  Plugin Contributor [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/#post-14920414)
 * Hi again!
 * Ok, I see. The first two API requests you posted are publicly available, as they
   do not need a user login and do not send sensible data.
 * The third one tries to request the queuing system of Real Cookie Banner which
   is protected and only can be accessed by logged-in users. If you copy & paste
   the URL in your browser, WordPress does not automatically detect the login as
   you need to e.g. pass the WordPress nonce. Also have a look at this: [https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/](https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/)
 * Can you please try to open the page where you get the REST API notice, open the
   developer tools (F12) and open the “Console”. Reload the page and send a screenshot
   of the error message.
 * Regards,
    Matthew 🙂
 *  Thread Starter [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/#post-14920531)
 * [https://wetransfer.com/downloads/38fff658cece802c8fed69b277ad2a7b20210929123649/6ce2c85b021a07fc5f331809df25064220210929123757/7f68d6](https://wetransfer.com/downloads/38fff658cece802c8fed69b277ad2a7b20210929123649/6ce2c85b021a07fc5f331809df25064220210929123757/7f68d6)
 *  Plugin Contributor [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/#post-14920575)
 * Hi again!
 * On your screenshot also the Real Cookie Banner REST API is not reachable. There
   is definitely a plugin which causes this (or server configuration). Can you please
   try to temporarily deactivate all other plugins expect Real Cookie Banner and
   check if this works for you?
 * Regards
    Matthew 🙂
 *  Thread Starter [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/#post-14920699)
 * Same errors still.
 *  Plugin Contributor [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/#post-14920712)
 * Hi again [@polarracing](https://wordpress.org/support/users/polarracing/) !
 * Do you have any server configurations which could lead to restricted access to
   the WordPress REST API? For example, a modified `.htaccess` file.
 * Also, can you please try to logout and login again and check if this could solve
   the issue?
 * Regards 🙂
 *  Thread Starter [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/#post-14920768)
 * Ok, Logout and In again did the trick.
 *  Plugin Contributor [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/#post-14920789)
 * Hi [@polarracing](https://wordpress.org/support/users/polarracing/) !
 * Nice to hear that this works for you. 😊
 *  Thread Starter [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/#post-14920820)
 * Yeah, thanks for the support.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘REST API’ is closed to new replies.

 * ![](https://ps.w.org/real-cookie-banner/assets/icon-256x256.png?rev=2419813)
 * [Real Cookie Banner: GDPR & ePrivacy Cookie Consent](https://wordpress.org/plugins/real-cookie-banner/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/real-cookie-banner/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/real-cookie-banner/)
 * [Active Topics](https://wordpress.org/support/plugin/real-cookie-banner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/real-cookie-banner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/real-cookie-banner/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [polarracing](https://wordpress.org/support/users/polarracing/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/rest-api-124/#post-14920820)
 * Status: resolved