---
title: "Send a message to a UMO"
method: POST
path: "/api/v1/im/messages"
tags: ["IM"]
---

# Send a message to a UMO

`POST /api/v1/im/messages`

**Required scope:** `im`

## Request body

- ImMessageRequest
  - `umo` string, required
  - `message` union, required
    - string
    - MessagePart[]
      - `type` 'text' | 'plain' | 'image' | 'file' | 'audio' | 'record' | 'video' | 'reply', required
      - `text` string
      - `attachment_id` string
      - `url` string
      - `filename` string
      - `stored_filename` string
      - `mime_type` string

## Response `200`

Standard AstrBot success response

- SuccessEnvelope
  - `status` 'ok', required
  - `message` string
  - `data` unknown, required

---

[API](https://skmtc.net/astrbotdevs/apis/astrbot-openapi-v1.md) · [All operations](https://skmtc.net/astrbotdevs/apis/astrbot-openapi-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astrbotdevs/astrbot-openapi-v1/revisions/4463c5ffdb9c/schema)
