# Get a webhook

### Get a webhook

`GET /api/v1/webhooks/{webhookId}`

Operation ID: `getWebhook`

One webhook, with its delivery status.

**Path parameters**

- `webhookId` (string · uuid, required): Webhook id

**200**: The webhook.

- `webhook` (object, required)
  - `id` (string · uuid, required)
  - `url` (string, required)
  - `headerNames` (string[], required): Names of the extra headers sent with every request.
  - `eventTypes` (string | string[], required): The [event types](https://needle.app/docs/webhooks#event-types) this webhook gets. "all" means every type, also types added later. A list stays as it is: types added later are not sent until you add them.
  - `lastAttemptAt` (string · date-time | null, required)
  - `lastError` (string | null, required): Why the last failed delivery failed, for example 401. Null once a delivery succeeds.
  - `createdAt` (string · date-time, required)
  - `createdBy` (string · uuid, required): The member who created the webhook. It receives the events they can see, and is deleted when they leave the workspace.
- `requestId` (string · uuid, required): Id of this request, for support and troubleshooting

**Errors**

- `400`: Bad request
- `401`: Unauthorized: missing or invalid API key
- `403`: Forbidden
- `404`: Not found
- `422`: Invalid request payload
