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

Process a conversation of messages.

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

The results of a pipeline execution. Contains every category of analytics.

Each category of analytics is a dict linking the message_id or task_id to the analytics object. This is useful for batching and unordered processing.

events
object

Events detected in the messages

flag
object | null

Flag of the task: success or failure.

language
object

Language detected in the messages.

sentiment
object

Sentiment detected in the messages.