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

# Get webhook details

> Get of list of webhooks or retrieve details about a specific webhook.

## List webhooks

<Note>
  **GET** `/v2/webhooks`
</Note>

### Request

Use this request to retrieve a list of webhooks. You can use optional query parameters to filter your results. For example, use`enabled=true` to return only webhooks that are currently enabled.

<CodeGroup>
  ```bash Sample request theme={null}
  curl -i -X GET \
    'https://api.equalsmoney.com/v2/webhooks' \
    -H 'Authorization: YOUR_API_KEY_HERE'
  ```

  ```bash Request structure theme={null}
  curl -i -X GET \
    'https://api.equalsmoney.com/v2/webhooks' \
    -H 'Authorization: ApiKey YOUR_API_KEY_HERE'
  ```
</CodeGroup>

#### Query parameters

<ParamField body="limit" type="integer">
  The maximum number of items to return. For example, `limit=25`. By default, this is set to `100`.

  Allowable values: `[ 1 .. 100000 ]`
</ParamField>

<ParamField body="offset" type="integer">
  The number of items to skip before returning the results. For example, `offset=200`. By default, this is set to `0`.

  Allowable values: A valid integer
</ParamField>

<ParamField body="webhookEventTypeId" type="string (uuid)">
  Optional ID of the webhook event type to filter the response with.

  Allowable values: ≤ 36 characters
</ParamField>

<ParamField body="enabled" type="boolean">
  Optional query parameter to filter the response with (whether the webhook is enabled or not).

  Allowable values: `true`, `false`
</ParamField>

<ParamField body="webhookEventTypeName" type="boolean">
  Optional name of the webhook event type to filter the response with.

  Allowable values: ≤ 256 characters
</ParamField>

<ParamField body="accountId" type="string">
  The account ID to filter the response with. This is required if you have a user-level API key.

  Allowable values: An existing `accountId` (≤ 36 characters)
</ParamField>

### Response

If your request is successful, you'll receive a `200` response.

<CodeGroup>
  ```json Sample response theme={null}

  {
    "count": 2,
    "limit": 100,
    "offset": 0,
    "rows": [
      {
        "id": "05fba7ec-f75b-4bab-adf5-4b4575fb791c",
        "productId": "d926625b-5e11-4ec1-b4cd-0af2a8021efc",
        "accountId": "F12345",
        "webhookEventTypeId": "64b18e0e-4561-4509-ad35-ecc8d342d291",
        "url": "https://webhook.site/217ab475-3c10-4b2c-80e0-c8c2c50ba9aa",
        "enabled": true,
        "authorizationHeader": null,
        "sharedSecret": null,
        "createdAt": "2023-11-01T14:09:10.000Z",
        "updatedAt": "2023-11-01T14:09:10.000Z",
        "webhookEventTypeName": "RecipientCreated"
      },
      {
        "id": "09bbd138-6ea1-4664-806a-16d3b1b9dfbf",
        "productId": "d926625b-5e11-4ec1-b4cd-0af2a8021efc",
        "accountId": "F12345",
        "webhookEventTypeId": "25d5b682-7449-4d07-b6fc-7c9bf1239561",
        "url": "https://webhook.site/d20a8624-56df-4f14-833e-9deed69568ad",
        "enabled": true,
        "authorizationHeader": null,
        "sharedSecret": null,
        "createdAt": "2023-11-30T10:02:50.000Z",
        "updatedAt": "2023-11-30T10:02:50.000Z",
        "webhookEventTypeName": "BoxCredited"
      }
    ]
  }
  ```

  ```json Response structure theme={null}

  {
    "count": integer,
    "limit": integer,
    "offset": integer,
    "rows": [
      {
        "id": "string",
        "productId": "string",
        "accountId": "string",
        "webhookEventTypeId": "string",
        "url": "string",
        "enabled": true,
        "authorizationHeader": null,
        "sharedSecret": null,
        "createdAt": "string",
        "updatedAt": "string",
        "webhookEventTypeName": "string"
      },
      {
        "id": "string",
        "productId": "string",
        "accountId": "string",
        "webhookEventTypeId": "string",
        "url": "string",
        "enabled": true,
        "authorizationHeader": null,
        "sharedSecret": null,
        "createdAt": "string",
        "updatedAt": "string",
        "webhookEventTypeName": "string"
      }
    ]
  }
  ```
</CodeGroup>

For more detailed information about this request and its response, [see the API reference](/api-reference/webhooks/list-webhooks).

## Retrieve a webhook

<Note>
  **GET** `/v2/webhooks/{webhookId}`
</Note>

### Request

Use this request to get details about a given webhook, based on its `id`.

<CodeGroup>
  ```bash Sample request theme={null}
  curl -i -X GET \
    'https://api.equalsmoney.com/v2/webhooks/d7d34e0f-c6e9-4cea-8c25-baaffa81714f' \
    -H 'Authorization: ApiKey YOUR_API_KEY_HERE'
  ```

  ```bash Request structure theme={null}
  curl -i -X GET \
    'https://api.equalsmoney.com/v2/webhooks/{webhookId}' \
    -H 'Authorization: ApiKey YOUR_API_KEY_HERE'
  ```
</CodeGroup>

#### Path parameters

<ParamField body="webhookId" type="string" required>
  The ID of the webhook that you want to retrieve.

  Allowable values: An existing `webhookId` (≤ 36 characters)
</ParamField>

#### Query parameters

<ParamField body="accountId" type="string">
  The account ID to filter the response with. This is required if you have a user-level API key.

  Allowable values: An existing `accountId` (≤ 36 characters)
</ParamField>

### Response

If your request is successful, you'll receive a `200` response.

<CodeGroup>
  ```json Sample response theme={null}
  {
    "sharedSecret": "123e4567-e89b-12d3-a456-426614174000",
    "enabled": true,
    "accountId": "F12345",
    "webhookEventTypeId": "da91434a-4026-42ea-84b8-d0317b64af9c",
    "url": "https://api.url.com",
    "authorizationHeader": "Basic AXVubzpwQDU1dzByYM==",
    "id": "d7d34e0f-c6e9-4cea-8c25-baaffa81714f",
    "productId": "911db6db-ef58-4992-87cd-2fe2cfde05f9",
    "webhookEventTypeName": "OrderCreated",
    "createdAt": "2023-01-30T08:30:00Z",
    "updatedAt": "2023-01-30T08:30:00Z"
  }
  ```

  ```json Response structure theme={null}
  {
    "sharedSecret": "string",
    "enabled": boolean,
    "accountId": "string",
    "webhookEventTypeId": "string",
    "url": "string",
    "authorizationHeader": "string",
    "id": "string",
    "productId": "string",
    "webhookEventTypeName": "string",
    "createdAt": "string",
    "updatedAt": "string"
  }
  ```
</CodeGroup>

For more detailed information about this request and its response, [see the API reference](/api-reference/webhooks/retrieve-a-webhook).
