curl --request POST \
--url https://api.example.com/api/send_inbox_message \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient": "<string>",
"message": "<string>"
}
'{
"200": {},
"400": {},
"401": {},
"404": {},
"message": "<string>"
}Send a direct message to another user
curl --request POST \
--url https://api.example.com/api/send_inbox_message \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient": "<string>",
"message": "<string>"
}
'{
"200": {},
"400": {},
"401": {},
"404": {},
"message": "<string>"
}application/json{
"message": "message sent"
}
{
"error": "missing recipient or message"
}
{
"error": "invalid token , please re-login"
}
{
"error": "unauthorized"
}
{
"erorr": "recipient not found"
}
curl -X POST https://api.example.com/api/send_inbox_message \
-H "Authorization: your-auth-token" \
-H "Content-Type: application/json" \
-d '{
"recipient": "john_doe",
"message": "Hello, how are you?"
}'