Buddypress messages – Rest API
-
I’ve facing some issue and i cant resolve it yet. I’m using JWT-AUTH plugin for the authetincation and its working well.
I want to get the user’s messages, but the api response return with 403 error code:
Sorry, you cannot view the messages.
If I set the user to Administrator role, then I got 200 status code and got the messages. The user’s token include the user id ofc:
“data”: { “user”: { “id”: “2” } }
and this is my endpoint: /wp-json/buddypress/v1/messages?box=inbox&user_id=2
Can somebody help me with this? Thank you!
I’ve tried to got the user’s messages but i cant. Only if I set the user to administrator.
- You must be logged in to reply to this topic.