Menu
Create Webhook
Create Webhooks
POST
/hubs/{hubId}/webhooksUse it in a workflow
- Add a step and choose the Amplience connector.
- Pick the Create Webhook action (under Webhooks).
- Fill in the fields below, then reference the result from later steps as
{{createWebhook.response.data}}.
Request
Path parameters
Response
Returns 201 with an object. Read it in later steps with {{createWebhook.response.data.<field>}}.
{
"id": "00112233445566778899aabb",
"label": "Snapshot Updated Webhook",
"events": [
"dynamic-content.snapshot.published"
],
"handlers": [
"http://example.com/webhook"
],
"active": true,
"notifications": [
{
"email": "test@example.com"
}
],
"secret": "my-subscription-secret",
"createdDate": "2019-01-01T00:00:00.000Z",
"lastModifiedDate": "2019-01-01T00:00:00.000Z",
"headers": [
{
"key": "X-Additional-Header",
"value": "abc123",
"secret": true
}
],
"filters": [
{
"type": "equal",
"arguments": [
{
"jsonPath": "$.payload.id"
},
{
"value": "abc"
}
]
},
{
"type": "in",
"arguments": [
{
"jsonPath": "$.payload.id"
},
{
"value": [
"abc",
"def"
]
}
]
},
{
"type": "equal",
"arguments": [
{
"jsonPath": "$.payload.not_present"
},
{
"value": "123"
}
]
}
],
"method": "POST"
}
Need more? See the Amplience guide for connection setup and behaviour shared by every action.
Was this page helpful?