# POST /api/v1/media is deprecated

Mastodon API deprecated POST /api/v1/media without giving a shutdown date yet.

Mastodon API deprecated POST /api/v1/media without a shutdown date. Subsequent calls will eventually fail once the endpoint is retired. This change affects any integration using POST /api/v1/media for uploads.

## What to use instead

Upload using POST /api/v2/media instead, and poll GET /api/v1/media/{id} until the url is set.

- API: Mastodon API (mastodon.social)
- Kind: Version retirement
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /api/v1/media`
- Source: [Announcement](https://docs.joinmastodon.org/methods/media/)
- Verified: November 6, 2026, against Mastodon API's own pages
- Page: https://www.okapi.bot/providers/mastodon-api/breaking-changes/post-api-v1-media-is-deprecated/

## Mastodon API's words

> 3.1.3 - deprecated in favor of POST /api/v2/media , which is equal to v1 in all aspects, except it returns HTTP 202

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
