Skip to main content
POST
Export file (unavailable)
This endpoint is not currently available. Every call fails with 404. The API accepts the request and forwards it to the computer. The software running on the computer implements no export handler, so the request has nowhere to land. No set of arguments makes it succeed. This page records the intended contract and the behaviour you will observe today. Do not build against it.
Intended to copy a file off a computer’s filesystem into workspace storage and return a download URL.

Request

Send a JSON body.
string
required
Computer ID to export from. Omitting it returns 400.
string
required
Path to the file on the computer. Omitting it returns 400. The value is forwarded to the computer unchanged. How it would be resolved is not defined, because no handler on the computer reads it.

Response

There is no success response. The request is rejected before any file is read. Calls that get as far as the computer return:
with HTTP status 404.

Example

The call below is well-formed against a running computer and still returns 404.

Getting a file off a computer today

Read the file over the computer’s shell and write it where you want it. To send a file the other way, use the upload endpoint: its destPath field places a file at an exact path on a computer.

Errors

Every error carries the shape {"error": "<message>"}. The checks below run in order, so the first one that fails is the status you get. A failure reported by the computer is relayed with the computer’s own status code and its own error message, so statuses outside this list are possible if the software on the computer changes.

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Body

application/json
desktopId
string
required

Computer ID

path
string
required

Path to file on computer (e.g., Desktop/results.txt)

Response

The intended success shape. Not returned today. See the description.

success
boolean
file
object
url
string

Signed download URL (expires in 1 hour)