GuideLab Docs

Mark an order's chat read

Moves the practice's read cursor up to upToSequence (clamped to the newest shared message), as one of its active members. The cursor never moves back; a read that moves nothing changes nothing.

POST
/smileline/v1/orders/{id}/messages/read

Moves the practice's read cursor up to upToSequence (clamped to the newest shared message), as one of its active members. The cursor never moves back; a read that moves nothing changes nothing.

Authorization

smilelineBearer
AuthorizationBearer <token>

Smileline cell credential gl_sl_v1_<cell>_<secret>, one per Smileline cell; accepted only on /smileline/v1. A practice belongs to one cell and is not found from any other.

In: header

Path Parameters

id*string
Length1 <= length <= 200

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/smileline/v1/orders/string/messages/read" \  -H "Content-Type: application/json" \  -d '{    "practiceRef": "string",    "userRef": "string",    "upToSequence": 0  }'
{  "practiceLastReadSequence": 0}
Empty
Empty
Empty
{  "error": "string",  "code": "string"}
Empty