Skip to main content

Endpoint

GET https://pay.sandbox.yabetoopay.com/v1/account/{accountId}/webhooks   # Sandbox
GET https://pay.api.yabetoopay.com/v1/account/{accountId}/webhooks       # Production

Authentication

Use your secret key in the Authorization header:
Authorization: Bearer YOUR_SECRET_KEY

Path Parameters

ParameterTypeDescription
accountIdstringYour account ID

Query Parameters

ParameterTypeDescription
limitintegerNumber of items per page (default: 10, max: 100)
pageintegerPage number (starts at 1)
statusstringFilter by status

Example Request

curl "https://pay.sandbox.yabetoopay.com/v1/account/YOUR_ACCOUNT_ID/webhooks?limit=10&page=1" \
  -H "Authorization: Bearer YOUR_SECRET_KEY"

Response

200 OK

{
  "data": [
    {
      "id": "whk_123456789",
      "object": "webhook",
      "url": "https://example.com/webhooks",
      "description": "Production webhook",
      "status": "active",
      "enabled_events": [
        "intent.completed",
        "disbursement.completed"
      ],
      "metadata": {
        "environment": "production"
      },
      "created_at": "2023-05-12T10:12:32Z",
      "last_error": null,
      "stats": {
        "successful_deliveries": 150,
        "failed_deliveries": 2,
        "average_response_time": 245
      }
    }
  ],
  "meta": {
    "total": 25,
    "page": 1,
    "limit": 10,
    "pages": 3
  }
}

Available Status Filters

StatusDescription
activeActive webhooks
disabledManually disabled webhooks
failedWebhooks disabled after failures

401 Unauthorized

{
  "message": "Unauthorized"
}