attachment_file_ids. The platform materializes the file in this session’s directory (/home/user/workspace/<expert_identifier>/<session_id>/), where the Expert can read / grep it — including PDF, Word, and Excel.
Why ids and not URLs: the platform never fetches a link you hand it. That means (1) you never have to publish a readable link to a private document, and (2) the platform cannot be used as a proxy to reach your internal network. The read URL is minted by the platform at invoke time and only travels inside the platform.
Quick Start
One call with the SDK (which wraps the three steps below):Upload Flow
Without the SDK, uploading is three steps: get an upload ticket, PUT the bytes to storage, register the object. The bytes go straight to object storage rather than through the platform’s API pods, so large files are not bounded by a request body limit.1. Get an Upload Ticket
Response
2. PUT the Bytes to Storage
Send aPUT to upload_url with the file bytes as the body.
3. Register the File
Response
Download a file
data.id from registration, or the file id handed back in a conversation. Send the same API key and the same X-Profy-End-User-Id as POST /v1/agents/run.
On success, data.download_url is a presigned GET that lasts one hour (data.expires_in is 3600). Fetch the bytes with a plain GET and do not send the API key again. When it expires, call this endpoint with the same file id. Do not store download_url.
Missing credentials return 401. A missing terminal user returns 400. A key without file scope returns 403. A file that is not owned by this key and terminal user returns 404.
Do not take the uuid out of a /storage/ path and use it as the file id. That segment is part of the object key, not data.id.
Delete a File
Limits
Error Codes
Next Steps
Run Expert
Pass the file to an Expert via
attachment_file_idsPython SDK
Complete Python SDK guide

