# List Webhooks

Lists the webhooks configured on an account, with their secrets masked. An account with no webhooks returns an empty array.

Pass `state=ACTIVE` or `state=INACTIVE` to list only the webhooks in that state, and omit it to list all of them.

The same webhooks are listed in the Developers tab of the [WHITELABEL dashboard](/docs/webhooks/configure-webhooks).

**GET** `/webhooks`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Returns the webhooks configured on an account, with their secrets masked. Filter by `state` to list only the active or the inactive ones.

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Query parameters

- `account_id` (string, required)
  The unique identifier of the account the webhooks belong to.
- `state` (string)
  Return only the webhooks in this state. Omit it to return all of them.

## Responses

### 200

The webhooks configured on the account, or an empty array if it has none.

- `id` (string)
  The unique identifier of the webhook.
- `account_id` (string<uuid>)
  The unique identifier of the account the webhook belongs to.
- `name` (string)
  Your name for the webhook.
- `state` ("ACTIVE" | "INACTIVE")
  `ACTIVE` webhooks receive notifications, `INACTIVE` ones do not. A webhook starts out `ACTIVE`.
- `url` (string)
  The endpoint WHITELABEL sends the notifications to.
- `api_key` (string,null)
  Masked as `***`, or `null` when you have not configured it.
- `secret` (string,null)
  Masked as `***`, or `null` when you have not configured it.
- `hmac_client_secret` (string,null)
  Masked as `***`, or `null` when you have not configured it.
- `oauth2_authentication_url` (string,null)
  Your token endpoint.
- `oauth2_client_secret` (string,null)
  Masked as `***`, or `null` when you have not configured it.
- `oauth2_client_id` (string,null)
  The client identifier WHITELABEL authenticates with.
- `oauth2_grant_type` (string,null)
  The grant type WHITELABEL requests the token with.
- `oauth2_scope` (string,null)
  The scope WHITELABEL requests the token with.
- `oauth2_authorization_name` (string,null)
  The header WHITELABEL sends the token in.
- `oauth2_include_client_id` (boolean)
  Whether WHITELABEL also sends the client identifier as a header on the token request.
- `enrollment_triggers` (array,null)
  The enrollment events the webhook subscribes to.
- `payment_triggers` (array,null)
  The payment events the webhook subscribes to.
- `report_triggers` (array,null)
  The report events the webhook subscribes to.
- `subscription_triggers` (array,null)
  The subscription events the webhook subscribes to.
- `onboarding_triggers` (array,null)
  The onboarding events the webhook subscribes to.
- `renewal_days` (integer,null)
  How many days before a renewal WHITELABEL sends the `CLOSE_TO_RENEWAL` notification.
- `created_at` (string<date-time>)
  The date and time the webhook was created, in ISO 8601.
- `updated_at` (string<date-time>)
  The date and time the webhook was last updated, in ISO 8601. It matches `created_at` until you update the webhook for the first time.

Example:

```json
[
  {
    "id": "12345",
    "account_id": "493e9374-510a-4201-9e09-de669d75f256",
    "name": "Production payments listener",
    "state": "ACTIVE",
    "url": "https://api.acme.com/whitelabel/webhooks",
    "api_key": "***",
    "secret": "***",
    "hmac_client_secret": "***",
    "oauth2_authentication_url": "https://api.acme.com/oauth/token",
    "oauth2_client_secret": "***",
    "oauth2_client_id": "acme_client_id",
    "oauth2_grant_type": "client_credentials",
    "oauth2_scope": "webhooks:write",
    "oauth2_authorization_name": "Authorization",
    "oauth2_include_client_id": true,
    "enrollment_triggers": [
      "ENROLL",
      "UNENROLL"
    ],
    "payment_triggers": [
      "AUTHORIZE",
      "CAPTURE",
      "REFUND"
    ],
    "report_triggers": [
      "UPDATE"
    ],
    "subscription_triggers": [
      "CREATE",
      "CLOSE_TO_RENEWAL"
    ],
    "onboarding_triggers": [
      "CREATED",
      "SUCCEEDED"
    ],
    "renewal_days": 5,
    "created_at": "2026-07-09T13:05:36.482913Z",
    "updated_at": "2026-07-11T16:20:44.918330Z"
  }
]
```

### 400

The `account_id` is missing or invalid, or `state` is not `ACTIVE` or `INACTIVE`.

- `code` ("WEBHOOK_INVALID_REQUEST" | "INVALID_ACCOUNT_ID")
  Machine-readable error code.
- `messages` (string[])
  Human-readable description of the error.

Example:

```json
{
  "code": "WEBHOOK_INVALID_REQUEST",
  "messages": [
    "string"
  ]
}
```

### 401

Your API credentials are missing or invalid.

- `code` ("NOT_AUTHENTICATED" | "INVALID_CREDENTIALS")
  Machine-readable error code.
- `messages` (string[])
  Human-readable description of the error.

Example:

```json
{
  "code": "NOT_AUTHENTICATED",
  "messages": [
    "string"
  ]
}
```

### 502

The webhook service is temporarily unavailable.

- `code` ("WEBHOOK_UPSTREAM_ERROR")
  Machine-readable error code.
- `messages` (string[])
  Human-readable description of the error.

Example:

```json
{
  "code": "WEBHOOK_UPSTREAM_ERROR",
  "messages": [
    "string"
  ]
}
```