Palbase Messaging · API
/messaging/syncWhat changed for the reader
What changed for the signed-in person since since (the cursor the last sync handed out): their conversations with their own place in each, what they have not read and the last message each shows (last_message, as the list has it), the people of the small ones, the messages written, changed or removed, what they removed for themselves, the threads they follow, the messages they scheduled. Nothing is missed; a change may come twice — each says its version. With no since, or one older than 30 days, it is everything to start from (reset): the conversations without their messages, read a page at a time.
Called by a signed-in user of your app, with their token and the publishable key.
Query
sincestring · optionalThe cursor the last sync handed out.curl -X GET "https://<your-ref>.palbase.studio/messaging/sync" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN"Responses
200What changed
400`since` is not a cursor a sync handed out (`invalid_since`)
401No key, a key of no project, a token not valid (the edge's answer), or no person's session (`user_required`)
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 Sync of messaging's contract.