# Sign a contact out of the messenger

```http
DELETE https://trydimmi.com/api/v1/contacts/{contact}/widget-sessions
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `settings:write`.

## Path parameters

- `contact` (string, required): Id of the contact (a customer or lead), starting with ctc_, such as ctc_01jx2m8k4t. Find it with GET /contacts.

## Response 200 (OK)

- `sessions_revoked` (integer, required): How many of the contact's messenger sessions were ended.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request DELETE \
  --url 'https://trydimmi.com/api/v1/contacts/{contact}/widget-sessions' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "sessions_revoked": 123
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
