Send an image, document, audio, video or sticker into a conversation
POST/api/v1/waba/conversations/:id/attachment
Multipart. The file is uploaded to Meta and sent as a media message, and a copy is archived so the thread still renders it after Meta's 30-day media retention expires. The WhatsApp type is inferred from the MIME type, so image/webp becomes a sticker rather than an image. Size ceilings are Meta's own and differ sharply by type: image 5MB, sticker 512KB, audio and video 16MB, document 100MB. Checked before upload, so an oversized file is refused with the limit and the actual size named. Session message, so it needs an open window.
Request
Responses
- 201
- 400
- 401
- 500
Attachment queued
No file, file too large, or the conversation window is closed
Unauthorized (invalid apiToken)
Internal server error