---
title: 5003: Media invalid. | API Docs
description: The media upload is not acceptable.
---

**HTTP status:** `422`. May also be reported as a field-level finding in `error.details[]`.

The upload’s kind, Content-Type, Content-Encoding, size or body does not satisfy the media rules; details\[].param names which. Nothing was stored.

## Troubleshooting

- Read details\[] for the exact param (a JSON Pointer into your request) and each field’s own fault code.
- Send the raw bytes with an exact Content-Type and a kind the upload operation documents.

## Related

- [Uploading media](/channel/whatsapp/api/resources/media/methods/upload/index.md)
