Swipelux
Webhook API

Setup webhook configuration

Setup the webhook configuration

PATCH
/v1/webhooks

Authorization

X-API-Key<token>

In: header

Request Body

application/jsonOptional
urlRequiredstring

The URL of the webhook

Response Body

The webhook configuration was created or updated successfully

idRequiredstring

The unique identifier for the webhook

urlRequiredstring

The URL of the webhook

secretKeyRequiredstring

The secret key for the webhook

createdAtRequiredstring

The date and time the webhook was created

updatedAtRequiredstring

The date and time the webhook was last updated

export interface Response {
  /**
   * The unique identifier for the webhook
   */
  id: string;
  /**
   * The URL of the webhook
   */
  url: string;
  /**
   * The secret key for the webhook
   */
  secretKey: string;
  /**
   * The date and time the webhook was created
   */
  createdAt: string;
  /**
   * The date and time the webhook was last updated
   */
  updatedAt: string;
}
 
curl -X PATCH "https://wallet.swipelux.com/v1/webhooks" \
  -H "X-API-Key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "string"
  }'
{
  "id": "string",
  "url": "string",
  "secretKey": "string",
  "createdAt": "string",
  "updatedAt": "string"
}