---
title: "Sends a link with auto-generated preview"
method: POST
path: "/api/messages/sendLinkWithAutoPreview"
tags: ["messages"]
---

# Sends a link with auto-generated preview

`POST /api/messages/sendLinkWithAutoPreview`

Sends a link with auto-generated preview

## Request body

- object
  - `to` string, required — Recipient chat ID
  - `url` string, uri, required — Link URL
  - `text` string — Message content
  - `thumbnail` string — Base64 thumbnail override
  - `quotedMsgId` string — Message ID
  - `customSize` object — Custom thumbnail size
    - `height` number, required
    - `width` number, required

## Response `200`

Successful response

- union
  - object
    - `_serialized` string, required
  - boolean

## Other responses

- `400` — Validation error
- `500` — Internal server error

---

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