# Guardian Line enrollment

> Enroll a voice contact in the assisted calling tier, change its number, return it to standard calls, and approve a frozen line.

API reference · Reference · https://wxalerts.org/docs/api/notifications-guardian-line/

Base URL: `https://api.wxalerts.org`

Guardian Line is the assisted tier of a voice contact: the call greets the
person by name, asks whether they need help, and tells a named Safety Person
how each call went. The guide is [Guardian Line](/docs/alerts/guardian-line/).
These routes act on a **voice contact** that already exists (add one with
[`POST /notifications/contacts`](/docs/api/notifications-contacts/#post-notificationscontacts)).

Access for all routes: signed in (cookie or Bearer). Writes with a cookie need
`X-Requested-With: wxalerts`. Responses that return a contact are
`Cache-Control: no-store` and carry the contact object described on
[Contacts and people](/docs/api/notifications-contacts/#contact-object). Sign-in
errors and the `422` format are on the [overview](/docs/api/notifications/).

## `GET /notifications/contacts/assisted/terms`

The attestation an account holder agrees to when enrolling someone, and the
allowed values.

Access: anonymous. No parameters. `Cache-Control` is not set.

| Field | Type | Description |
| --- | --- | --- |
| `attest_text` | string | the attestation wording to show |
| `attest_version` | string | its version. Send it back as `attest_version`. The current one is `2026-11-12` |
| `reasons` | array of string | `elderly`, `disability` |
| `relationships` | array of string | `daughter`, `son`, `granddaughter`, `grandson`, `family`, `caregiver` |

## `PUT /notifications/contacts/{contact_id}/assisted`

Enroll a voice contact in the assisted tier.

Access: signed in, with the CSRF header on a cookie. Path `contact_id` is an
integer.

Body:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `reason` | string | yes | `elderly` or `disability` |
| `greeting_name` | string, 1 to 40 characters | yes | the first name the call greets them by. Trimmed |
| `relationship` | string | yes | how the account holder is related, as the confirmation call says it: `daughter`, `son`, `granddaughter`, `grandson`, `family` or `caregiver` |
| `safety_contact_id` | integer or null | no | an SMS or email contact of this account who is told how each call went. Omit for the account holder |
| `attest` | boolean | yes | must be `true`: the account holder attests they may enroll this person |
| `attest_version` | string | yes | must equal the current `attest_version` |

```json
{ "reason": "elderly", "greeting_name": "Margaret", "relationship": "daughter", "safety_contact_id": 12, "attest": true, "attest_version": "2026-11-12" }
```

A pending contact is called for confirmation straight away, and the line goes
live only when somebody at the number says yes. A contact that already
confirmed stays live and is marked as confirmed by a live person.

Response `200`: the contact object, with `care_tier` of `assisted`.

| Status | Body | When |
| --- | --- | --- |
| `404` | `{"detail": "No such contact."}` | the contact, or the `safety_contact_id`, is not on this account |
| `409` | `{"detail": "This number asked us to stop. Only they can turn calls back on."}` | the contact opted out |
| `422` | `{"detail": "Only voice contacts can be assisted."}` | the contact is not a voice contact |
| `422` | `{"detail": "The current attestation must be accepted."}` | `attest` false or a stale `attest_version` |
| `422` | `{"detail": "reason must be elderly or disability."}` | |
| `422` | `{"detail": "Unknown relationship."}` | |
| `422` | `{"detail": "The Safety Person must be a text or email contact."}` | wrong channel, or the contact itself |
| `422` | standard list | a missing field, or `greeting_name` empty or over 40 characters |
| `503` | `{"detail": "That channel is not configured on this deployment."}` | the confirmation call cannot be placed |

## `PUT /notifications/contacts/{contact_id}/number`

Change a voice contact's phone number. Its places, tier, greeting and Safety
Person stay; the new number is unconfirmed until somebody there says yes on a
confirmation call, which is placed straight away. The attestation is given
again because it was given for the old number.

Access: signed in, with the CSRF header on a cookie.

Body:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `destination` | string, 7 to 32 characters | yes | the new US or Canadian number |
| `attest` | boolean | yes | must be `true` |
| `attest_version` | string | yes | the current version |

Response `200`: the contact object, now `pending` with the old confirmation,
opt-out and freeze state cleared.

| Status | Body | When |
| --- | --- | --- |
| `404` | `{"detail": "No such contact."}` | |
| `409` | `{"detail": "That number is already on your account."}` | another voice contact has it |
| `409` | `{"detail": "That number asked us to stop. Only they can turn calls back on."}` | the number opted out |
| `422` | `{"detail": "Only a voice contact's number can be changed."}` | |
| `422` | `{"detail": "The current attestation must be accepted."}` | |
| `422` | `{"detail": "That is not a phone number we can call."}` | |
| `422` | `{"detail": "That is the number it already has."}` | |
| `422` | standard list | `destination` shorter than 7 or longer than 32 |
| `503` | `{"detail": "That channel is not configured on this deployment."}` | |

## `DELETE /notifications/contacts/{contact_id}/assisted`

Return a contact to standard calls. The attestation record is kept.

Access: signed in, with the CSRF header on a cookie. No body.

Response `200`: the contact object, with `care_tier` of `standard` and
`assisted_reason` and `frozen_at` cleared. `404` with
`{"detail": "No such contact."}`.

## `POST /notifications/contacts/{contact_id}/assisted/approve`

Approve a frozen assisted line yourself. This is the manual override after two
missed confirmation calls. It marks the number reachable as far as the
account holder knows, and never changes the tier or the reason.

Access: signed in, with the CSRF header on a cookie. No body.

Response `200`: the contact object, `status` `active`, `frozen_at` `null`,
`confirmed_via` `manual_override`.

| Status | Body | When |
| --- | --- | --- |
| `404` | `{"detail": "No such contact."}` | |
| `409` | `{"detail": "Only a frozen, attested line can be approved."}` | the contact is not assisted, has no attestation, is not frozen, or has opted out |
