# List webhook endpoints

> List webhook endpoints. GET /v1/webhooks in the Raylight API.

### GET /v1/webhooks

**List webhook endpoints**

Auth: `Authorization: Bearer rl_live_...` with the `productions` scope.

Parameters:

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspaceId` | query | uuid | no |  |

Responses:

| Status | Meaning |
| --- | --- |
| 200 | The workspace's endpoints. |
| 400 | Invalid request. |
| 401 | Missing, invalid or revoked key. |
| 403 | The key lacks the `productions` scope (code `api_key_missing_scope`), or its owner has view-only access to the workspace (code `forbidden`). |
| 404 | No such endpoint or workspace for this key (code `not_found`). |
| 429 | Rate limited, or a monthly cap reached. |
| 503 | Webhooks are not switched on for this server (code `disabled`). Every webhook route answers this while they are off. |

Response body (200):

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `endpoints` | object[] | yes |  |
| `endpoints[].id` | uuid | yes |  |
| `endpoints[].workspaceId` | uuid | yes |  |
| `endpoints[].url` | url | yes |  |
| `endpoints[].description` | string \| null | yes |  |
| `endpoints[].events` | enum[] | yes |  |
| `endpoints[].enabled` | boolean | yes |  |
| `endpoints[].disabledReason` | string \| null | yes |  |
| `endpoints[].consecutiveFailures` | integer | yes |  |
| `endpoints[].lastAttemptAt` | datetime \| null | yes |  |
| `endpoints[].lastSuccessAt` | datetime \| null | yes |  |
| `endpoints[].previousSecretExpiresAt` | datetime \| null | yes |  |
| `endpoints[].createdAt` | datetime | yes |  |
| `endpoints[].updatedAt` | datetime | yes |  |

Example (curl):

```bash
curl https://api.raylight.app/v1/webhooks \
  -H "Authorization: Bearer $RAYLIGHT_API_KEY"
```

## More

- Previous: [Cancel a production](https://www.raylight.app/docs/reference/post-v1-productions-id-cancel.md)
- Next: [Create a webhook endpoint](https://www.raylight.app/docs/reference/post-v1-webhooks.md)
- All docs: https://www.raylight.app/llms.txt
- Everything in one file: https://www.raylight.app/llms-full.txt
- OpenAPI: https://api.raylight.app/v1/openapi.json
