Synswi
  1. Accounts
Synswi
  • Accounts
    • Get account setting
      GET
    • Update account setting
      POST
    • Get profile
      GET
    • Create new profile
      POST
    • Register webhook
      POST
  • Devices
    • Get Devices
      GET
  • Dispute
    • Get disputes
      GET
  • Invoice
    • Get invoice by id
      GET
    • Get invoices
      GET
    • Create an invoice
      POST
    • Pay an invoice
      POST
    • Send Invoice
      POST
    • Update an invoice
      POST
  • Payment instruments
    • Create a payment instrument
    • Get payment instruments
      GET
    • Get a payment instrument by id
      GET
  • Transactions
    • Get a transaction by id
      GET
    • Get transactions
      GET
    • Create a transaction
      POST
  • Settlements
    • get settlements
      GET
    • get settlement entries
      GET
  • Identity
    • Register an user
      POST
    • Login
      POST
    • Validate Token
      POST
    • Create an api key
      POST
    • List api keys
      GET
  • Programs
    • Accounts
  • Permission
    • create user roles
    • Verify user roles
  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