{"id":14578674,"date":"2021-06-21T11:18:04","date_gmt":"2021-06-21T11:18:04","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/buddypress-api-retrieving-messages\/"},"modified":"2021-06-21T11:18:04","modified_gmt":"2021-06-21T11:18:04","slug":"buddypress-api-retrieving-messages","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/buddypress-api-retrieving-messages\/","title":{"rendered":"BuddyPress API &#8211; Retrieving messages"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>I&#8217;m trying to access the wp-json\/buddypress\/v1\/messages endpoint on our website using a subscriber role. I&#8217;m using Postman for my testing. I&#8217;ve successfully logged in using the \/auth route as described by your documentation. I am also able to use the returned JWT token to retrieve member information from the \/wp-json\/buddypress\/v1\/members\/me endpoint, which is great, however when I try to access the wp-json\/buddypress\/v1\/messages endpoint, I get the following message: <\/p>\n<pre><code>{\n    &quot;code&quot;: &quot;bp_rest_authorization_required&quot;,\n    &quot;message&quot;: &quot;Sorry, you cannot view the messages.&quot;,\n    &quot;data&quot;: {\n        &quot;status&quot;: 403\n    }\n}<\/code><\/pre>\n<p>This seems to be tied to the role of the user, since if I do the same steps using an administrator account I am able to retrieve the messages successfully. Is there some additional configuration required to get this working? Thank you for your help.<\/p>\n","protected":false},"template":"","class_list":["post-14578674","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14578674","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\/14578674\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14578674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}