POST /messages/{message_id}/read

Path parameters

  • message_id string Required
application/json

Body

  • sender_jid string
  • chat_jid string

Responses

  • 200 application/json

    Message marked as read

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
POST /messages/{message_id}/read
curl \
 --request POST 'http://localhost:7001/messages/3EB0ABC123DEF456789/read' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"sender_jid":"6281234567890@s.whatsapp.net","chat_jid":"6281234567890@s.whatsapp.net"}'
Request examples
{
  "sender_jid": "6281234567890@s.whatsapp.net",
  "chat_jid": "6281234567890@s.whatsapp.net"
}
Response examples (200)
{
  "code": 200,
  "status": true,
  "message": "Message marked as read successfully"
}
Response examples (200)
{
  "status": true,
  "code": 200,
  "message": "Message marked as read successfully"
}
Response examples (401)
{
  "code": 401,
  "error": "Invalid or expired JWT token",
  "status": false,
  "message": "Unauthorized"
}
Response examples (401)
{
  "status": false,
  "code": 401,
  "message": "Unauthorized",
  "error": "Invalid or missing authentication"
}
Response examples (500)
{
  "code": 500,
  "error": "Failed to mark message as read",
  "status": false,
  "message": "Internal server error"
}
Response examples (500)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}