Skip to content

Delete guest

Endpoint

DELETE /organizations/{org_id}/guests/{guest_email}

This endpoint removes a guest from your Tallyfy organization by email address. It detaches the guest from all tasks, removes the org association, and soft-deletes the guest record if they don’t belong to any other organizations.

Request

Replace {org_id} with your organization ID and {guest_email} with the URL-encoded email address of the guest to remove.

Headers

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

Body

No request body is needed.

Code samples

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const guestEmail = "guest.to.delete@example.com";
const encodedEmail = encodeURIComponent(guestEmail);
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/guests/${encodedEmail}`;
const headers = new Headers();
headers.append('Authorization', `Bearer ${accessToken}`);
headers.append('Accept', 'application/json');
headers.append('X-Tallyfy-Client', 'APIClient');
fetch(apiUrl, {
method: 'DELETE',
headers: headers
})
.then(response => {
if (response.ok) {
return response.json();
} else {
return response.json().then(errData => {
console.error(`Failed to delete guest. Status: ${response.status}`, errData);
throw new Error(`HTTP error! status: ${response.status}`);
});
}
})
.then(data => {
console.log('Deleted guest details:');
console.log(JSON.stringify(data, null, 2));
})
.catch(error => {
console.error(`Error deleting guest ${guestEmail}:`, error.message);
});

Response

A successful request returns a 200 OK status with the deleted guest’s details wrapped in a data object. The guest is detached from all tasks and removed from the organization. If the guest doesn’t belong to any other organizations, the record is soft-deleted.

If the email isn’t found, you’ll get a 422 validation error since the email must exist in the guests table.


Guests > Get guest

Tallyfy’s API lets you retrieve detailed information about a specific guest user by making a GET request to /organizations/[org_id]/guests/[guest_email] with the email URL-encoded and you can optionally include completion statistics by passing the with=stats query parameter.

Code Samples > Managing guests

Tallyfy’s API lets you manage external guest users—who participate in tasks without full accounts—by creating listing retrieving updating and deleting them using their URL-encoded email address as the identifier across organization-scoped endpoints.

Guests > Update guest

Tallyfy’s PUT endpoint at /organizations/[org_id]/guests/[guest_email] lets you update only the associated_members field for an existing guest by sending an array of member IDs and returns the full guest record with a 201 status on success.

Groups > Delete group

Tallyfy’s DELETE endpoint at /organizations/[org_id]/groups/[group_id] permanently removes a group from your organization without deleting the actual members or guests and returns a 204 No Content status on success with code samples available in JavaScript and Python and Java and Go and C++ and C#.