curl --request POST \
--url https://api.example.com/api/delete_inbox_message \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"message_id": 123
}
'{
"200": {},
"400": {},
"401": {},
"404": {},
"message": "<string>"
}Delete a direct message
curl --request POST \
--url https://api.example.com/api/delete_inbox_message \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"message_id": 123
}
'{
"200": {},
"400": {},
"401": {},
"404": {},
"message": "<string>"
}application/json{
"message": "message deleted successfully"
}
{
"error": "missing message ID"
}
{
"error": "invalid token, please re-login"
}
{
"error": "unauthorized"
}
{
"error": "message not found or unauthorized access"
}
curl -X POST https://api.example.com/api/delete_inbox_message \
-H "Authorization: your-auth-token" \
-H "Content-Type: application/json" \
-d '{
"message_id": 123
}'