Manage Messages
Get Conversations
To get a list of your conversations:
curl -XGET
-H "Content-Type: application/hal+json"
-H "Accept: application/hal+json"
-H "Accept-Version: 3.0"
-H "Authorization: Bearer [personal_token]"
https://api.reverb.com/api/my/conversations
Get Unread Messages
To get a list of your unread messages:
curl -XGET
-H "Content-Type: application/hal+json"
-H "Accept: application/hal+json"
-H "Accept-Version: 3.0"
-H "Authorization: Bearer [personal_token]"
https://api.reverb.com/api/my/conversations?unread_only=true
Get an individual Conversation
To display an individual conversation details with messages in chronological order:
curl -XGET
-H "Content-Type: application/hal+json"
-H "Accept: application/hal+json"
-H "Accept-Version: 3.0"
-H "Authorization: Bearer [personal_token]"
https://api.reverb.com/api/my/conversations/[conversation_id]
Mark message as read
To mark a message as read:
curl -XPUT
-H "Content-Type: application/hal+json"
-H "Accept: application/hal+json"
-H "Accept-Version: 3.0"
-H "Authorization: Bearer [personal_token]"
https://api.reverb.com/api/my/conversations/[conversation_id]
-d '{
"read": true
}'
Reply to Messages
To reply to a message:
curl -XPOST
-H "Content-Type: application/hal+json"
-H "Accept: application/hal+json"
-H "Accept-Version: 3.0"
-H "Authorization: Bearer [personal_token]"
https://api.reverb.com/api/my/conversations/[conversation_id]/messages
-d '{
"body": "An example message"
}'
Updated 11 months ago