# Retrieve Webhook

> GET /webhooks/:id — retrieve a single webhook.

`GET /webhooks/:id`

Retrieves a single webhook by id, including its `status`, `endpoint`, subscribed `events`, and delivery-health fields. The `signing_secret` is **never** returned on retrieval — it is only shown once, at creation or rotation.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | The webhook id as returned by [Create Webhook](https://www.senddart.com/docs/api/webhooks-create) or [List Webhooks](https://www.senddart.com/docs/api/webhooks-list) — a numeric string (e.g. `17`), not a UUID. A non-numeric id returns `not_found` (404). |

**Node.js**

```js
import { SendDart } from 'senddart';

const mb = new SendDart('mb_xxxxxxxxx');

const { data, error } = await mb.webhooks.get('17');
console.log({ data, error });
```

**Ruby**

```ruby
require "senddart"

SendDart.api_key = "mb_xxxxxxxxx"

SendDart::Webhooks.get("17")
```

**PHP**

```php
<?php
require 'vendor/autoload.php';

use SendDart\SendDart;

$senddart = SendDart::client('mb_xxxxxxxxx');

$senddart->webhooks->get('17');
```

**Python**

```python
import senddart

senddart.api_key = "mb_xxxxxxxxx"

senddart.Webhooks.get("17")
```

**Go**

```go
import "github.com/shekhu10/senddart-sdks/senddart-go"

client := senddart.NewClient("mb_xxxxxxxxx")

webhook, err := client.Webhooks.Get("17")
```

**Rust**

```rust
use senddart::SendDart;

let mb = SendDart::new("mb_xxxxxxxxx");

let _webhook = mb.webhooks.get("17").await?;
```

**Java**

```java
import com.senddart.SendDart;
import com.senddart.SendDartResponse;

SendDart senddart = new SendDart("mb_xxxxxxxxx");

SendDartResponse response = senddart.webhooks().get("17");
```

**.NET**

```csharp
using SendDart;

ISendDart senddart = SendDartClient.Create("mb_xxxxxxxxx");

var resp = await senddart.WebhookRetrieveAsync("17");
```

**cURL**

```bash
curl -X GET 'https://www.senddart.com/api/webhooks/17' \
  -H 'Authorization: Bearer mb_xxxxxxxxx'
```

**CLI**

```bash
senddart webhooks get 17
```

### Response

```json
{
  "object": "webhook",
  "id": "17",
  "created_at": "2026-06-22T15:28:00.000Z",
  "status": "enabled",
  "endpoint": "https://example.com/handler",
  "events": ["email.sent"],
  "has_secret": true,
  "last_delivery_at": "2026-06-27T10:00:00.000Z",
  "last_delivery_status": 200,
  "failure_count": 0
}
```

Errors: `not_found` if the webhook does not exist or is not yours. See [Errors](https://www.senddart.com/docs/api/errors).
