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

# Retrieve webhook

> Retrieve webhook for a campaign.

### Parameters

<ParamField path="id" type="string" required>
  The ID of the webhook to retrieve.
</ParamField>

### Response

<ResponseField name="webhook" type="object">
  The details of the webhook.

  <Expandable title="webhook fields">
    <ResponseField name="id" type="string">
      The ID of the webhook.
    </ResponseField>

    <ResponseField name="createdAt" type="timestamp">
      The time the webhook was created
    </ResponseField>

    <ResponseField name="name" type="string">
      The name of the webhook (optional).
    </ResponseField>

    <ResponseField name="url" type="string">
      The URL of the webhook.
    </ResponseField>

    <ResponseField name="campaignId" type="string">
      The campaign ID for the webhook.
    </ResponseField>

    <ResponseField name="signature" type="string">
      The signature sent with events. [(read more)](/api-reference/webhooks)
    </ResponseField>

    <ResponseField name="eventTypes" type="string">
      The events the webhook will receive. [(read more)](/api-reference/webhooks)

      <Expandable title="event types">
        <ResponseField name="message.incoming" type="string">
          Subscribed to incoming messages.
        </ResponseField>

        <ResponseField name="message.status" type="string">
          Subscribed to message status updates.
        </ResponseField>

        <ResponseField name="recipient.optout" type="string">
          Subscribed to recipient opt-outs.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="numbers" type="string[]">
      The phone numbers the webhook is subscribed to.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success theme={null}
  {
    "webhook": {
      "id": "d3392dbf-ae4b-43b9-9b50-dcafa5c7h4mn",
      "createdAt": "2023-12-31T03:07:35.826Z",
      "name": "Event Service",
      "url": "https://website.com/webhook",
      "campaignId": "g1tkV7Eq",
      "signature": "aVWS7HTLR9xxMkdE",
      "eventTypes": [
        "message.incoming",
        "message.status"
      ],
      "numbers": [
        "+14159436397"
      ]
    }
  }
  ```

  ```json Error theme={null}
  {
    "error": "Webhook not found"
  }
  ```
</ResponseExample>
