Skip to content

List guests

Endpoint

GET /organizations/{org_id}/guests

This endpoint retrieves a list of guest users associated with the specified organization.

Request

Replace {org_id} with your Organization ID.

Headers

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

Query parameters (optional)

  • with (string): Include additional data, e.g., stats.
  • Pagination parameters (page, per_page) may also be available.

Code samples

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const queryParams = ''; // Example: Add query params like '?with=stats&page=2'
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/guests${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 list guests:", data);
throw new Error(`HTTP error! status: ${response.status}`);
}
return data; // Pass successful data along
});
})
.then(data => {
console.log('Successfully listed guests:');
console.log(JSON.stringify(data, null, 2));
})
.catch(error => {
console.error('Error listing guests:', error.message);
});

Response

A successful request returns a 200 OK status code and a JSON object containing a data array. Each element represents a guest associated with the organization.

{
"data": [
{
"id": "guest_code_abc123", // Unique guest code/identifier
"email": "guest.user@external.com",
"last_accessed_at": "2024-05-15T10:00:00Z",
"last_known_ip": "192.0.2.1",
"last_known_country": "US",
"details": {
"first_name": "External",
"last_name": "Collaborator",
"status": "active", // Can be active, disabled
"phone_1": null,
"company_name": "External Inc.",
"timezone": "UTC",
"disabled_on": null,
"disabled_by": null,
// ... other detail fields ...
},
// Included if requested with 'with=stats'
"stats": {
"active_tasks": 2,
"completed_tasks": 5
// ... other stats ...
}
},
{
"id": "guest_code_def456",
"email": "another.guest@domain.com",
// ... details ...
}
]
// Potential meta object for pagination if supported
}

Guests > Get guest

A GET endpoint that retrieves specific guest user details within an organization using their email address while supporting multiple programming languages and optional query parameters for additional data inclusion.

Members > List members

A comprehensive API endpoint documentation for retrieving organization members through various programming languages including authentication headers optional query parameters and response structure with sample code snippets.

Guests > Delete guest

A DELETE endpoint that removes guest users from an organization by their email address and returns either a success status code or guest record details upon completion.

Guests > Create guest

The POST endpoint creates guest users in an organization by accepting JSON data with required email and optional fields like name and company details while returning the newly created guest’s information upon success.