---
title: "Create message"
method: POST
path: "/api/v4/messaging/conversations/{conversation_id}/messages"
tags: ["Messaging"]
---

# Create message

`POST /api/v4/messaging/conversations/{conversation_id}/messages`

Send a message in an existing conversation.

## Path parameters

- `conversation_id` string, uuid, required

## Request body

- object
  - `content_type` 'audio' | 'document' | 'image' | 'text' | 'video' | 'whatsapp_template', required — The message content type.
  - `content_data` union, required — Content payload. Structure varies by content type.
    - object
      - `body` string, required
    - object
      - `url` string, uri, required
      - `filename` string
    - object
      - `whatsapp_template_id` string, uuid, required — The unique identifier of the WhatsApp template.
      - `placeholders` object — Placeholder values for the WhatsApp template, indexed by position.

## Response `201`

Created

- object
  - `message` Message
    - `id` string, uuid — The unique identifier of the message.
    - `conversation` ConversationShort
      - `id` string, uuid — The unique identifier of the conversation.
    - `direction` 'inbound' | 'outbound' | 'whisper' — Direction of the message.
    - `user` UserShort
      - `id` integer — The unique identifier of the user.
      - `name` string — The name of the user.
      - `email` string, email — The email address of the user.
    - `target_user` UserShort
      - `id` integer — The unique identifier of the user.
      - `name` string — The name of the user.
      - `email` string, email — The email address of the user.
    - `content_type` 'audio' | 'contact' | 'document' | 'image' | 'location' | 'text' | 'video' | 'voice' — The message content type.
    - `content_data` union — Content payload. Structure varies by content type.
      - MessageContentDataText — Payload for text messages.
        - `text` string — Text content of the message.
      - MessageContentDataMedia — Payload for audio, document, image, video, or voice messages.
        - `url` string, uri — Media URL.
        - `filename` string, nullable — Name of the media file when applicable.
        - `size` integer, nullable — Size of the media file in bytes.
        - `caption` string, nullable — Optional caption for the media file.
    - `status` 'initial' | 'accepted' | 'uploading' | 'waiting' | 'ready' | 'sent' | 'delivered' | 'seen' | 'whispered' | 'failed' — Status of the message.
    - `status_reason` string, nullable — Additional information when the message status is failed.
    - `created_at` string, date-time — Date and time the message was created.
    - `updated_at` string, date-time — Date and time the message was last updated.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `422` — Unprocessable Entity
- `429` — Too many requests

---

[API](https://skmtc.net/voiso/apis/voiso-api.md) · [All operations](https://skmtc.net/voiso/apis/voiso-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voiso/voiso-api/versions/3d34cfd8f064/schema)
