Layerswap API
API Explorer
  • Overview
  • Partner Setup
  • UI Integration
    • Layerswap-hosted page
    • Embedded form
    • Customization
      • Interactive Builder
  • API Integration
    • Quickstart
    • API Reference
    • Swap lifecycle
    • Webhooks
    • DEPRECATED - V1 API Reference
      • Get Available Networks
      • Get Available Routes
      • Get Swap Rate
      • Create Fast Swap
      • Create Swap
      • Prepare Source Transaction
      • Get Swap
  • Mixed Integration
    • Swap Link
  • Data
    • Object types
    • Supported Platforms
      • Supported Networks
      • Supported Fiat Providers
      • Supported CEXes
Powered by GitBook

Layerswap

  • App
  • Explorer
  • Twitter
  • Discord

© 2023 Bransfer, Inc. All rights reserved.

On this page
  • Setup
  • Verification

Was this helpful?

Export as PDF
  1. API Integration

Webhooks

Last updated 1 year ago

Was this helpful?

Setup

Layerswap provides a webhook configuration functionality so that Partners can receive notifications on any swap status change. Webhooks can be set up per partner application. In order to configure a webhook the following steps must be performed:

  • Login to

  • Select the organization/app

  • From left pane select Webhooks, then provide the URL where the webhook should be received and click Create Webhook

  • The newly created webhook should appear under the app

  • Copy the webhook secret for future verification

Verification

Layerswaps uses Svix for Webhook Management. In order to verify an incoming webhook from Svix please refer to . Use the webhook secret from the dashboard as a Svix secret.

For the structure of the swap notification, please refer to the . Please note that the complete information webhook will be sent only when the swap status is completed. For other statuses, notification will include a subset of this information (whatever is available at that time).

https://docs.svix.com/receiving/verifying-payloads/how
Swap Data object
https://layerswap.io/dashboard
Webhook configuraiton