Skip to main content

MarkEngagementAsRead marks all messages in engagement as read.

POST 

/api/v1/engagements/:engagementId/mark-read

Marks all current messages in the engagement as read for the authenticated user. Also sends a read receipt back to the channel (WhatsApp, Facebook, Instagram) to notify the contact.

Side Effects

  • Updates agent_message_reads table
  • Sends read receipt to channel (if applicable)
  • Publishes realtime unread.updated event

Errors

  • NOT_FOUND: Engagement does not exist
  • UNAUTHENTICATED: No valid authentication token

Request

Responses

A successful response.