Skip to content

Disable, enable or delete guest

Switching a guest off, on, or deleting them for good

Section titled “Switching a guest off, on, or deleting them for good”

Disabling a guest stops them using their guest link in your organization, and you can undo it by enabling them again. Permanent deletion can’t be undone, and it only works on a guest you’ve already disabled.

Replace {org_id} with your organization ID. Disable and enable take the guest’s URL-encoded email address as {guest_email}. Permanent delete takes either the guest’s numeric ID or their URL-encoded email address as {guest_id}. None of them takes a request body.

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

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

A disabled guest gets an error if they open their guest link for your organization. You can only disable a guest when none of their tasks are still open. Complete or reassign those tasks first.

PUT /organizations/{org_id}/guests/{guest_email}/enable

This gives a disabled guest their access back. Enabling also gives them a new guest link, so any older link they have stops working. Send them the new one.

DELETE /organizations/{org_id}/guests/{guest_id}/delete

The guest must be disabled first. Tallyfy adds “(Deleted)” to their last name, changes their email to {email}.deleted.{guest_id}, and deletes the guest record. There’s no endpoint to undo this.

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const guestEmail = encodeURIComponent('guest@example.com');
const base = `https://go.tallyfy.com/api/organizations/${orgId}/guests/${guestEmail}`;
async function callTallyfy(method, path) {
const response = await fetch(base + path, {
method,
headers: {
'Authorization': `Bearer ${accessToken}`,
'Accept': 'application/json',
'X-Tallyfy-Client': 'APIClient'
}
});
const body = await response.json().catch(() => null);
if (!response.ok) {
throw new Error(`${method} ${path} failed with ${response.status}: ${JSON.stringify(body)}`);
}
return body;
}
async function main() {
// Disable the guest. You can undo this.
const disabled = await callTallyfy('DELETE', '/disable');
console.log('Disabled:', disabled.data.email);
// Enable them again. This also gives them a new guest link:
// await callTallyfy('PUT', '/enable');
// Or permanently delete them. They must be disabled first, and this can't be undone:
// await callTallyfy('DELETE', '/delete');
}
main().catch(error => console.error(error.message));

Each endpoint returns 200 OK with the guest’s details in a data object.

StatusError messageWhat to do
403Cannot disable guest with incomplete tasks.Complete or reassign the guest’s open tasks, then disable them.
404Guest not found with email: {email}Check the email address and that it’s URL-encoded.
404Resource not foundOn permanent delete, check that the guest belongs to this organization.
422Please disable the guest before deletion.Call the disable endpoint first, then delete.

Guests > Delete guest

Tallyfy’s DELETE endpoint at /organizations/[org_id]/guests/[guest_email] removes a guest by…