The request will return a 200 with the batchId, requests, status, and timeElapsed.
Example
{"batchId":"093ae7d8-1668-4c76-9f31-772c50bcb172","requests": [ {"jobId":"9877133c-6aa8-4314-99c7-7f0d5cc5e203","metadata": {"restaurant_id":"d9504261cc66", "review": "This place was really good. Highly recommend it. We had the steak, chicken and prawns. All super good. I would love it if they peeled the shrimp but it was flavorful. They changed out the grill once for us as it got sticky. We had the potstickers as appetizers. You definitely come out full but make sure you eat all the beef or they will charge you $40 if you leave any."
},"result": [ {"sentiment":"POSITIVE","translated_sentiment":"POSITIVO" } ],"status":"COMPLETE","timeElapsed":7885 }, {"jobId":"6c4e0f24-9e86-49e2-9d82-db1dad7313cc","metadata": {"restaurant_id":"d9504261cc67","review":"The food was terrible and overpriced. Won’t be coming back." },"result": [ {"sentiment":"NEGATIVE","translated_sentiment":"NEGATIVO" } ],"status":"COMPLETE","timeElapsed":7894 }, ],"status":"COMPLETE","timeElapsed":7894}
{"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 batchId, requests, status, and timeElapsed.
Example
{"batchId":"093ae7d8-1668-4c76-9f31-772c50bcb172","requests": [ {"jobId":"9877133c-6aa8-4314-99c7-7f0d5cc5e203","metadata": {"restaurant_id":"d9504261cc66", "review": "This place was really good. Highly recommend it. We had the steak, chicken and prawns. All super good. I would love it if they peeled the shrimp but it was flavorful. They changed out the grill once for us as it got sticky. We had the potstickers as appetizers. You definitely come out full but make sure you eat all the beef or they will charge you $40 if you leave any."
},"result": [ {"sentiment":"POSITIVE","translated_sentiment":"POSITIVO" } ],"status":"COMPLETE","timeElapsed":7885 }, {"jobId":"6c4e0f24-9e86-49e2-9d82-db1dad7313cc","metadata": {"restaurant_id":"d9504261cc67","review":"The food was terrible and overpriced. Won’t be coming back." },"result": [ {"sentiment":"NEGATIVE","translated_sentiment":"NEGATIVO" } ],"status":"COMPLETE","timeElapsed":7894 }, ],"status":"COMPLETE","timeElapsed":7894}