> ## Documentation Index
> Fetch the complete documentation index at: https://cobalt-55-abhishek.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Webhook by ID

> Retrieve a single webhook by its ID.

Retrieve the full configuration of a single webhook by its ID.

## Authentication

<ParamField header="x-api-key" type="string" required>
  Your Refold API key. Find it in **Settings → Credentials**.
</ParamField>

## Path Parameters

<ParamField path="id" type="string" required>
  The webhook ID.

  **Example:** `6a313eda6d5528bdcf71ebac`
</ParamField>

## Response

<Tabs>
  <Tab title="200 OK">
    <ResponseField name="_id" type="string">Webhook ID.</ResponseField>
    <ResponseField name="org_id" type="string">Owning org.</ResponseField>
    <ResponseField name="environment" type="string">`test` or `live`.</ResponseField>
    <ResponseField name="is_enabled" type="boolean">Whether the webhook is active.</ResponseField>
    <ResponseField name="webhook_events" type="array">Subscribed events.</ResponseField>
    <ResponseField name="webhook_url" type="string">Delivery URL.</ResponseField>
    <ResponseField name="webhook_type" type="string">Payload format.</ResponseField>
    <ResponseField name="method" type="string">Delivery HTTP method.</ResponseField>
    <ResponseField name="webhook_body" type="string">Payload template.</ResponseField>
    <ResponseField name="workflow_ids" type="array">Restricted workflow IDs, if any.</ResponseField>
  </Tab>

  <Tab title="400 Not Found">
    Returned when no webhook matches the ID.
    <ResponseField name="status_code" type="integer">HTTP status code.</ResponseField>
    <ResponseField name="http_error_type" type="string">Error category.</ResponseField>
    <ResponseField name="error" type="string">Internal error code, e.g. `RESOURCE_NOT_FOUND`.</ResponseField>
    <ResponseField name="message" type="string">Human-readable error description.</ResponseField>
  </Tab>
</Tabs>

<ResponseExample>
  ```json 200 theme={null}
  {
    "_id": "6a313eda6d5528bdcf71ebac",
    "org_id": "6500a1b2c3d4e5f6a7b8c9d0",
    "environment": "test",
    "is_enabled": true,
    "webhook_events": ["Workflow Errored", "Connection Expired"],
    "workflow_ids": [],
    "webhook_url": "https://your-app.com/webhooks",
    "webhook_body": "{{event}}",
    "method": "POST",
    "webhook_type": "default",
    "createdAt": "2026-06-16T12:17:30.231Z",
    "updatedAt": "2026-06-16T12:17:30.231Z",
    "__v": 0
  }
  ```

  ```json 400 theme={null}
  {
    "status_code": 400,
    "http_error_type": "BAD_REQUEST",
    "error": "RESOURCE_NOT_FOUND",
    "message": "Webhook not found"
  }
  ```
</ResponseExample>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://app.refold.ai/api/v2/public/webhook/{id}" \
    -H "x-api-key: YOUR_API_KEY"
  ```
</RequestExample>
