Skip to main content
GET
/
api
/
webhooks
/
:id
curl https://api.swiftpay.cx/api/webhooks/wh_abc123 \
  -H "Authorization: Bearer mp_live_your_api_key"
{
  "success": true,
  "data": {
    "id": "wh_abc123",
    "url": "https://yoursite.com/webhooks/swiftpay",
    "events": [
      "checkout.succeeded",
      "checkout.failed",
      "withdrawal.paid"
    ],
    "enabled": true,
    "description": "Production webhook handler",
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-20T14:00:00Z"
  }
}

Get Webhook Endpoint

Retrieves the details of a specific webhook endpoint.

Request

Authorization
string
required
Bearer token with your API key
id
string
required
The unique identifier of the webhook endpoint

Response

success
boolean
Whether the request was successful
data
object
curl https://api.swiftpay.cx/api/webhooks/wh_abc123 \
  -H "Authorization: Bearer mp_live_your_api_key"
{
  "success": true,
  "data": {
    "id": "wh_abc123",
    "url": "https://yoursite.com/webhooks/swiftpay",
    "events": [
      "checkout.succeeded",
      "checkout.failed",
      "withdrawal.paid"
    ],
    "enabled": true,
    "description": "Production webhook handler",
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-20T14:00:00Z"
  }
}
The webhook signing secret is never returned after initial creation for security reasons.