Skip to main content
Credal | Documentation
current

Search documentation

Type to search this documentation.

Create Conversation

POST/v0/copilots/createConversationCreate Conversation

OPTIONAL. Create a new conversation with the Agent. The conversation ID can be used in the sendMessage endpoint. The sendMessage endpoint automatically creates new conversations upon first request, but calling this endpoint can simplify certain use cases where it is helpful for the application to have the conversation ID before the first message is sent.

Request body

application/json
object
agentIdstring · uuidrequired

Credal-generated Agent ID to specify which agent to route the request to.

userEmailstringrequired

End-user for the conversation.

Example request
{
  "agentId": "00000000-0000-0000-0000-000000000000",
  "userEmail": "string"
}

Responses

200Response with status 200application/json
objectcopilots_CreateConversationResponse

CreateConversationResponse

conversationIdstring · uuidrequired
Example response
{
  "conversationId": "00000000-0000-0000-0000-000000000000"
}
Documentation menu