Skip to main content
GET
/
v1
/
webhooks
/
{id}
Get a webhook
curl --request GET \
  --url https://api.ledger.so/v1/webhooks/{id} \
  --header 'Authorization: Bearer <token>'
{
  "ok": true,
  "data": {
    "id": "whk_bcd890",
    "url": "https://example.com/webhooks/ledger",
    "events": [
      "customer.created",
      "transaction.completed",
      "card.issued"
    ],
    "status": "active",
    "createdAt": "2025-01-15T15:00:00Z",
    "secret": "whsec_a1b2c3d4e5f6g7h8i9j0"
  }
}

Authorizations

Authorization
string
header
required

API key passed as a Bearer token. Format: ld_<env>_<prefix>_<secret> where <env> is test or live.

Path Parameters

id
string
required

The webhook ID (prefixed with whk_).

Example:

"whk_bcd890"

Response

The requested webhook

ok
boolean
required

Indicates the request was successful.

data
object