Convert File Endpoint
public
Convert File Endpoint
Convert a previously-uploaded file into a different format.
Uses the same conversion pipeline as POST /runs/{run_id}/export
but targets files the caller uploaded via POST /files — useful
when the caller wants to normalise their own .docx/.xlsx/
.pptx without running them through an agent first.
Responses:
- 200 with
{"format", "download_url", "expires_at"}on success. - 400 for an unsupported (source, target) pair.
- 404 if the file_id isn’t visible to the caller.
- 502 if the conversion fails mid-run.
POST
Convert File Endpoint
Authorizations
Send X-API-Key: sk_live_<your_key>. Keys are issued via POST /signup or via the dashboard. Legacy callers may also use Authorization: Bearer sk_live_<your_key>.
Path Parameters
Body
application/x-www-form-urlencoded
Target extension (e.g. pdf, html, txt).
Response
Successful Response
