Skip to main content

Search status changed

Webhook 

The request that AlsoAsked sends to your webhook endpoint when the status of a search changes. Your server receives this request. It isn't an endpoint of the AlsoAsked API.

AlsoAsked sends a POST request with a JSON body to the URL of your webhook endpoint. The body has the ID of the webhook event in the event_id field, followed by the fields of the GET /v1.1/search/{searchId} response for the search, at the time when AlsoAsked sends the request. The results are in the tree results format. The headers contain the webhook event type, the environment, and a signature that you use to verify the request.

For details, see Webhooks and Verify webhook signatures.

Request​

Responses​

Your webhook endpoint received the webhook event. AlsoAsked doesn't try again to send the webhook event. Keep the response body smaller than 1 MB: with a larger response body, AlsoAsked counts the attempt as failed. In rare cases, your webhook endpoint can still receive the same webhook event twice, so ignore a webhook event whose event_id field you already processed.