Skip to main content

Create a New Conversation

POST 

/api/conversations

This endpoint creates a new conversation in a specified workspace. The request must include a valid API key and user ID.

Request

Header Parameters

    x-api-key stringrequired

    API key to authorize the request.

    userId stringrequired

    ID of the user making the request.

Body

required

    workspaceId stringrequired

    ID of the workspace where the conversation is created.

    conversationName string

    Name of the conversation. If not provided, a default name will be assigned.

    agentId string

    ID of the agent associated with the conversation.

Responses

Successfully created a new conversation.

Schema

    conversationId string

    The ID of the newly created conversation.

    conversation object

    The details of the created conversation.

Loading...