> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superskope.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Messages, attachments and quoted replies

> Use exact chat IDs and one stable key for each logical send.

Read selected conversation history through `GET /api/v1/chats/{chatId}/messages`. History reads do not mark read or download media. URL-encode opaque identifiers.

Send through `POST /api/v1/chats/{chatId}/messages` with `messages:write`, selected-chat access and a stable `Idempotency-Key` (8–128 letters, digits, underscores or hyphens).

```bash theme={null}
curl "$SUPERSKOPE_URL/api/v1/chats/120000000000%40g.us/messages" \
  -X POST \
  -H "Authorization: Bearer $SUPERSKOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: dispatch_20261126_001" \
  --data '{"type":"text","text":"Your request is ready."}'
```

The chat ID and message are invented examples. Select an actual authorised conversation in your own backend.

## Quoted replies

Set `replyTo` to an available message ID in the same conversation. `reply_to` is an internal transport field and is not the public request property.

```json theme={null}
{"type":"text","text":"Confirmed, thank you.","replyTo":"<same-chat-message-id>"}
```

## Attachments

The API accepts the supported file formats documented in the [Inbox guide](https://docs.superskope.com/guides/inbox.md), with 5 MiB decoded outgoing bytes and 1,000-character captions. Text allows 4,000 characters. File messages use `type` (`pdf`, `image`, `document`, `audio` or `video`), base64 `data` and `filename`; `caption` and `replyTo` are optional.

```json theme={null}
{"type":"pdf","filename":"summary.pdf","data":"<base64-file-bytes>","caption":"Your summary","replyTo":"<same-chat-message-id>"}
```

Replace the placeholders with validated bytes and an available same-chat message, or omit `replyTo`. Use the current `Message` request schema in the API reference for validation; do not use private remote media URLs as public attachments.

Retrieve private incoming bytes with `GET /api/v1/chats/{chatId}/messages/{messageId}/media`. The gateway enforces exact phone/chat/message identity, 32 MiB maximum, Range support and view-once denial. Request media only when needed; keep private downloads out of public storage.

A successful send means engine acceptance. Receipts are separate and may be unavailable. Save and inspect uncertain [request states](https://docs.superskope.com/developers/reliability.md) before considering another action.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.