# Webhooks endpoints (Admin API)

> 13 FeatherPanel Admin API endpoints from admin/webhooks.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Source: https://featherpanel.com/docs/api/reference/admin/webhooks/

Defined in [`backend/app/routes/admin/webhooks.php`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php). Authentication used here: **Admin**. Read [Authentication](https://featherpanel.com/docs/api/authentication/) for how to send credentials and [Rate limits and errors](https://featherpanel.com/docs/api/rate-limits-and-errors/) for the response envelope.

Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.

## Endpoints

### GET `/api/admin/webhooks/settings`

- Auth: Admin
- Permission: `admin.webhooks.view`
- Route name: `admin-webhooks-settings`
- Controller: [`WebhooksController::settings`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/WebhooksController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php#L39)

```bash
curl -X GET "$PANEL_URL/api/admin/webhooks/settings" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### PUT `/api/admin/webhooks/settings`

- Auth: Admin
- Permission: `admin.webhooks.manage`
- Route name: `admin-webhooks-settings-update`
- Controller: [`WebhooksController::updateSettings`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/WebhooksController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php#L40)

```bash
curl -X PUT "$PANEL_URL/api/admin/webhooks/settings" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/webhooks/deliveries/{id}`

- Auth: Admin
- Permission: `admin.webhooks.view`
- Route name: `admin-webhooks-delivery`
- Controller: [`WebhooksController::delivery`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/WebhooksController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php#L41)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X GET "$PANEL_URL/api/admin/webhooks/deliveries/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/webhooks/deliveries/{id}/redeliver`

- Auth: Admin
- Permission: `admin.webhooks.manage`
- Route name: `admin-webhooks-delivery-redeliver`
- Controller: [`WebhooksController::redeliver`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/WebhooksController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php#L42)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X POST "$PANEL_URL/api/admin/webhooks/deliveries/$ID/redeliver" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/webhooks`

- Auth: Admin
- Permission: `admin.webhooks.view`
- Route name: `admin-webhooks`
- Controller: [`WebhooksController::index`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/WebhooksController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php#L44)

```bash
curl -X GET "$PANEL_URL/api/admin/webhooks" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/webhooks`

- Auth: Admin
- Permission: `admin.webhooks.manage`
- Route name: `admin-webhooks-create`
- Controller: [`WebhooksController::create`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/WebhooksController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php#L45)

```bash
curl -X POST "$PANEL_URL/api/admin/webhooks" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/webhooks/{id}`

- Auth: Admin
- Permission: `admin.webhooks.view`
- Route name: `admin-webhooks-show`
- Controller: [`WebhooksController::show`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/WebhooksController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php#L46)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X GET "$PANEL_URL/api/admin/webhooks/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### PATCH `/api/admin/webhooks/{id}`

- Auth: Admin
- Permission: `admin.webhooks.manage`
- Route name: `admin-webhooks-update`
- Controller: [`WebhooksController::update`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/WebhooksController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php#L47)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X PATCH "$PANEL_URL/api/admin/webhooks/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### DELETE `/api/admin/webhooks/{id}`

- Auth: Admin
- Permission: `admin.webhooks.manage`
- Route name: `admin-webhooks-delete`
- Controller: [`WebhooksController::delete`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/WebhooksController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php#L48)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X DELETE "$PANEL_URL/api/admin/webhooks/$ID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/webhooks/{id}/secret`

- Auth: Admin
- Permission: `admin.webhooks.manage`
- Route name: `admin-webhooks-secret`
- Controller: [`WebhooksController::secret`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/WebhooksController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php#L49)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X GET "$PANEL_URL/api/admin/webhooks/$ID/secret" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/webhooks/{id}/rotate-secret`

- Auth: Admin
- Permission: `admin.webhooks.manage`
- Route name: `admin-webhooks-rotate-secret`
- Controller: [`WebhooksController::rotateSecret`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/WebhooksController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php#L50)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X POST "$PANEL_URL/api/admin/webhooks/$ID/rotate-secret" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### POST `/api/admin/webhooks/{id}/test`

- Auth: Admin
- Permission: `admin.webhooks.manage`
- Route name: `admin-webhooks-test`
- Controller: [`WebhooksController::test`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/WebhooksController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php#L51)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X POST "$PANEL_URL/api/admin/webhooks/$ID/test" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```

### GET `/api/admin/webhooks/{id}/deliveries`

- Auth: Admin
- Permission: `admin.webhooks.view`
- Route name: `admin-webhooks-deliveries`
- Controller: [`WebhooksController::deliveries`](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/Controllers/Admin/WebhooksController.php)
- [route source](https://github.com/MythicalLTD/FeatherPanel/blob/8318da2dee6f7facc161af39e305be7d97407929/backend/app/routes/admin/webhooks.php#L52)

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | \- | yes |  |

```bash
curl -X GET "$PANEL_URL/api/admin/webhooks/$ID/deliveries" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"
```
