Webhook URL
Two options exist for obtaining resolutions
from the SparkAI service.
- Create the initial
engagement
request with a webhook URL. The SparkAI service will attempt toPOST
results to the provided URL on any change ofengagement
status. - A user can poll the
engagement
API endpoint for status andresolution
. This option is always available, even if a webhook URL option was provided.
The webhook URL should be:
- Well-formed
- Able to service HTTP
POST
requests - Capable of accepting JSON content
- Able to respond with a 200 (OK) status code on receipt
SparkAI will attempt the URL 5 times, at 30 second intervals unless a successful request has been made.