Synswi
  1. Accounts
Synswi
  • Guides
    • Getting Started With the API
  • API Reference
    • Accounts
      • Onboarding forms
        • Create a Onboarding Form
      • Get account setting
        GET
      • Update account setting
        POST
      • Get profile
        GET
      • Create new profile
        POST
      • Register webhook
        POST
    • Devices
      • Get Devices
    • Dispute
      • Get disputes
    • Payment instruments
      • Create a payment instrument
      • Get payment instruments
      • Get a payment instrument by id
      • Create a Payment Instrument
    • Transactions
      • Get a transaction by id
      • Get transactions
      • Create a transaction
      • Update a transaction
    • Settlements
      • get settlements
      • get settlement entries
    • Identity
      • Register an user
      • Login
      • Validate Token
      • Create an api key
      • List api keys
      • Get Users
    • Programs
      • Accounts
    • Permission
      • Verify user permissions
      • Get Account Users
  1. Accounts

Register webhook

Developing
POST
https://api-dev.synswi.com/accounts/webhooks/register

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
    "url": "https://www.synswi.com",
    "bearerToken": "123",
    "accountId": "44214"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-dev.synswi.com/accounts/webhooks/register' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "https://www.synswi.com",
    "bearerToken": "123",
    "accountId": "44214"
}'

Responses

🟢201Created
application/json
Body

Example
{
    "message": "string",
    "webhook": {
        "accountId": "string",
        "url": "string",
        "status": "string",
        "createdAt": "string"
    }
}
Previous
Create new profile
Next
Get Devices
Built with