---
title: "Add a historical message to a conversation"
method: POST
path: "/v1/conversations/{csid}/messages/historical"
tags: ["Message", "Conversations"]
deprecated: true
---

# Add a historical message to a conversation

`POST /v1/conversations/{csid}/messages/historical`

> **Deprecated.**

## Path parameters

- `csid` integer, required

## Request body

- CreateHistoricalMessageInput — Input object for creating historical messages. Required attributes depends on the channel chosen.
  - `channel` 'widget_chat' | 'phone' | 'voice_mail' | 'email' | 'contact_form' | 'callback' | 'facebook_messenger' — The channel a conversation can be conducted on.
  - `direction` 'outbound' | 'inbound' | 'internal' — The direction a conversation can be
  - `from_email` string — A regular email.
  - `to_email` string — A regular email.
  - `text` string
  - `author_id` string
  - `attachments` AttachmentInput[] — A list of attachments.
    - `url` string, required — A valid attachment url

## Response `200`

The message was createde

- object
  - `data` Message, required
    - `id` string, required
    - `created_at` string, required
    - `author_id` string, required
    - `channel` 'widget_chat' | 'phone' | 'voice_mail' | 'email' | 'contact_form' | 'callback' | 'facebook_messenger', required — The channel a conversation can be conducted on.
    - `direction` 'widget_chat' | 'phone' | 'voice_mail' | 'email' | 'contact_form' | 'callback' | 'facebook_messenger' — The channel a conversation can be conducted on.
    - `attributes` MessageAttributes
      - `text` string
      - `to_emails` string
      - `cc_email` string
      - `from_email` string
      - `inline_images` string
      - `attachments` string
      - `direction` string
      - `a_phone_number` string
      - `b_phone_number` string
      - `is_automated_message` string
      - `is_auto_reply` string

---

[API](https://skmtc.dev/dixa/apis/integrations-api-deprecated.md) · [All operations](https://skmtc.dev/dixa/apis/integrations-api-deprecated/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dixa/integrations-api-deprecated/revisions/bb4e8372fb22/schema)
