Menu
Get Webhook Request
Get a Webhook Request
GET
/hubs/{hubId}/webhooks/{webhookId}/requests/{requestId}Use it in a workflow
- Add a step and choose the Amplience connector.
- Pick the Get Webhook Request action (under Webhooks).
- Fill in the fields below, then reference the result from later steps as
{{getWebhookRequest.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getWebhookRequest.response.data.<field>}}.
{
"id": "00112233445566778899aabb",
"eventId": "00112233445566778899aabb",
"eventName": [
"dynamic-content.snapshot.published"
],
"requestState": "SUCCESS",
"attempts": 1,
"request": {
"url": "string",
"headers": {},
"customHeaders": [
{
"key": "X-Custom-Header",
"value": "123",
"secret": false
}
],
"body": "string"
},
"invocations": [
{
"invocationTimestamp": "2019-01-01T00:00:00.000Z",
"request": {
"url": "http://example.com",
"headers": {
"X-Amplience-Hmac-Sha256": "1VVTWEZPxOGIkTL9b5V6rEjiiP46N2yHg/pYpLmcaKA=",
"User-Agent": "Amplience-Webhook/0.1",
"Content-Length": 171,
"Content-Type": "application/json"
},
"body": "{\"sequenceId\":1,\"eventId\":\"8e5b697d-7c32-4e30-8ddd-2601808131d9\",\"eventName\":\"dynamic-content.edition.scheduled\",\"system\":\"dynamic-content\",\"resource\":\"0001\",\"payload\":{}}",
"response": {
"statusCode": 200,
"headers": [
"Connection: close",
"Server: gunicorn/19.8.1",
"Date: Tue, 15 May 2018 12:07:13 GMT",
"Content-Type: application/json",
"Content-Length: 3",
"Access-Control-Allow-Origin: *",
"Access-Control-Allow-Credentials: true",
"Via: 1.1 vegur"
],
"body": "..."
}
}
}
],
"evaluatedFilters": {
"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"
}
]
}
],
"results": [
{
"status": "UNMATCHED"
},
{
"status": "MATCHED",
"index": 1
},
{
"status": "IGNORED"
}
]
},
"customPayload": {
"type": "text/x-handlebars-template",
"value": "{{#withDeliveryContentItem contentItemId=payload.rootContentItem.id account=\"account-name\" stagingEnvironment=\"staging-environment-url\"}} ... {/withDeliveryContentItem}}",
"error": {
"message": "string"
}
},
"createdTimestamp": "2019-01-01T00:00:00.000Z",
"scheduledTimestamp": "2019-01-01T00:00:00.000Z",
"_links": {
"self": {
"href": "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/webhooks/00112233445566778899aabb/requests/00112233445566778899aabb"
},
"request": null,
"resend": null,
"preview": null
}
}
Need more? See the Amplience guide for connection setup and behaviour shared by every action.
Was this page helpful?