---
title: 1004: Invalid message content | API Docs
description: The message content or parts array is invalid.
---

The message content or parts array is invalid. This is an HTTP 400 error indicating the message you are trying to send has an invalid structure.

## Troubleshooting

- Ensure the `parts` array contains valid `text`, `media`, or `link` parts
- A `link` part must be the only part in the message — it cannot be combined with other parts

## Related

- [Sending messages](/guides/messaging/sending-messages/index.md)
- [Attachments](/guides/messaging/attachments/index.md)
- [API reference: Chats](/api/resources/chats/index.md)
