Skip to main content
GET
cURL
Questions or issues? Contact us at api-support@manus.ai.
Auth:
  • API Key: Full access.
  • Standard OAuth client: Requires create_task or manage_all_tasks.
  • Trusted client: Full access.

Download an uploaded file

After sending the file bytes to the PUT URL returned by file.upload, call file.detail with the returned file.id. This also checks a pending upload, so a completed upload can become available for download immediately. You can download the attachment for content validation before passing its file_id to a task. The response includes these optional fields at the top level, alongside file: Both fields are returned only when file.status is uploaded and the file has not expired. Pending, failed (error), and expired files retain their metadata response without download fields. A deleted, missing, or other user’s file returns HTTP 404 with error.code: "not_found". The download link is valid for at most 3 minutes, shortened to the file’s remaining lifetime. Deleting the file can invalidate it earlier. Call file.detail again to obtain a fresh link while the file remains available.

Headers

x-manus-api-key
string

API key for direct authentication. Provide either this or Authorization, not both. See Authentication.

Authorization
string

OAuth2 access token in Bearer {token} format. An OAuth client requires the create_task or manage_all_tasks scope unless it is a Trusted team client or Trusted public client. Provide either this or x-manus-api-key, not both. See the Open App guide.

Example:

"Bearer {access_token}"

Query Parameters

file_id
string
required

The unique identifier of the file to retrieve.

Response

File retrieved successfully.

ok
boolean

Whether the request was successful.

Example:

true

request_id
string

Unique identifier for this API request.

file
object

The file object with full details.

download_url
string<uri>

Presigned GET URL for the uploaded file. Returned with download_expires_at only when file.status is uploaded and the file has not expired. Use it as returned, without Manus credentials. Valid for at most 3 minutes, shortened to the file's remaining lifetime; call file.detail again for a fresh link.

download_expires_at
string

Unix timestamp in seconds when download_url expires, serialized as a decimal string by protobuf JSON. Returned only with download_url. This is the download link's expiration, distinct from file.expires_at, which describes the file's lifetime.

Pattern: ^[0-9]+$
Example:

"1893456180"