---
updatedAt: 2025-02-27T21:00:55.000Z
agentTools:
  projectIndex: https://developers.atlas.so/llms.txt
---

# Create conversation

Creates conversation

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Atlas API",
    "description": "Atlas API Documentation",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.atlas.so"
    }
  ],
  "paths": {
    "/v1/conversations": {
      "post": {
        "tags": [
          "Conversations"
        ],
        "summary": "Create conversation",
        "description": "Creates conversation",
        "operationId": "create_conversation_v1_conversations_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalCreateConversation"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalConversation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AttachmentFileContent": {
        "properties": {
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "content": {
            "type": "string",
            "format": "binary",
            "title": "Content"
          },
          "contentType": {
            "type": "string",
            "title": "Contenttype"
          }
        },
        "type": "object",
        "required": [
          "filename",
          "content",
          "contentType"
        ],
        "title": "AttachmentFileContent"
      },
      "CSATResponse": {
        "properties": {
          "score": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score",
            "default": ""
          },
          "comment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comment",
            "default": ""
          }
        },
        "type": "object",
        "title": "CSATResponse"
      },
      "ConversationPriority": {
        "type": "integer",
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "title": "ConversationPriority"
      },
      "ConversationStatistics": {
        "properties": {
          "firstResponseTime": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Firstresponsetime"
          },
          "avgResponseTime": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avgresponsetime"
          },
          "totalResolutionTime": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Totalresolutiontime"
          }
        },
        "type": "object",
        "title": "ConversationStatistics"
      },
      "ConversationStatus": {
        "type": "string",
        "enum": [
          "OPEN",
          "SNOOZED",
          "CLOSED",
          "PENDING"
        ],
        "title": "ConversationStatus"
      },
      "CustomerDefaultSenders": {
        "properties": {
          "sms": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sms"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          }
        },
        "type": "object",
        "title": "CustomerDefaultSenders"
      },
      "ExternalConversation": {
        "properties": {
          "customerId": {
            "type": "string",
            "format": "uuid",
            "title": "Customerid"
          },
          "customer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExternalCustomer"
              },
              {
                "type": "null"
              }
            ]
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "title": "Startedat"
          },
          "lastMessage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExternalMessage"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "title": "Createdat"
          },
          "closedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closedat"
          },
          "closedBy": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closedby"
          },
          "assignedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignedat"
          },
          "assignedBy": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignedby"
          },
          "browser": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Browser"
          },
          "operatingSystem": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Operatingsystem"
          },
          "assignedAgent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExternalUser"
              },
              {
                "type": "null"
              }
            ]
          },
          "number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Number"
          },
          "csat": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CSATResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "statistics": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConversationStatistics"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedBy": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedby"
          },
          "assignedAgentId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignedagentid"
          },
          "subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConversationStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "priority": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExternalConversationPriority"
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "customFields": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Customfields"
          },
          "snoozedUntil": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Snoozeduntil"
          },
          "assignedTeamId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignedteamid"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "startedChannel": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Startedchannel",
            "default": ""
          },
          "startedSubChannel": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Startedsubchannel"
          }
        },
        "type": "object",
        "required": [
          "customerId",
          "startedAt",
          "createdAt",
          "id"
        ],
        "title": "ExternalConversation"
      },
      "ExternalConversationPriority": {
        "type": "string",
        "enum": [
          "NO_PRIORITY",
          "LOW",
          "MEDIUM",
          "HIGH",
          "URGENT"
        ],
        "title": "ExternalConversationPriority"
      },
      "ExternalCreateConversation": {
        "properties": {
          "customerId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "string"
              }
            ],
            "title": "Customerid"
          },
          "startedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Startedat",
            "default": 1740643367
          },
          "subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/ExternalCreateMessage"
            },
            "type": "array",
            "title": "Messages"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConversationStatus"
              },
              {
                "type": "null"
              }
            ],
            "default": "OPEN"
          },
          "priority": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExternalConversationPriority"
              },
              {
                "$ref": "#/components/schemas/ConversationPriority"
              },
              {
                "type": "null"
              }
            ],
            "title": "Priority"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "customFields": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Customfields"
          },
          "assignedAgentId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignedagentid"
          },
          "assignedTeamId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignedteamid"
          }
        },
        "type": "object",
        "required": [
          "customerId",
          "messages"
        ],
        "title": "ExternalCreateConversation"
      },
      "ExternalCreateMessage": {
        "properties": {
          "text": {
            "type": "string",
            "title": "Text"
          },
          "senderId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "string"
              }
            ],
            "title": "Senderid"
          },
          "side": {
            "type": "string",
            "title": "Side"
          },
          "type": {
            "type": "string",
            "title": "Type",
            "default": "EXTERNAL"
          },
          "channel": {
            "type": "string",
            "title": "Channel",
            "default": "CHAT"
          },
          "cc": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cc",
            "default": []
          },
          "attachments": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/AttachmentFileContent"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Attachments"
          }
        },
        "type": "object",
        "required": [
          "text",
          "senderId",
          "side"
        ],
        "title": "ExternalCreateMessage"
      },
      "ExternalCustomer": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "companyId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Companyid"
          },
          "firstName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Firstname"
          },
          "lastName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lastname"
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "phoneNumber": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Phonenumber"
          },
          "externalUserId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Externaluserid"
          },
          "customFields": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Customfields"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "title": "Createdat"
          },
          "defaultSenders": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomerDefaultSenders"
              },
              {
                "type": "null"
              }
            ]
          },
          "accountId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Accountid"
          },
          "account": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/web__company__schemas__ExternalAccount"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "createdAt"
        ],
        "title": "ExternalCustomer"
      },
      "ExternalMessage": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "side": {
            "type": "string",
            "title": "Side"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "sentAt": {
            "type": "string",
            "format": "date-time",
            "title": "Sentat"
          },
          "agent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExternalUser"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExternalCustomer"
              },
              {
                "type": "null"
              }
            ]
          },
          "text": {
            "type": "string",
            "title": "Text"
          },
          "channel": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Channel",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "id",
          "side",
          "type",
          "sentAt",
          "text"
        ],
        "title": "ExternalMessage"
      },
      "ExternalUser": {
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "firstName": {
            "type": "string",
            "title": "Firstname"
          },
          "lastName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lastname"
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "profileUrl": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 65536,
                "minLength": 1,
                "format": "uri",
                "examples": [
                  "http://www.example.com/"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Profileurl"
          },
          "accessTypes": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/UserAccessType"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Accesstypes"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          }
        },
        "type": "object",
        "required": [
          "firstName",
          "id"
        ],
        "title": "ExternalUser"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "UserAccessType": {
        "type": "string",
        "enum": [
          "ADMIN",
          "MEMBER",
          "LIGHT",
          "CONTRACTOR",
          "VIEWER"
        ],
        "title": "UserAccessType"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "web__company__schemas__ExternalAccount": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Website"
          },
          "externalId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Externalid"
          },
          "customFields": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Customfields"
          }
        },
        "type": "object",
        "title": "ExternalAccount"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
```