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

Get details for a specific guest in your Tallyfy organization by their URL-encoded email address.

Code Samples > Managing guests

Manage external guest users in your Tallyfy organization through the API - create, list, retrieve, update, and delete guests who participate in tasks without full accounts.

Groups > Delete group

Delete a group from your organization using a DELETE request, which permanently removes the group association while keeping individual member and guest accounts.

Guests > Create guest

Create a new guest in your Tallyfy organization by sending a POST request with a required email address and optional details like name, phone, and company information.