---
title: "Get a webhook"
method: GET
path: "/v1/webhooks/{id}"
tags: ["Webhooks"]
---

# Get a webhook

`GET /v1/webhooks/{id}`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/webhooks/{id}`
- Auth: API key in header `x-api-key`

Returns the configuration of the webhook endpoint with the given ID.

## Path parameters

- `id` string, required

## Response `200`

WebhookEndpoint

- WebhookEndpoint
  - `id` string, required
  - `name` string, required
  - `url` string, required
  - `eventTypes` string[], required
  - `channels` string[], nullable, required
  - `mailboxIds` MailboxId[], nullable, required
  - `namespaceId` string, required
  - `status` 'active' | 'disabled', required
  - `hasCustomHeaders` boolean, required
  - `failureStartedAt` string, nullable, required
  - `lastSucceededAt` string, nullable, required
  - `createdAt` string, required
  - `updatedAt` string, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
