Groups
List groups
Lists joined groups in real time, including silent groups. limit accepts 1..100 and defaults to 50. cursor is opaque; invalid or expired values may be handled differently by each provider.
https://api.unifyport.ai/v1/accounts/{account_id}/groupsBefore you call
Use a server-side X-Api-Key for the workspace that owns the resource. Replace every placeholder before running a sample.
Prepare your parameters
- account_id
- Use data.id from account creation or an account query. Account identifiers belong to the workspace selected by X-Api-Key. Get account
Request parameters
Headers
X-Api-KeyWorkspace API key. The workspace is resolved from this header.
Path parameters
account_idIdentifier used in the groups route.
Query parameters
cursorOpaque provider cursor. Pass the previous next_cursor unchanged; omit or leave empty for the first page. Forged, expired, or cross-query cursors may be ignored, reset to the first page, or cause a provider error. Do not rely on a uniform 400 response.
limitPage size from 1 to 100. Endpoint descriptions state the endpoint-specific default.
minimum: 1 · maximum: 100
Request body
This endpoint does not require a JSON request body.
Understand the result
Use the documented response fields and HTTP status. Successful 204 responses have no body; use X-Request-Id for diagnosis. Follow the related operations for the next step.
Response 200 OK
{
"request_id": "<REQUEST_ID>",
"data": {
"items": [
{
"id": "group_example",
"conversation_id": "group_example",
"name": "Project team",
"avatar_url": "",
"member_count": 5,
"joined_at": "2026-07-01T08:00:00Z",
"created_at": "2026-06-15T08:00:00Z",
"description": "Project coordination group",
"extra": {}
}
],
"next_cursor": "",
"has_more": false
}
}
Response body
idGroup identifier. For a group the conversation_id equals this id.
conversation_idConversation identifier for the group; equal to id.
nameGroup name.
avatar_urlGroup avatar URL, or an empty string when none is set.
member_countNumber of members in the group.
format: int64
joined_atTime when the connected account joined the group, when available.
format: date-time
created_atProvider-reported group creation time, when available.
format: date-time
descriptionGroup description, when available.
permissionsobjectGroup-wide speaking permissions, returned only when explicitly supplied by the source. Missing means unknown; admins_only=false permits ordinary members to speak, but does not guarantee this account can send.
permissionsGroup-wide speaking permissions, returned only when explicitly supplied by the source. Missing means unknown; admins_only=false permits ordinary members to speak, but does not guarantee this account can send.
admins_onlytrue means only administrators may speak; false is an explicit state, not an omitted or default value.
extraobjectProvider-specific group fields. WhatsApp group data may include announcement-group classification, depending on the data available for the current query.
extraProvider-specific group fields. WhatsApp group data may include announcement-group classification, depending on the data available for the current query.
is_announcement_groupOnly for WhatsApp groups. true confirms a community announcement group; false means the current data confirms the announcement-group criteria are not met. Missing means unknown; null is never returned. This classification does not indicate that the current account can send messages. Independent of permissions.admins_only.
next_cursorOpaque cursor for the next page. Pass it back as cursor; an empty string means there are no more pages.
has_moretrue when more results are available beyond this page.
Responses
200200 OK
Request succeeded. See the example response body.
400Bad Request
The request body, path, or parameters are invalid.
401Unauthorized
The X-Api-Key header is missing or invalid.
409Conflict
The requested operation conflicts with an existing provider account or resource.
500Internal Server Error
The service encountered an unexpected error.
501Not Implemented
The selected provider does not implement this operation.
502Bad Gateway
The provider adapter or upstream provider could not complete the operation.
If the request fails
Inspect HTTP status and error.code/numeric_code, and keep request_id for diagnosis. Correct invalid parameters, complete required authorization or check runtime state as appropriate. Confirm the outcome before retrying a send or another write. Error reference
- invalid_request · 10000 · 400
- Check required fields, formats and channel conditions, then correct the request.
- invalid_api_key · 11001 · 401
- Check X-Api-Key and whether the workspace is active.