Skip to main content

Upload media

POST 

/v1/:phone_number_id/media

Uploads a file to Meta's infrastructure and returns an id you can reuse across many sends. The file stays available for 30 days.

Sending by id is faster and more reliable than by public URL when the same file goes to many recipients — Meta downloads it once.

This route has its own rate limit: 60 requests per minute.

Request​

Responses​

Meta Cloud API's response, passed through unchanged. The shape depends on the endpoint — see Meta's documentation.

Response Headers
    X-RateLimit-Category

    Which rate limit category applied — send, media or default.

    X-RateLimit-Scope

    Which bucket the other headers describe — key (the API key), session (the dashboard) or account (the account ceiling).

    X-RateLimit-Limit

    Request ceiling for this category in the current window.

    X-RateLimit-Remaining

    Requests left in the current window.