Skip to main content
POST
/
webhooks
Create webhook endpoint
curl --request POST \
  --url https://api.allcovered.xyz/v1/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "description": "<string>",
  "filter_types": [
    "payable.created"
  ]
}
'
{
  "data": {
    "id": "<string>",
    "url": "<string>",
    "description": "<string>",
    "filter_types": [
      "<string>"
    ],
    "disabled": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}
Create a new webhook endpoint.

Authorizations

Authorization
string
header
required

API key from StableBase dashboard

Body

application/json
url
string<uri>
required
description
string
filter_types
enum<string>[]
Available options:
payable.created,
payable.approved,
payable.processing,
payable.paid,
payable.failed,
receivable.created,
receivable.sent,
receivable.viewed,
receivable.paid,
receivable.overdue,
treasury.deposit,
treasury.withdrawal

Response

Webhook endpoint created

data
object
required