# Import conversation Import a previously created conversation into Dixa. For inbound messages the author is assumed to be the requester of the conversation (end user), unless the specific channel supports overriding the message author through its attributes. For outbound messages the author is specified using the agentId field. Endpoint: POST /v1/conversations/import Version: v1 Security: ApiKeyAuth ## Request fields (application/json): - `genericChannelName` (string, required) The conversation channel. Currently supported values are 'email' and 'widgetchat'. See payload examples for each case. - `requesterId` (string, required) - `requesterConnectionStatus` (string) values: [Connected, Disconnected] - `direction` (string, required) values: [Inbound, Outbound] - `messages` (array) - `createdAt` (string, required) - `assignment` (object) - `assignment.agentId` (string, required) - `assignment.assignedAt` (string, required) - `externalId` (string) - `closing` (object) Triggers the closing of the conversation - `closing.closedAt` (string, required) - `closing.closedBy` (string, required) - `attributes` (any) A set of dynamic attributes that are specific to the conversation channel, but not limited to it. See channel specific examples for your use case. ## Response 201 fields (application/json): - `data` (object, required) - `data.id` (integer, required) The id of the newly imported conversation - `data.partialErrors` (array) List of errors that do not prevent the conversation from being created - `data.partialErrors.message` (string, required) ## Response 400 fields (application/json): - `message` (string, required) ## Response 404 fields (application/json): - `message` (string, required) ## Response 500 fields (application/json): - `message` (string, required)