Conversations

Create a conversation.

Changed on

Creates a new conversation session for an agent. Returns a session ID that you'll use to send messages. You can optionally provide a name to help identify the conversation later.

Notes: You can also create conversations implicitly by sending a message with a new session ID.

post/api/v1/projects/{projectId}/conversations

Request

Path parameters

projectIdinteger required

The unique identifier of the agent (formerly known as project).

Request body

namestring

Conversation name

Example request

{
  "name": "My conversation"
}

Response

Create a new conversation

status'error' | 'success'

The status of the response

Example response

{
  "status": "success",
  "data": {
    "created_at": "2023-04-30 16:43:53",
    "updated_at": "2023-04-30 16:43:53",
    "deleted_at": "2023-04-30 16:43:53",
    "id": 1,
    "name": "Conversation 1",
    "session_id": "f1b9aaf0-5e4e-11eb-ae93-0242ac130002"
  }
}

Changes

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • info

      added the non-success response with the status

    • warning

      added the new Agent id is required enum value to the / response property for the response status

    • warning

      added the new Agent with id {projectId} not found enum value to the / response property for the response status

    • info

      removed the Project id is required enum value from the / response property for the response status

    • info

      removed the Project with id {projectId} not found enum value from the / response property for the response status