# calendar.block.deleted

HTML: https://www.app2email.com/docs/api/webhooks/calendar.block.deleted · Index: https://www.app2email.com/docs/api/llms.txt

A time block was removed from the calendar.

Group: Book-and-Pay. Header `X-App2email-Event: calendar.block.deleted`. Inside the envelope `{id, type, created, number, test?, data}` ([envelope, headers, signature](https://www.app2email.com/docs/api/webhooks.md)). Every webhook of the number gets every number event: filter by `type`.

## data

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `data.id` | integer | yes |  |
| `data.provider_id` | string |  | The staff member it is for. Empty: the whole business. |
| `data.title` | string |  | Up to 80 characters. |
| `data.notes` | string |  | Up to 500 characters. |
| `data.start` | string | yes | UTC. |
| `data.end` | string | yes | UTC. |
| `data.start_local` | string |  | Local time in the business time zone, yyyy-MM-ddTHH:mm. |
| `data.end_local` | string |  | Local time in the business time zone, yyyy-MM-ddTHH:mm. |
| `data.source` | string |  | Made in the calendar app, or through this API.; one of: `calendar`, `api` |
| `data.created_by` | string |  | The e-mail of the person, or API key <name>. |
| `data.created` | string |  |  |
| `data.updated` | string |  |  |
| `data.by` | string |  | Who made / removed it: an e-mail or API key <name>. |
| `data.timestamp` | string |  |  |

## Samples

### lunch

```json
{
  "id": "evt_Cal3k9m2Lw8Rt5Yp1Zs04",
  "type": "calendar.block.deleted",
  "created": "2026-11-11T01:00:00.000Z",
  "number": "4976659348270",
  "data": {
    "id": 3,
    "provider_id": "maria",
    "title": "Lunch",
    "notes": "",
    "start": "2026-11-14T01:00:00.000Z",
    "end": "2026-11-14T02:00:00.000Z",
    "start_local": "2026-11-14T12:00",
    "end_local": "2026-11-14T13:00",
    "source": "calendar",
    "created_by": "jane@example.com",
    "created": "2026-11-11T01:12:09.000Z",
    "updated": "2026-11-11T01:12:09.000Z",
    "by": "jane@example.com",
    "timestamp": "2026-11-11T01:00:00.000Z"
  }
}
```

## Caused by

- [Remove a blocked time](https://www.app2email.com/docs/api/calendar/delete-calendar-block.md): `DELETE /v1/{number}/calendar/blocks/{id}`

Send it to your URL: https://www.app2email.com/docs/api/webhooks/tester?type=calendar.block.deleted
