POST
/
v1
/
resource
/
chat-stream

Authorizations

x-api-key
string
headerrequired

Body

application/json
resourceId
string
required

The resource's id.

conversation
object[]
required

An array of messages.

Response

201 - application/json
data
object
required

The partial streaming response data.

type
string
required

The streaming event type. Values can be 'partialResponse' | 'streamEnd' | 'error'.

statusCode
number
required

Error status code. (Only defined when an error occurs while streaming)

message
string
required

Error message. (Only defined when an error occurs while streaming)

error
string
required

Source of the error. (Only defined when an error occurs while streaming)