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

You’ll need to 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

You’ll get 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, there’s also 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

Retrieve a paginated list of all groups in your Tallyfy organization. Filter by name, sort…

Members > Get member

Tallyfy’s API lets admin users fetch a specific organization member’s profile by their numeric…

Groups > Create group

Create a new group in your Tallyfy organization via a POST request with a name, description, and…

Members > List members

Tallyfy’s API lets you retrieve a paginated list of organization members via a GET request…