Docs menu

Mark a chat read

POST/v1/profiles/{profile_id}/chats/{chat_id}/read

  • Scope messages:send

Marks the chat read on the line, which sends read receipts if the line has them on. Needs the line working.

Parameters

Path

  • profile_idstringrequired

    The line (prf_…).

  • chat_idstringrequired

    The chat (cht_…).

Response

200 OKDone.

  • oktruerequired

  • chat_idstringrequired

Errors

StatusCodeMeans
403draft_only_keyThis key can only write drafts; typing, reactions and read receipts aren't drafts.
403recipient_not_allowedThe recipient isn't on this key's allowed recipients.
403sending_pausedWe paused sending on your account (or this line) while we review recent activity that looked like mass texting. Incoming messages still arrive. details.scope is team or line.
503line_unavailableThe line is having trouble right now.
400validation_failedA field is missing or invalid.
401unauthorizedThe API key is missing, unknown or revoked.
403insufficient_scopeThe API key lacks the scope this needs.
404not_foundNo such object, or the key can't see it.

Every error is { "error": { "code", "message" } }. All error codes.

Keys come with your first line.

Request an invite and we'll set up a line for your team. API access is part of every plan.

Request an invite