Skip to main content
POST
/
developers
/
webhooks
Create webhook endpoint
curl --request POST \
  --url https://api.txcloud.io/v1/developers/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "description": "<string>"
}
'
{
  "id": "<string>",
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "secret": "<string>",
  "status": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string<uri>
required
events
string[]
required
description
string

Response

201 - application/json

Webhook created

id
string
url
string
events
string[]
secret
string
status
string
created_at
string<date-time>