Retrieve a Webhook

Returns a webhook by its unique identifier, the one you get from Create a Webhook or List Webhooks. Secrets are masked.

The webhook must belong to the account you pass in account_id. Any other identifier returns 404 WEBHOOK_NOT_FOUND.

See Webhooks Overview for what each field configures.

GET/webhooks/{webhook_id}

Returns a webhook by its unique identifier, with its secrets masked.

Path Parameters

webhook_idstringrequired

The unique identifier of the webhook, as returned by Create a Webhook.

Query Parameters

account_idstringrequired

The unique identifier of the account the webhook belongs to.

Response

The webhook.

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.

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.

There is no webhook with that identifier on the account.

code"WEBHOOK_NOT_FOUND"

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/<webhook_id>?account_id=<account_id>" \
  -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"
}