upload method that handles the entire process for you.
upload method:
- Creates a file record with a presigned URL
- Uploads your file to storage
- Polls until processing is complete
- Returns the ready file with its final URL
Using uploaded files
Once uploaded, use the file ID in any API call that accepts file attachments:File properties
| Property | Description |
|---|---|
id | Unique identifier (e.g., file_xxxxxxxxxxxxx) |
filename | Original filename |
content_type | MIME type (e.g., image/jpeg) |
byte_size | File size in bytes |
url | URL to access the file |
upload_status | Status: pending, processing, ready, or failed |

