For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set Hook Parameters

Endpoint

POST/v2/hook/set

Link

Configures webhook settings for receiving real-time notifications about system events. This endpoint allows you to enable/disable webhooks, set the receiving URL, and specify which event types to subscribe to.


Request

Headers

Key
Value
Required

Content-Type

application/json

Yes

Accept

application/json

Yes

Request Body (JSON)

Field
Type
Description
Required
Example

parameters

object

Webhook configuration object.

Yes

-

enabled

boolean

Enable webhook feature.

Yes

true

hookUrl

string

URL for webhook notifications. Must be HTTPS in production.

Yes

"https://api.yourdomain.com/webhooks"

jwtSecret

string

Secret for JWT verification of webhook requests.

Yes

"your-secret-key-123"

hookCustomer

boolean

Subscribe to customer events.

Yes

true

hookOperation

boolean

Subscribe to operation events.

Yes

true

hookDepositAccount

boolean

Subscribe to deposit account events.

Yes

false

hookCounterparty

boolean

Subscribe to counterparty events.

Yes

true

Example Request Body:

json


Response (200 OK)

Returns the updated webhook configuration confirming the changes.

Response Fields

Field
Type
Description
Example

enabled

boolean

Webhook feature status.

true

hookUrl

string

Webhook notification URL.

"https://api.yourcompany.com/webhooks/payments"

jwtSecret

string

JWT verification secret.

"sec_5f3d8e2a789bcd1234567890"

hookCustomer

boolean

Customer events subscription.

true

hookOperation

boolean

Operation events subscription.

true

hookDepositAccount

boolean

Deposit account events subscription.

false

hookCounterparty

boolean

Counterparty events subscription.

true

Example Response:

json


Examples

Request

bash

Disable Webhooks

bash


Error Responses

  1. Invalid URL:

    json

  2. Missing Required Field:

    json

  3. URL Not Reachable:

    json


Notes

  • Security: Use HTTPS for hookUrl in production environments.

  • JWT Verification: Incoming webhooks will include a JWT token in the Authorization header that should be verified using your jwtSecret.

  • Event Types:

    • Customer: Creation, updates, status changes

    • Operation: Payments, transfers, transactions

    • Deposit Account: Balance changes, account updates

    • Counterparty: Bank details changes

  • Testing: After configuration, test webhooks using the test endpoint (if available).

Last updated