Skip to content

List groups

Endpoint

GET /organizations/{org_id}/groups

This endpoint retrieves a paginated list of groups in your Tallyfy organization.

Request

Replace {org_id} with your actual organization ID.

Headers

  • Authorization: Bearer {your_access_token}
  • Accept: application/json
  • X-Tallyfy-Client: APIClient

Query parameters (optional)

ParameterTypeDescription
qstringSearch groups by name or description
per_pageintegerResults per page (default 10, max 100)
pageintegerPage number (default 1)
sort_bystringSort field - name, created_at (default), or updated_at
withstringInclude related data - assets, users, or guests

Code samples

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const queryParams = '?with=assets&per_page=10&page=1';
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/groups${queryParams}`;
const headers = new Headers();
headers.append('Authorization', `Bearer ${accessToken}`);
headers.append('Accept', 'application/json');
headers.append('X-Tallyfy-Client', 'APIClient');
fetch(apiUrl, {
method: 'GET',
headers: headers
})
.then(response => {
return response.json().then(data => {
if (!response.ok) {
console.error("Failed to list groups:", data);
throw new Error(`HTTP error! status: ${response.status}`);
}
return data;
});
})
.then(data => {
console.log('Successfully listed groups:');
console.log(JSON.stringify(data, null, 2));
})
.catch(error => {
console.error('Error listing groups:', error.message);
});

Response

A successful request returns a 200 OK status code and a JSON object with a data array of groups and a meta object for pagination.

{
"data": [
{
"id": "group_id_abc123",
"name": "Sales Team",
"description": "Handles all sales inquiries.",
"logo": null,
"members": [1001, 1005],
"guests": ["client.a@example.com"],
"created_at": "2023-01-15T09:00:00Z",
"last_updated": "2023-06-20T10:00:00Z"
}
],
"meta": {
"pagination": {
"total": 15,
"count": 10,
"per_page": 10,
"current_page": 1,
"total_pages": 2,
"links": {}
}
}
}

Members > List members

Tallyfy’s API lets you retrieve a paginated list of all organization members via a GET request with optional filtering by name or email and sorting and the ability to include related data like groups and stats in the response.

Groups > Get group

The Tallyfy API lets you fetch details of a specific group within your organization by sending a GET request to /organizations/[org_id]/groups/[group_id] and it returns the group’s name and description along with member IDs and guest emails and timestamps with an optional with=assets parameter to include logo file details.

Tags > List tags

Tallyfy’s API lets you retrieve all tags in an organization via a GET request with optional filtering by name and pagination and can include usage statistics showing how many active or archived templates and processes each tag is associated with.

Code Samples > Managing groups

Tallyfy’s Groups API lets you bundle members and guests into reusable groups that can be assigned to tasks and processes through standard create/list/get/update/delete operations scoped to your organization.