POST
/
run
/
main
/
messages

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
project_id
string
required

The 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
deprecated

Flag of the task: success or failure.

language
object

Language detected in the messages.

sentiment
object

Sentiment detected in the messages.