palbaseDocs

Palbase Messaging · API

GET/messaging/admin/conversations

The project's conversations

The project's conversations (a person's, when user_id names one; the direct one of two, when with names the other), the latest first.

Called by your server, with the project's secret key.

Query

user_idstring · optionalA person: their conversations.
withstring · optionalAnother person, beside user_id: the direct conversation of the two (none when they have none): their direct conversations in every space (space narrows them).
limitinteger · optionalHow many (1 to 100; 30 when absent).
cursorstring · optionalThe cursor a page handed out (next_cursor).
spacestring[] · optionalOnly the conversations of these spaces: one space a parameter, repeated for more, at most 20.
curl
curl -X GET "https://<your-ref>.palbase.studio/messaging/admin/conversations" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200A page of conversations

400A query out of bounds (`invalid_user_id`, `invalid_with`, `invalid_limit`, `invalid_cursor`)

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

403Not the project's secret key (`secret_key_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 AdminListConversations of messaging's contract.