Skip to navigation

Supports:

  • ✅ Model sync destination

Connection

Configuration

NameTypeDescriptionRequired
auth_methodstringAuthentication method

Accepted values: polytomic_secret ↓, basic ↓, header ↓, query ↓, oauth_client_credentials ↓
required
headersarrayAdditional headersoptional
urlstringWebhook URLrequired

auth_method

When auth_method is polytomic_secret:

Read-only propertyTypeDescription
secretstringSecret

When auth_method is basic:

NameTypeDescriptionRequired
basicobjectBasic authenticationrequired
{
"name": "Webhook connection",
"type": "webhook",
"configuration": {
"auth_method": "basic",
"basic": {
"password": "secret",
"username": "user@example.com"
},
"headers": [
{
"name": "foo",
"value": "bar"
}
],
"url": "https://example.com/webhook"
}
}

When auth_method is header:

NameTypeDescriptionRequired
headerobjectHeaderrequired
{
"name": "Webhook connection",
"type": "webhook",
"configuration": {
"auth_method": "header",
"header": {
"name": "foo",
"value": "bar"
},
"headers": [
{
"name": "foo",
"value": "bar"
}
],
"url": "https://example.com/webhook"
}
}

When auth_method is query:

NameTypeDescriptionRequired
queryarrayQuery string authentication parametersrequired
{
"name": "Webhook connection",
"type": "webhook",
"configuration": {
"auth_method": "query",
"headers": [
{
"name": "foo",
"value": "bar"
}
],
"query": [
{
"name": "foo",
"value": "bar"
}
],
"url": "https://example.com/webhook"
}
}

When auth_method is oauth_client_credentials:

NameTypeDescriptionRequired
oauthobjectOAuth client credentialsrequired
{
"name": "Webhook connection",
"type": "webhook",
"configuration": {
"auth_method": "oauth_client_credentials",
"headers": [
{
"name": "foo",
"value": "bar"
}
],
"oauth": {
"auth_style": 0,
"client_id": "client_id",
"client_secret": "client_secret",
"extra_form_data": [
{
"name": "foo",
"value": "bar"
}
],
"scopes": [],
"token_endpoint": "https://example.com/oauth/token"
},
"url": "https://example.com/webhook"
}
}

Example

{
"name": "Webhook connection",
"type": "webhook",
"configuration": {
"auth_method": "polytomic_secret",
"headers": [
{
"name": "foo",
"value": "bar"
}
],
"url": "https://example.com/webhook"
}
}

Model Sync

Target

Webhook connections may be used as the destination in a model sync.

All targets

Configuration
NameTypeDescriptionRequired
batch_sizeintegerBatch size per requestoptional
metadataarrayMetadataoptional
record_requestsbooleanCapture webhook requests and responsesoptional
Example
{
...
"target": {
"configuration": {
"batch_size": 100,
"metadata": [],
"record_requests": true
}
}
}