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.

GET/webhooks

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

Query Parameters

account_idstringrequired

The unique identifier of the account the webhooks belong to.

statestring

Return only the webhooks in this state. Omit it to return all of them.

Response

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

idstring

The unique identifier of the webhook.

account_idstring<uuid>

The unique identifier of the account the webhook belongs to.

namestring

Your name for the webhook.

state"ACTIVE" | "INACTIVE"

ACTIVE webhooks receive notifications, INACTIVE ones do not. A webhook starts out ACTIVE.

urlstring

The endpoint WHITELABEL sends the notifications to.

api_keystringnull

Masked as ***, or null when you have not configured it.

secretstringnull

Masked as ***, or null when you have not configured it.

hmac_client_secretstringnull

Masked as ***, or null when you have not configured it.

oauth2_authentication_urlstringnull

Your token endpoint.

oauth2_client_secretstringnull

Masked as ***, or null when you have not configured it.

oauth2_client_idstringnull

The client identifier WHITELABEL authenticates with.

oauth2_grant_typestringnull

The grant type WHITELABEL requests the token with.

oauth2_scopestringnull

The scope WHITELABEL requests the token with.

oauth2_authorization_namestringnull

The header WHITELABEL sends the token in.

oauth2_include_client_idboolean

Whether WHITELABEL also sends the client identifier as a header on the token request.

enrollment_triggersarraynull

The enrollment events the webhook subscribes to.

payment_triggersarraynull

The payment events the webhook subscribes to.

report_triggersarraynull

The report events the webhook subscribes to.

subscription_triggersarraynull

The subscription events the webhook subscribes to.

onboarding_triggersarraynull

The onboarding events the webhook subscribes to.

renewal_daysintegernull

How many days before a renewal WHITELABEL sends the CLOSE_TO_RENEWAL notification.

created_atstring<date-time>

The date and time the webhook was created, in ISO 8601.

updated_atstring<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.

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.

messagesstring[]

Human-readable description of the error.

Your API credentials are missing or invalid.

code"NOT_AUTHENTICATED" | "INVALID_CREDENTIALS"

Machine-readable error code.

messagesstring[]

Human-readable description of the error.

The webhook service is temporarily unavailable.

code"WEBHOOK_UPSTREAM_ERROR"

Machine-readable error code.

messagesstring[]

Human-readable description of the error.

Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/webhooks?account_id=<account_id>&state=<state>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
[
  {
    "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"
  }
]