API Reference
Media

Retrieve media URL

GET/{media-id}
Base URL: https://whatsapp.mimicr.dev/v24.0 · provider: https://graph.facebook.com/v24.0

Returns a temporary URL of the media (valid for 5 minutes) with its MIME type, SHA-256 and size. Download it with a GET that sends the same Authorization: Bearer <token> header. Works for media you uploaded and media received in webhooks.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

media-idstringrequired

Media ID returned by the upload endpoint or by an incoming media message webhook.

Example: "132404823835057"

Responses

200Media URL.
messaging_productstring

Always whatsapp.

urlstring

Temporary download URL.

mime_typestring

MIME type.

sha256string

SHA-256 of the file.

file_sizeinteger

Size in bytes.

idstring

Media ID.

400Media not found or deleted (100, subcode 33).
errorobjectrequired
Show child attributes
messagestringrequired

Human-readable error message, for WhatsApp errors prefixed with (#code).

typestringrequired

Exception type.

Example: "OAuthException"
codeintegerrequired

Error code. See the error codes reference.

error_subcodeinteger

More specific code, when there is one (for example 33 for objects that do not exist or are not visible to the token, 460 for revoked tokens, 2388024 for duplicate templates).

error_user_titlestring

Title meant to be shown to the end user.

error_user_msgstring

Message meant to be shown to the end user.

error_dataobject
Show child attributes
messaging_productstring

Always whatsapp.

detailsstring

Details about the error.

fbtrace_idstringrequired

Trace ID. Include it when you contact support.

401Missing, invalid or revoked access token (190; a revoked token adds error_subcode: 460). A missing token answers 400 with code 104.
errorobjectrequired
Show child attributes
messagestringrequired

Human-readable error message, for WhatsApp errors prefixed with (#code).

typestringrequired

Exception type.

Example: "OAuthException"
codeintegerrequired

Error code. See the error codes reference.

error_subcodeinteger

More specific code, when there is one (for example 33 for objects that do not exist or are not visible to the token, 460 for revoked tokens, 2388024 for duplicate templates).

error_user_titlestring

Title meant to be shown to the end user.

error_user_msgstring

Message meant to be shown to the end user.

error_dataobject
Show child attributes
messaging_productstring

Always whatsapp.

detailsstring

Details about the error.

fbtrace_idstringrequired

Trace ID. Include it when you contact support.