Webhooks and events
POST/v1/webhook-endpoints

Create webhook endpoint

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/webhook-endpoints" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"url":"https://example.com/resource"}'

Registers an HTTPS endpoint for the chosen event types (or * for all). The URL is checked against private and unreachable addresses (SSRF_BLOCKED). Requires developer:manage. The signing secret is shown once.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/webhook-endpointsBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Body

application/json · required. Fields are listed under Request body below.

Requires permissiondeveloper:manage
Held by owner, admin, developer, merchant_owner, merchant_developer, operator. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
url*Url

URL of a paid resource. Use it for a merchant that is not in the Catalog; Abazi reads its 402 response.

Length8 <= length <= 2000
event_types?array<string>

Event types the endpoint receives, or * for all.

description?Description
Lengthlength <= 200
Default""

Response Body

Success.

application/json
  1. response
endpoint*
secret*Secret

Secret shown once. Store it; Abazi keeps only a hash.

[key: string]?any