Skip to main content

Get Webhook

GET /v1/webhook_endpoints/:id

Overview

Retrieves the details of a specific webhook endpoint using its unique identifier.

Authorization

  • Header: Authorization: Bearer sk_test_907...de66
Request Details

Request

curl https://api-prod.paybytoken.io/v1/webhook_endpoints/we_1ZbSVMF8KXuhmXpKPXkt \
-X GET \
-H "Authorization: Bearer sk_test_907...de66"

Request Parameters

ParameterTypeDescription
idstringUnique identifier of the webhook endpoint (e.g., we_1ZbSVMF8KXuhmXpKPXkt).
Response Details

Response

The response returns a WebhookEndpoint object containing details about the webhook endpoint. See Webhook Overview for the full object definition.

Example Response

{
"id": "we_1ZbSVMF8KXuhmXpKPXkt",
"account_id": "acct_1",
"url": "https://example.com/webhook",
"enabled_events": [],
"description": null,
"secret": "whsec_67f8c3677abd4063da64ca3b11f1fe87",
"metadata": {},
"status": "enabled",
"created_at": "2025-09-05T14:32:30.000Z",
"updated_at": "2025-09-05T14:32:30.000Z"
}