palbaseDocs

Palbase Messaging · API

GET/messaging/groups/open

A space's open groups

A space's open groups, the oldest first, each with whether the reader is in it — when the project's hook lets the reader find them (action list_open, the space named; with no hook, anyone). Join one with POST /messaging/conversations/{conversation_id}/join.

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

Query

spacestring · requiredThe space whose open groups are listed (org:<id>).
limitinteger · optionalHow many (1 to 100; 50 when absent).
cursorstring · optionalThe cursor a page handed out (next_cursor).
curl
curl -X GET "https://<your-ref>.palbase.studio/messaging/groups/open" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN"

Responses

200A page of open groups

400The request is malformed, or a field breaks a rule (the error names which)

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

403The project's hook does not let the reader find this space's groups (`not_allowed`)

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 ListOpenGroups of messaging's contract.