BuddyPress API – Retrieving messages
-
Hi there,
I’m trying to access the wp-json/buddypress/v1/messages endpoint on our website using a subscriber role. I’m using Postman for my testing. I’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:
{ "code": "bp_rest_authorization_required", "message": "Sorry, you cannot view the messages.", "data": { "status": 403 } }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.
The topic ‘BuddyPress API – Retrieving messages’ is closed to new replies.