Mark a conversation as seen by the visitor

Record a visitor's last seen timestamp for a specific conversation.

POST
/v1/conversations/{conversationId}/seen

Path Parameters

conversationIdstring

The ID of the conversation to mark as seen

Header Parameters

X-Public-Key?string

Public API key for browser-based authentication. Can only be used from whitelisted domains. Format: pk_[live|test]_...

Match^pk_(live|test)_[a-f0-9]{64}$
X-Visitor-Id?string

Visitor ID from localStorage.

Match^[0-9A-HJKMNP-TV-Z]{26}$
visitorId?string

Visitor ID associated with the conversation. Optional if provided via the X-Visitor-Id header.

Response Body

application/json

application/json

application/json

curl -X POST "https://api.cossistant.com/v1/v1/conversations/string/seen" \  -H "Content-Type: application/json" \  -d '{}'
{
  "conversationId": "string",
  "lastSeenAt": "string"
}
{
  "error": "string"
}
{
  "error": "string"
}