Docs

Deactivate a person

Preview· P9
DELETE/people/{person_id}

Deactivates a person instead of deleting them, so their visit and attendance history stays intact. A deactivated person can't host visitors, clock in or sign in, and no longer counts towards your plan's limits.

  • Fires person.deactivated.
  • Upcoming visits they host keep their host_id. Reassign them with PATCH /visits/{visit_id}.
  • Deactivating someone who is already deactivated returns them unchanged and fires no event.

Scope: people:write · Plan: Pro and Enterprise in live mode; every plan in test mode.

Authorization

AuthorizationBearer <token>

Send Authorization: Bearer <token> on every request. The token is one of:

PrefixWhat it isWhere it may be used
agoo_sk_live_Secret key, live modeYour servers only
agoo_sk_test_Secret key, test modeYour servers only
agoo_pk_live_Publishable key, live modeBrowsers and apps: create pre-registrations and bookings, read public booking types (with their intake questions) and their free slots, read the visit types open for pre-registration with their public forms. Never lists people.
agoo_pk_test_Publishable key, test modeAs above, in test mode

Admins create keys in Console → Developers → API keys and choose each key's scopes. A key is shown once. Never put a secret key in a URL, a browser or a mobile app.

In: header

Scope: people:write

Path Parameters

person_id*string

The person's ID.

Match^person_[0-7][0-9a-hjkmnp-tv-z]{25}$
Example"person_01kjsesxm0e4zbyvkr7bcfxbfg"

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X DELETE "https://example.com/people/person_01kjsesxm0e4zbyvkr7bcfxbfg"
{  "id": "person_01kjsf1800f38sgy433fabefh9",  "name": "Kojo Badu",  "email": "kojo.badu@voltabank.example",  "phone": null,  "job_title": "Facilities officer",  "department": "Facilities",  "employee_number": "VB-0188",  "site_ids": [    "site_01kjpt3yw0fz0v414608h9x65s"  ],  "can_host": false,  "tracks_attendance": true,  "status": "deactivated",  "custom_fields": {},  "created_at": "2026-03-03T09:04:00Z",  "updated_at": "2026-08-20T13:55:00Z",  "deactivated_at": "2026-08-20T13:55:00Z"}