Skip to content

Get group

Endpoint

GET /organizations/{org_id}/groups/{group_id}

This endpoint retrieves details for a specific group in your Tallyfy organization.

Request

Replace {org_id} with your Organization ID and {group_id} with the group’s ID.

Headers

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

Query parameters (optional)

ParameterTypeDescription
withstringInclude related data. Supported: assets (group logo).

Code samples

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const groupId = 'GROUP_ID_TO_GET';
const queryParams = '?with=assets';
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/groups/${groupId}${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 })
.then(response => {
return response.json().then(data => {
if (!response.ok) {
console.error(`Failed to get group ${groupId}:`, data);
throw new Error(`HTTP error! status: ${response.status}`);
}
return data;
});
})
.then(data => {
console.log(`Successfully retrieved group ${groupId}:`);
console.log(JSON.stringify(data, null, 2));
})
.catch(error => {
console.error(`Error getting group ${groupId}:`, error.message);
});

Response

A successful request returns a 200 OK status with a JSON object containing the group’s details in the data property.

Response fields

FieldTypeDescription
idstringUnique identifier for the group
namestringName of the group
descriptionstringDescription of the group
logostringURL of the group’s logo image
membersarrayList of member user IDs in this group
guestsarrayList of guest email addresses in this group
created_atstringTimestamp when the group was created
last_updatedstringTimestamp when the group was last modified

If you include with=assets, the response also contains an assets property with logo file details.

Example response

{
"data": {
"id": "group_id_here",
"name": "Engineering Team",
"description": "Core engineering group",
"logo": null,
"members": ["user_id_1", "user_id_2"],
"guests": ["guest@example.com"],
"created_at": "2024-01-15T10:30:00.000Z",
"last_updated": "2024-06-20T14:45:00.000Z"
}
}

Groups > List groups

Tallyfy’s API lets you retrieve a paginated list of all groups in your organization via a GET request to /organizations/[org_id]/groups with optional filters for searching by name and sorting plus the ability to include related assets or users in the response.

Members > Get member

Tallyfy’s API lets admin users fetch a specific organization member’s profile by their numeric user ID through a GET request and optionally include related data like stats and groups and preferences in the response.

Groups > Create group

Tallyfy’s API lets you create a new group by sending a POST request to /organizations/[org_id]/groups with a unique name and description along with optional member user IDs and guest email addresses and returns the new group’s details including its ID for future operations.

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.