> ## Documentation Index
> Fetch the complete documentation index at: https://hub.hcompany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve a webhook

> Fetch a single webhook by id.

Fetches one webhook. The signing `secret` is never returned by reads; it appears only in the [Create](/computer-use-agents/webhooks/create) response.

**Returns** the webhook object.

***

## Path parameters

<ParamField path="webhook_id" type="string" required>
  The webhook's `id` (UUID).
</ParamField>

***

## The webhook object

<ResponseField name="id" type="string">
  Unique identifier (UUID).
</ResponseField>

<ResponseField name="url" type="string">
  Target URL for deliveries.
</ResponseField>

<ResponseField name="enabled_events" type="string[]">
  Event types delivered to this webhook; `["*"]` means the `session.status_updated` firehose.
</ResponseField>

<ResponseField name="description" type="string | null">
  Optional label.
</ResponseField>

<ResponseField name="disabled" type="boolean">
  When `true`, the webhook stays registered but receives no deliveries. Set manually via [Update](/computer-use-agents/webhooks/update), or automatically after repeated delivery failures.
</ResponseField>

<ResponseField name="last_delivery_status" type="string | null">
  Result of the most recent delivery attempt: `succeeded` or `failed`. `null` before the first attempt.
</ResponseField>

<ResponseField name="last_delivery_error" type="string | null">
  What went wrong on the most recent delivery attempt, e.g. `HTTP 503` or a connection error. `null` when it succeeded.
</ResponseField>

<ResponseField name="last_delivery_at" type="string | null">
  When the most recent delivery attempt happened (UTC). `null` before the first attempt.
</ResponseField>

<ResponseField name="last_success_at" type="string | null">
  When a delivery last succeeded (UTC). `null` if none has.
</ResponseField>

<ResponseField name="consecutive_failures" type="integer">
  Failed delivery attempts since the last success. Resets to `0` on a successful delivery or a manual re-enable; the webhook is disabled automatically when it grows too large. See [Delivery semantics](/computer-use-agents/webhooks/overview#delivery-semantics).
</ResponseField>

<ResponseField name="created_at" type="string">
  Creation time (UTC).
</ResponseField>

<ResponseField name="updated_at" type="string">
  Last modification time (UTC).
</ResponseField>

***

## Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl https://agp.eu.hcompany.ai/api/v2/webhooks/f47ac10b-58cc-4372-a567-0e02b2c3d479 \
    -H "Authorization: Bearer $HAI_API_KEY"
  ```

  ```python Python theme={null}
  from hai_agents import Client

  client = Client()

  webhook = client.webhooks.get_webhook(webhook_id="f47ac10b-58cc-4372-a567-0e02b2c3d479")
  print(webhook.url, webhook.enabled_events)
  ```

  ```typescript TypeScript theme={null}
  import { HaiAgentsClient } from "hai-agents";

  const client = new HaiAgentsClient();

  const webhook = await client.webhooks.getWebhook({ webhookId: "f47ac10b-58cc-4372-a567-0e02b2c3d479" });
  console.log(webhook.url, webhook.enabledEvents);
  ```
</CodeGroup>

```json Response theme={null}
{
  "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "url": "https://example.com/hooks/h",
  "enabled_events": ["session.status_updated"],
  "description": "Production listener",
  "disabled": false,
  "last_delivery_status": "succeeded",
  "last_delivery_error": null,
  "last_delivery_at": "2026-07-03T08:30:00Z",
  "last_success_at": "2026-07-03T08:30:00Z",
  "consecutive_failures": 0,
  "created_at": "2026-06-11T15:04:05Z",
  "updated_at": "2026-06-11T15:04:05Z"
}
```

***

## Errors

| Status | Cause                                       |
| ------ | ------------------------------------------- |
| `404`  | Webhook not found or you don't have access. |
