Webhooks

Webhooks allow your system to receive real-time notifications from Guru Pay when specific events occur (transaction processing completed, new transaction is created, etc.). You can manage your webhook configuration using the following endpoints.

circle-exclamation

Create webhook configuration

post
/api/v1/webhooks

Creates a new webhook configuration for the authenticated user.

Authorizations
AuthorizationstringRequired

Authentication using a Bearer token.

Body

Data required to create a new webhook configuration.

urlstring · url · max: 255Required

The target URL endpoint for the webhook messages.

Example: https://example.com/my-webhook-listener
tokenstring · password · min: 16 · max: 100Required

A secret token sent with webhook messages for verification (e.g., in an 'Authorization' or custom header). Min 16, Max 100 characters.

Example: whsec_aBcDeFgHiJkLmNoPqRsTuV
namestring · max: 255 · nullableOptional

A user-friendly name for the webhook configuration.

Example: Production Transaction Webhook
descriptionstring · max: 500 · nullableOptional

An optional description for the webhook configuration.

Example: Notifies the main system about new transactions.
Responses
chevron-right
201

Webhook configuration created successfully. Returns the created resource.

application/json
post
/api/v1/webhooks

Show current webhook configuration

get
/api/v1/webhooks

Shows the webhook configuration associated with the authenticated account/user.

Authorizations
AuthorizationstringRequired

Authentication using a Bearer token.

Responses
get
/api/v1/webhooks

Update current webhook configuration

put
/api/v1/webhooks

Updates the webhook configuration associated with the authenticated user.

Authorizations
AuthorizationstringRequired

Authentication using a Bearer token.

Body

Data required to update an existing webhook configuration. All fields are typically required for PUT/replace semantics, but PATCH might allow partial updates (adjust schema 'required' if using PATCH).

is_activebooleanRequired

Whether the webhook subscription should be active.

Example: true
urlstring · url · max: 255Required

The target URL endpoint for the webhook messages.

Example: https://example.com/my-updated-webhook-listener
tokenstring · password · min: 16 · max: 100Required

A secret token sent with webhook messages for verification. Min 16, Max 100 characters.

Example: whsec_xYzAbCdEfGhIjKlMnOpQrS
namestring · max: 255 · nullableOptional

A user-friendly name for the webhook configuration.

Example: Updated Production Webhook
descriptionstring · max: 500 · nullableOptional

An optional description for the webhook configuration.

Example: Updated description for the webhook.
Responses
put
/api/v1/webhooks

Last updated

Was this helpful?