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

You don’t need a request body.

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 > Update guest

Tallyfy’s PUT endpoint at /organizations/[org_id]/guests/[guest_email] updates the…

Guests > List guests

Retrieve a paginated list of guest users in your organization. You’ll get detailed profiles with…