Skip to content

Webhook Delivery

To receive content from axite you need to add one or more delivery nodes to your pipeline. The delivery node sends a POST request to a webhook URL with the generated text.

You can also sign the webhook payload with a secret to ensure that the payload is coming from AX. The hmacSecret option is used to create a sha256 HMAC signature of the payload, which is then sent in the X-Webhook-Signature header of the request by default. You can verify the signature on your end to ensure the payload is authentic.

Webhook Format

js
POST
'Content-Type': 'application/json'
{
	dataPool: 'products',
	objectUid: 'your object uid',
	language: 'en-US',
	params: ['someSegment'],
	contentId: 'the content id you need to use for impact tracking',
	rawResult: 'Your **awesome** generated text!',
	plainText?: 'Your awesome generated text!',
	html?: 'Your <b>awesome<b> generated text!'
}