palbaseDocs

Palbase Messaging · API

POST/messaging/receipts

How far the reader read

How far the reader read conversations and threads, and how far their app took them. A read moves forward only. A message meant to go once read goes its time after everyone it was for read it. A small conversation's people hear it as it happens.

Called by a signed-in user of your app, with their token and the publishable key.

Request body

receiptsobject[] · required1 to 100 receipts.
curl
curl -X POST "https://<your-ref>.palbase.studio/messaging/receipts" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "content-type: application/json" \
  -d '{"receipts":[{"conversation_id":"00000000-0000-0000-0000-000000000000"}]}'

Responses

204Kept

400A receipt out of bounds (`invalid_receipts`)

401No key, a key of no project, a token not valid (the edge's answer), or no person's session (`user_required`)

413The request body is too large (`request_too_large`)

429Over the project's request limit; Retry-After says when to try again

503Temporarily unavailable; retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation Receipts of messaging's contract.