GuideLab Docs

Read an order's chat

Shared messages after the given sharedSequence, oldest first, up to 100 a page, with each side's read cursor. Internal notes of either side are never listed; a thread whose deletion was authorized reads as placeholders, and attachments are metadata only.

GET
/smileline/v1/orders/{id}/messages

Shared messages after the given sharedSequence, oldest first, up to 100 a page, with each side's read cursor. Internal notes of either side are never listed; a thread whose deletion was authorized reads as placeholders, and attachments are metadata only.

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

Query Parameters

practiceRef*string
Match^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/u
after?|
Range0 <= value <= 2147483647
Default0
limit?integer
Range1 <= value <= 100
Default50

Response Body

application/json

application/json

curl -X GET "https://example.com/smileline/v1/orders/string/messages?practiceRef=string"
{  "messages": [    {      "id": "string",      "sharedSequence": 1,      "side": "lab",      "senderRef": "string",      "senderName": "string",      "content": "string",      "messageType": "string",      "attachments": [        {          "id": "string",          "name": "string",          "mimeType": "string",          "size": 0        }      ],      "createdAt": "string"    }  ],  "nextAfter": 0,  "hasMore": true,  "labLastReadSequence": 0,  "practiceLastReadSequence": 0}
Empty
Empty
Empty
{  "error": "string",  "code": "string"}
Empty