cURL
curl --request GET \ --url https://api.reportify.cn/v1/agent/files/{file_id} \ --header 'Authorization: Bearer <token>'
"<string>"
Get agent generated file by file ID
/v1/agent/files/{file_id}
GET
application/octet-stream
curl -X GET "https://api.reportify.cn/v1/agent/files/file_abc123" \ -H "Authorization: Bearer YOUR_API_KEY" \ -o downloaded_file.pdf
import requests url = "https://api.reportify.cn/v1/agent/files/file_abc123" headers = { "Authorization": "Bearer YOUR_API_KEY" } response = requests.get(url, headers=headers) # Save to file with open("downloaded_file.pdf", "wb") as f: f.write(response.content)
const response = await fetch( 'https://api.reportify.cn/v1/agent/files/file_abc123', { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } } ); const blob = await response.blob(); // Save or process the blob
tool_output
workflow_end
Enter your Bearer token
Agent generated file ID
Successful Response
The response is of type file.
file