Create Conversation

POST

OPTIONAL. Create a new conversation with the Copilot. 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

This endpoint expects an object.
agentIdUUIDRequired

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

userEmailstringRequired

End-user for the conversation.

Response

This endpoint returns an object.
conversationIdUUID