{"id":18863358,"date":"2026-03-26T10:31:01","date_gmt":"2026-03-26T10:31:01","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/api-authorisation-issue\/"},"modified":"2026-03-26T10:31:01","modified_gmt":"2026-03-26T10:31:01","slug":"api-authorisation-issue","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/api-authorisation-issue\/","title":{"rendered":"API Authorisation Issue:"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">There appears to be an issue in the plugin within src\/API\/Client.php relating to how authentication is determined.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The current implementation assumes that a global API key will always be in hexadecimal format. However, both global API keys and API Tokens are not hexadecimal. As a result, valid API credentials are not accepted as it uses the Bearer auth header.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In my case, this caused authentication to fail unless I bypassed the format check entirely and forced the use of the X_AUTH_EMAIL and X_AUTH_KEY headers. Doing so resolved the issue immediately.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is possible that the format of API keys has changed since the plugin was last updated, which may also explain similar authentication issues reported by others.<\/p>\n","protected":false},"template":"","class_list":["post-18863358","topic","type-topic","status-publish","hentry","topic-tag-authorisation","topic-tag-plugin-setup"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18863358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18863358\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18863358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}