Run
Run event detection
Run the analytics pipeline on messages
POST
/
run
/
main
/
messages
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
project_id
string
requiredThe phospho project_id
messages
object[]
Ordered and continuous messages in a single session. Similar to the OpenAI api.
Response
200 - application/json
events
object
Events detected in the messages
flag
object | null
deprecatedFlag of the task: success or failure.
language
object
Language detected in the messages.
sentiment
object
Sentiment detected in the messages.
Was this page helpful?