Skip to content
Developers

Delete guest

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

This removes a guest from your Tallyfy organization, using their email address. It takes the guest off all tasks and ends their link to your organization. If they don’t belong to any other organization, Tallyfy also soft-deletes their guest record.

There’s no restore endpoint for this. You might want to switch a guest’s access off and back on, or delete their account for good. For either one, see disable, enable or delete guest.

Replace {org_id} with your organization ID. Replace {guest_email} with the guest’s email address, URL-encoded.

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

You don’t need a request body.

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);
});

You’ll get 200 OK. The deleted guest’s details come back in a data object. The guest is taken off all tasks and removed from the organization. If they don’t belong to any other organization, their record is soft-deleted.

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


Guests > Update guest

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