# Webhooks

> Create and manage webhook subscriptions and request sample payloads.

Language: en
Canonical: https://www.dailybot.com/developers/api/webhooks
Markdown: send header `Accept: text/markdown` on any URL to receive Markdown instead of HTML.
Last Updated: 2026-04-06

---

# Webhooks API

Create and manage webhook subscriptions programmatically. Request sample payloads to test your integrations.

See the [Webhooks & Events](/developers/webhooks) guide for the full list of supported events and payload structures.

## Endpoints summary

| Method | Endpoint | Description |
|--------|----------|-------------|
| POST | `/v1/webhooks/` | Create a webhook subscription |
| DELETE | `/v1/webhooks/{id}/` | Delete a webhook subscription |
| POST | `/v1/webhooks/{id}/sample/` | Request a sample payload |

---

## POST /v1/webhooks/

Creates a new webhook subscription.

### Body parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `url` | string (URL) | Yes | URL to receive webhook payloads. Must use HTTPS. |
| `events` | array of strings | Yes | Event types to subscribe to (e.g. `["followups.response.completed"]`). |
| `name` | string | No | Descriptive name for the webhook. |
| `bearer_token` | string | No | Bearer token sent as `X-BEARER` header for signature verification. |
| `object_ids` | array of strings | No | Specific check-in or form UUIDs to filter events (optional). |
| `immediate_sample_event` | boolean | No | If true, send a test event immediately after creation. |

```bash
curl -X POST "https://api.dailybot.com/v1/webhooks/" \
  -H "X-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-app.com/webhooks/dailybot",
    "events": ["followups.response.completed", "kudos.posted"],
    "name": "Production Webhook",
    "bearer_token": "your-secret-token",
    "immediate_sample_event": true
  }'
```

**Response (201 Created):**

```json
{
  "id": "wh-1234-abcd",
  "url": "https://your-app.com/webhooks/dailybot",
  "events": ["followups.response.completed", "kudos.posted"],
  "name": "Production Webhook",
  "created_at": "2026-04-06T10:00:00Z"
}
```

---

## DELETE /v1/webhooks/{id}/

Deletes a webhook subscription.

```bash
curl -X DELETE "https://api.dailybot.com/v1/webhooks/wh-1234-abcd/" \
  -H "X-API-KEY: your_api_key"
```

**Response (204 No Content)**

---

## POST /v1/webhooks/{id}/sample/

Requests a sample payload for a specific event type. Useful for testing your endpoint.

### Body parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `event` | string | Yes | The event type to generate a sample for. |

```bash
curl -X POST "https://api.dailybot.com/v1/webhooks/wh-1234-abcd/sample/" \
  -H "X-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"event": "followups.response.completed"}'
```

**Response (200 OK):**

```json
{
  "status": "sent",
  "event": "followups.response.completed",
  "message": "Sample event payload sent to your webhook URL."
}
```

## Supported events

| Event | Category |
|-------|----------|
| `followups.response.completed` | Check-in |
| `followups.response.updated` | Check-in |
| `followups.response.deleted` | Check-in |
| `forms.response.created` | Forms |
| `forms.response.updated` | Forms |
| `forms.response.deleted` | Forms |
| `kudos.posted` | Kudos |
| `organization.user_activated` | Organization |
| `organization.user_deactivated` | Organization |
| `organization.team_user_added` | Organization |
| `organization.team_user_removed` | Organization |

## Endpoints in this group

Register outbound webhook subscriptions and deliver sample payloads. API-key only.

| Method | Endpoint | Description |
|--------|----------|-------------|
| POST | `/v1/webhook-subscription/` | Create a webhook subscription (API-Key only) |
| POST | `/v1/webhook-subscription/sample/` | Deliver a sample event (API-Key only) |

### POST `/v1/webhook-subscription/`

**Create a webhook subscription (API-Key only)**

Body: url, subscriptions. Event types include FOLLOWUPS_DAILY_FINISHED, FORMS_RESPONSE_CREATED.

- **Auth:** API key (`X-API-KEY`)
- **Rate limit:** `default`
- **Pagination:** No pagination

#### Error codes

| Status | When |
|--------|------|
| `401` | Missing/invalid/expired credential |
| `403` | Authenticated but not permitted |
| `429` | Throttled - Retry-After header set |
| `400` | Validation error |

#### Example (curl)

```bash
curl -sS -X POST 'https://api.dailybot.com/v1/webhook-subscription/' -H 'X-API-KEY: $DAILYBOT_API_KEY'
```

### POST `/v1/webhook-subscription/sample/`

**Deliver a sample event (API-Key only)**

Body: event_type, url.

- **Auth:** API key (`X-API-KEY`)
- **Rate limit:** `default`
- **Pagination:** No pagination

#### Error codes

| Status | When |
|--------|------|
| `401` | Missing/invalid/expired credential |
| `403` | Authenticated but not permitted |
| `429` | Throttled - Retry-After header set |
| `400` | Validation error |

#### Example (curl)

```bash
curl -sS -X POST 'https://api.dailybot.com/v1/webhook-subscription/sample/' -H 'X-API-KEY: $DAILYBOT_API_KEY'
```

---

## Developer portal navigation

**Getting Started**

- [Overview](/developers)
- [Quick start](/developers/getting-started)
- [Authentication](/developers/authentication)

**API Reference**

- [API Overview](/developers/api)
- [Users](/developers/api/users)
- [Organization](/developers/api/organization)
- [Teams](/developers/api/teams)
- [Invitations](/developers/api/invitations)
- [Check-ins](/developers/api/check-ins)
- [Forms](/developers/api/forms)
- [Report channels](/developers/api/report-channels)
- [Templates](/developers/api/templates)
- [Kudos](/developers/api/kudos)
- [Mood tracking](/developers/api/mood)
- [Important dates](/developers/api/important-dates)
- [Messaging](/developers/api/messaging)
- [Automations](/developers/api/workflows)
- [Webhooks](/developers/api/webhooks) (this page)
- [Commands platform](/developers/api/commands-platform)
- [Agents](/developers/api/agents)
- [OAuth2](/developers/api/oauth2)
- [Integrations](/developers/api/integrations)
- [CLI](/developers/api/cli)

**API guides**

- [Errors & Status Codes](/developers/errors)
- [Rate Limits](/developers/rate-limits)
- [Conventions](/developers/conventions)
- [API Changelog](/developers/api-changelog)
- [Recipes](/developers/recipes)

**Developer Features**

- [Custom commands](/developers/custom-commands)
- [Serverless commands](/developers/serverless)
- [Webhooks & events](/developers/webhooks)
- [Automation API trigger](/developers/workflow-trigger)
- [Activity API](/developers/activity-api)

**CLI**

- [Overview](/developers/cli)
- [Authentication](/developers/cli-authentication)
- [Command reference](/developers/cli-reference)
- [CI/CD recipes](/developers/cli-ci-cd)
- [Configuration](/developers/cli-configuration)
- [Troubleshooting](/developers/cli-troubleshooting)

**Agent Skill**

- [Overview](/developers/agent-skill)
- [Skills catalog](/skills)

---

## Site navigation

**Product:**
- [Home](/)
- [Product](/product)
- [Pricing](/pricing)
- [Enterprise](/enterprise)
- [Integrations](/integrations)
- [Templates](/templates)

**Resources:**
- [Blog](/blog)
- [Academy](/academy)
- [Changelog](/changelog)
- [Help Center](/help)
- [Developers](/developers)
- [Agents](/agents)

**Company:**
- [About](/about)
- [Careers](/careers)
- [Security](/security)
- [Contact Sales](/demo)

**Connect:**
- [LinkedIn](https://www.linkedin.com/company/dailybot/)
- [X/Twitter](https://twitter.com/dailybot)
- [GitHub](https://github.com/Dailybot-Inc)
- [YouTube](https://www.youtube.com/channel/UC3uM9V52vwX7e3vQpCc4qvA)

