Get the result of a user file upload
get_file_uploadGet the status and uploaded file ids of an upload link created by upload_file (files group). Default is one instant status check; wait: true blocks until the user finishes or the wait budget runs out. Statuses: pending (the user has not completed the upload — call again with wait: true once they say they are done); completed (files lists the uploaded file ids, usable as { "id": "file_..." } inputs in any file-accepting tool); expired or cancelled (the link is no longer usable — call upload_file for a fresh one).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | true = block until the user completes the upload or the wait budget runs out. Default false: one instant status check. | |
| uploadId | Yes | Upload session id (upl_...) from upload_file. | |
| environment | Yes | "TEST" = the Test (development) environment, "PRODUCTION" = live. Must match a granted target from get_me (an API key pins one environment). | |
| workspaceId | Yes | Target workspace (ws_...). Must be a granted workspace — get_me lists the accepted values. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Present once completed: the uploaded file ids. | |
| status | Yes | pending | completed | expired | cancelled | |
| uploadId | Yes | ||
| expiresAt | No | Present while pending: when the link stops accepting uploads. | |
| completedAt | No | ||
| completedBy | No |