Download media file
GET/files/:mediaKey
Returns a pre-signed (temporary) URL to download a media file received in an inbound message.
Flow:
- Receive an inbound callback with
mediaKey - Call this endpoint with the received
mediaKey - From the response, use the
urlfield to download the file
Request
Responses
- 200
- 401
- 404
- 429
Pre-signed URL for download
Missing or invalid credentials. The body is empty.
File not found
Too many requests: your account exceeded its limit of requests per second, set by your subscription plan. The body is empty: wait one second, as Retry-After says, and retry.
Response Headers
Retry-After
Seconds to wait before retrying: always 1
Example:
1