/v0/copilots/streamMessageStream MessageDeprecated. Use the [v1 Agents API](/api-reference/v-1/api-reference/agents) instead: send a message with POST /v1/agents/sendMessage, then poll for the response with GET /v1/agents/fetchAgentResponse.
Previously, this endpoint streamed a response back as Server-Sent Events.
Request body
application/json
conversationIdstring · uuidCredal-generated conversation ID for sending follow up messages. Conversation ID is returned after initial message. Optional, to be left off for first messages on new conversations.
copilotIdstring · uuidrequiredCredal-generated Agent ID to specify which agent to route the request to.
emailstringrequiredThe user profile you want to use when sending the message.
inputVariablesarray of objectOptional input variables to be used in the message. Map the name of the variable to a list of urls.
Show child attributes
Show array items
idsarray of string · uuidrequiredShow child attributes
namestringrequiredmessagestringrequiredThe message you want to send to your agent.
{
"conversationId": "00000000-0000-0000-0000-000000000000",
"copilotId": "00000000-0000-0000-0000-000000000000",
"email": "string",
"inputVariables": [
{
"ids": [
"00000000-0000-0000-0000-000000000000"
],
"name": "string"
}
],
"message": "string"
}Responses
StreamingChunk
oneOf · 6 options
conversationIdstringrequireddataFiltersobjectShow child attributes
filteredDataSourcesPerCollectionarray of objectrequiredShow child attributes
Show array items
collectionIdstring · uuidrequiredfilteredDataIdsarray of string · uuidrequiredShow child attributes
filtersarray of valuerequiredShow child attributes
Show array items
oneOf · 4 options
fieldstringrequiredfieldTypestringrequiredDiscriminator value: string
operatorstringrequiredvaluestringrequiredfieldstringrequiredfieldTypestringrequiredDiscriminator value: number
operatorstringrequiredvalueintegerrequiredfieldstringrequiredfieldTypestringrequiredDiscriminator value: boolean
operatorstringrequiredvaluebooleanrequiredfieldstringrequiredfieldTypestringrequiredDiscriminator value: datetime
operatorstringrequiredvaluestring · daterequiredsemanticSearchTermsarray of stringrequiredShow child attributes
webSearchTermarray of stringrequiredShow child attributes
eventstringrequiredDiscriminator value: initial
warningsarray of stringrequiredShow child attributes
webSearchResultsarray of objectrequiredShow child attributes
Show array items
contentsstringrequiredtitlestringrequiredurlstringrequiredchunkstringrequiredeventstringrequiredDiscriminator value: data_chunk
eventstringrequiredDiscriminator value: end_of_message
eventstringrequiredDiscriminator value: final_chunk
sourcesarray of objectrequiredShow child attributes
Show array items
externalResourceIdobjectrequiredShow child attributes
externalResourceIdstringrequiredresourceTypestringrequiredidstringrequirednamestringrequiredurlstringblocksarray of stringrequiredShow child attributes
conversationIdstring · uuidrequiredeventstringrequiredDiscriminator value: blocked
warningsarray of stringrequiredShow child attributes
errorobjectrequiredShow child attributes
messagestringrequiredeventstringrequiredDiscriminator value: error_chunk
{
"blocks": [
"string"
],
"conversationId": "00000000-0000-0000-0000-000000000000",
"event": "blocked",
"warnings": [
"string"
]
}