convert_file
Converts uploaded documents to formats like docx, pdf, html, txt, md, rst, or xlsx. Submit the object key and target format to receive a job ID for processing.
Instructions
Offload a document conversion to Botverse using an already-uploaded file. Workflow: (1) call get_upload_url to get a presigned upload URL, (2) PUT the raw file bytes to that URL, (3) call convert_file with the object_key — Botverse handles the rest server-side. Returns a job_id immediately so you can continue with other tasks while conversion runs. Supported inputs: md, html, rst, txt, docx. Supported outputs: docx, pdf, html, txt, md, rst, xlsx. Poll get_job_status until complete, then get_download_url. Flat fee $0.05 per file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_key | Yes | The object_key returned by get_upload_url. | |
| output_format | Yes | Target format: docx | html | txt | md | rst | pdf | xlsx |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Unique identifier for this job. Pass to get_job_status and get_download_url. | |
| status | Yes | Initial job state — always queued or processing immediately after submission. | |
| estimated_seconds | No | Rough estimated processing time in seconds. Actual time may vary. |