Palbase Messaging · API
/messaging/conversations/{conversation_id}/messagesA conversation's messages
The conversation's own timeline as the reader sees it, the newest first, a page at a time; a message removed is there, said removed. Paged back from the newest (cursor: next_cursor), or opened at a message (around: the page holds it, with what came before and after it) and paged forward from there (after: newer_cursor) — a search's find shown where it was said. cursor, after and around are one at a time.
Called by a signed-in user of your app, with their token and the publishable key.
Path
conversation_idstring (uuid) · requiredThe conversation.Query
limitinteger · optionalHow many (1 to 100; 50 when absent).cursorstring · optionalThe cursor a page handed out (next_cursor).aroundstring (uuid) · optionalOpen the timeline at this message: the page holds it, about half the page before it and half after (next_cursor pages back, newer_cursor forward). A thread's answer is read in its thread (`in_thread`).afterstring · optionalThe cursor a page handed out to read on toward the newest (newer_cursor).kindstring · optionalOnly messages of this kind — text, media, system or call; several comma-separated (call: the calls made from the conversation).curl -X GET "https://<your-ref>.palbase.studio/messaging/conversations/<conversation_id>/messages" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN"Responses
200A page of messages
400A malformed parameter, or around names a thread's answer (`in_thread`); `kind` is not one (`invalid_kind`)
401No key, a key of no project, a token not valid (the edge's answer), or no person's session (`user_required`)
404No such conversation of yours (`conversation_not_found`), or no such message of it you see (`message_not_found`, around)
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 ListMessages of messaging's contract.