The request will return a 200 with the jobId, metadata, result, status, and timeElapsed. The metadata includes the request parameters used to generate the transforms.
Example
{"jobId":"093ae7d8-1668-4c76-9f31-772c50bcb172","metadata": {"restaurant_id":"d9504261cc66", "review": "This place was really good. Highly recommend it. We had the steak, chicken and prawns. All super good. You definitely come out full."
},"result": {"sentiment":"POSITIVE","translated_sentiment":"POSITIVO" },"status":"COMPLETE","timeElapsed":7885}
{"error":"Invalid request"}
Webhook response
The webhook sends back a JSON response when the transforms for each API request are done.
The request will return a 200 with the jobId, metadata, result, status, and timeElapsed. The metadata includes the request parameters used to generate the transforms.
Example
{"jobId":"093ae7d8-1668-4c76-9f31-772c50bcb172","metadata": {"restaurant_id":"d9504261cc66", "review": "This place was really good. Highly recommend it. We had the steak, chicken and prawns. All super good. You definitely come out full."
},"result": {"sentiment":"POSITIVE","translated_sentiment":"POSITIVO" },"status":"COMPLETE","timeElapsed":7885}