API Documentation >> API 2.0 Main >> Account Management >> Messages
idOtherUser
) - Returns the message thread with a specified other useridOtherUser
and idMessage
) - Returns a specified message with a specified other useridOtherUser
) - Creates a new message sent to a specified other useridOtherUser
) - Deletes a complete message thread to a specified other useridOtherUser
and idMessage
) - Deletes a specified message to a specified other userhttps://api.cardmarket.com/ws/v2.0/account/messages
idOtherUser
(part of URI)
idMessage
(part of URI)
1. Get the message thread overview for the authenticated user:
GET https://api.cardmarket.com/ws/v2.0/account/messages
2. Get a complete message thread for messages between the authenticated user and another user:
GET https://api.cardmarket.com/ws/v2.0/account/messages/4398399
3. Write a message to another user:
POST https://api.cardmarket.com/ws/v2.0/account/messages/4398399
<?xml version="1.0" encoding="UTF-8" ?> <request> <message>Message text goes here</message> </request>
4. Delete a single message between the authenticated and another user:
DELETE https://api.cardmarket.com/ws/v2.0/account/messages/4398399/47114711
5. Delete all messages between the authenticated and another user:
DELETE https://api.cardmarket.com/ws/v2.0/account/messages/4398399