Skip to content

Get member

Endpoint

GET /organizations/{org_id}/users/{user_id}

This endpoint retrieves the profile of a specific member in your Tallyfy organization by their numeric user ID. It requires admin privileges.

Request

Replace {org_id} with your Organization ID and {user_id} with the integer ID of the member.

Headers

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

Query parameters (optional)

  • with (string): A comma-separated list of related data to include. Options are stats, assets, groups, organizations, preferences, member_watchers, guest_watchers, auth_methods, country.

Code samples

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const userId = 12345; // ID of the member to retrieve
const queryParams = '?with=groups'; // Example: get groups the member belongs to
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/users/${userId}${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 => { // Attempt to parse JSON regardless of status
if (!response.ok) {
console.error(`Failed to get member ${userId}:`, data);
throw new Error(`HTTP error! status: ${response.status}`);
}
return data; // Pass successful data along
});
})
.then(data => {
console.log(`Successfully retrieved member ${userId}:`);
console.log(JSON.stringify(data, null, 2));
})
.catch(error => {
console.error(`Error getting member ${userId}:`, error.message);
});

Response

A successful request returns a 200 OK status code and a JSON object with a data property containing the member’s profile.

{
"data": {
"id": 12345,
"email": "specific.user@example.com",
"username": "specificuser",
"first_name": "Specific",
"last_name": "User",
"full_name": "Specific User",
"profile_pic": "https://.../avatar.png",
"country_id": 1,
"is_active": true,
"last_login_at": "2025-01-15T10:30:00+00:00",
"activated_at": "2024-06-01T08:00:00+00:00",
"type": "standard",
"created_at": "2024-06-01T08:00:00+00:00",
"updated_at": "2025-01-15T10:30:00+00:00",
"phone": "+1234567890",
"job_title": "Project Manager",
"timezone": "America/Los_Angeles",
"UTC_offset": "-08:00",
"role": "Standard",
"status": "active",
"date_format": "MM/DD/YYYY",
"is_default_admin": false,
// ... other profile fields ...
// Included with 'with=stats':
"stats": {
"data": {
"steps_created": 42,
"tasks_completed": 120,
"processes_launched": 15,
"checklists_created": 8,
"last_step_created_at": "2025-01-10T14:00:00+00:00"
}
},
// Included with 'with=groups':
"groups": {
"data": [
{ "id": "group_id_3", "name": "Project Alpha", "logo": null, "members": [12345, 67890], "guests": ["guest@example.com"] }
]
}
}
}

If the member ID isn’t found, you’ll get a 404 Not Found error. If you don’t have admin privileges, expect a 403 Forbidden error.


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 > Get tag

Tallyfy’s API lets you retrieve a specific tag by its ID using a GET request to /organizations/[org_id]/tags/[tag_id] and optionally include usage statistics showing how many active or archived templates and processes use that tag.