file.detail
Retrieves a file’s details including upload status, size, and expiration time. For an uploaded, unexpired file, also returns a temporary GET download URL and its expiration time at the top level of the response. Use this to download an uploaded attachment for validation before creating a task. Check that file.status is uploaded before using the file in task.create. Files expire 48 hours after upload.
Download an uploaded file
After sending the file bytes to the PUT URL returned by file.upload, callfile.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:
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
API key for direct authentication. Provide either this or Authorization, not both. See Authentication.
Query Parameters
The unique identifier of the file to retrieve.
Response
File retrieved successfully.
Whether the request was successful.
true
Unique identifier for this API request.
The file object with full details.
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.
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.
^[0-9]+$"1893456180"