POST
/
core
/
webhooks
Create Webhook
curl --request POST \
  --url https://api.rootfi.dev/v3/core/webhooks \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "webhook": {
    "operations": [
      "CREATE"
    ],
    "name": "webhook 1",
    "type": "CONNECTION_CHANGED",
    "data_models": [
      "ACCOUNTS"
    ],
    "url": "https://webhook.site/eec24873-a381-4694-b684-a1d77d9e0697",
    "headers": {
      "api_key": "fhsjd"
    }
  }
}'
{
  "id": "THBROZzWGuL3b8qEEdBF",
  "headers": {
    "api_key": "fhsjd"
  },
  "operations": [
    "CREATE"
  ],
  "data_models": [
    "ACCOUNTS"
  ],
  "name": "webhook 1",
  "created_at": "2024-04-15T04:52:25.309Z",
  "type": "CONNECTION_CHANGED",
  "url": "https://webhook.site/eec24873-a381-4694-b684-a1d77d9e0697"
}

Authorizations

api_key
string
header
required

Body

application/json

The data of the webhooks endpoint

webhook
object
required

The data of the webhook

Response

The data of the invite link endpoint

id
string
required

The ID of the webhook

Example:

"THBROZzWGuL3b8qEEdBF"

headers
object
required

The headers of the webhook

operations
enum<string>[]
required

The operations of the webhook

data_models
enum<string>[]
required

The data models of the webhook

name
string
required

The name of the webhook

Example:

"webhook 1"

created_at
string
required

The date the webhook was created

Example:

"2024-04-15T04:52:25.309Z"

type
enum<string>
required

The type of the webhook

Available options:
DATA_MODEL_CHANGES,
CONNECTION_CHANGED,
SYNC_COMPLETED
url
string
required

The URL of the webhook

Example:

"https://webhook.site/eec24873-a381-4694-b684-a1d77d9e0697"