/v0/copilots/sendMessageSend 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.
Request body
application/json
agentIdstring · uuidrequiredCredal-generated Agent ID to specify which agent to route the request to.
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.
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.
userEmailstringrequiredThe user profile you want to use when sending the message.
{
"agentId": "00000000-0000-0000-0000-000000000000",
"conversationId": "00000000-0000-0000-0000-000000000000",
"inputVariables": [
{
"ids": [
"00000000-0000-0000-0000-000000000000"
],
"name": "string"
}
],
"message": "string",
"userEmail": "string"
}Responses
SendAgentMessageResponse
sendChatResultvaluerequiredShow child attributes
oneOf · 2 options
Returned when there is a reply fetched from the agent.
conversationIdstring · uuidrequiredinserted_audit_logobjectrequiredShow child attributes
idstring · uuidrequiredmessageIdstring · uuidrequiredreferencedSourcesarray of objectrequiredShow child attributes
Show array items
externalResourceIdobjectrequiredShow child attributes
externalResourceIdstringrequiredresourceTypestringrequiredidstringrequirednamestringrequiredurlstringresponseobjectrequiredShow child attributes
dataChunkstringrequiredmessagestringrequiredstructuredOutputvalueAny type
sourcesInDataContextarray of objectrequiredShow child attributes
typestringrequiredDiscriminator value: ai_response_result
warningsarray of stringrequiredShow child attributes
webSearchResultsarray of objectrequiredShow child attributes
Show array items
contentsstringrequiredtitlestringrequiredurlstringrequiredReturned when Credal detects possible infosec violations and blocks the message.
blocksarray of stringrequiredShow child attributes
conversationIdstring · uuidrequiredtypestringrequiredDiscriminator value: blocked_result
warningsarray of stringrequiredShow child attributes
{
"sendChatResult": {
"blocks": [
"string"
],
"conversationId": "00000000-0000-0000-0000-000000000000",
"inserted_audit_log": {
"id": "00000000-0000-0000-0000-000000000000"
},
"type": "blocked_result",
"warnings": [
"string"
]
}
}