Unsupported Media Type
The API cannot process the request because the media type or Content-Type format is not supported by the endpoint.
Meaning
The API cannot process the request because the media type or Content-Type format is not supported by the endpoint.
Common causes
- Incorrect Content-Type header
- Unsupported request format
- API expects JSON but received form data
- API expects XML but received JSON
- Incorrect request body encoding
⚡ Quick fix
- Set the correct Content-Type header
- Send the request in a supported format
- Verify the API documentation
- Ensure the request body matches the declared media type
Detailed fix by platform
JavaScript
- Set Content-Type to application/json when sending JSON
- Use the correct request body format
PHP
- Set the appropriate Content-Type header
- Encode request data according to the API requirements
REST
- Check the endpoint's supported media types
- Use the correct Accept and Content-Type headers
How to diagnose
- Inspect the Content-Type header —
- Check the request body format —
- Review supported media types in the API documentation —
- Compare Accept and Content-Type headers —
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 6 Oct 2026