Palbase Messaging · API
/messaging/conversations/groupMake a group
A group the reader owns, with the people the project's hook lets them reach and who do not block them (not_added says whom else, and why). An Idempotency-Key makes it once.
Called by a signed-in user of your app, with their token and the publishable key.
Headers
Idempotency-Keystring · optionalNames the request: sent again with the same key, it is answered the same, applied once.Request body
descriptionstring · optionalIts description (at most 1,000 characters).member_idsstring[] · optionalIts people besides the reader (at most 999).photostring · optionalWhere the app reads its picture.settingsobject · optionalHow a group runs, as it is made.spacestring · optionalThe place of the app's it belongs to, as the app names it (org:<id>, project:<id>): 1 to 128 letters, digits and : _ . / @ -. Fixed as it is made; absent: none.titlestring · requiredIts title.visibility"open" | "closed" · optionalopen (a space named: required): found in its space's open groups and joined by whom the project's hook lets (POST …/join); closed (the default): joined when someone adds you. A person's open group is asked of the project's hook first (open_group, the space named): refused, 403 not_allowed.curl -X POST "https://<your-ref>.palbase.studio/messaging/conversations/group" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN" \
-H "content-type: application/json" \
-d '{"title":"string"}'Responses
201The group made
400A field out of its bounds (`invalid_<field>`, `too_many_members`)
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 person have an open group in the space (`not_allowed`)
409The reader's account was deleted (`user_deleted`)
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 CreateGroup of messaging's contract.