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

Retrieve all members in a Tallyfy organization using a GET request with optional query parameters for search, sorting, includes, and pagination.

Groups > Get group

Retrieve details of a specific group in your organization by its ID using a GET request with code examples in multiple languages.

Tags > List tags

Retrieve all tags for an organization with optional search, filtering, sorting, and pagination. Returns tag details including title, color, and usage statistics.

Templates > List templates

This API endpoint retrieves process templates (called Checklists in the API) from an organization using a GET request with query parameters for filtering, pagination and search.