Convert File Endpoint
curl --request POST \
--url https://backend.overtenai.com/api/v1/files/{file_id}/convert \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-API-Key: <api-key>' \
--data 'format=<string>'import requests
url = "https://backend.overtenai.com/api/v1/files/{file_id}/convert"
payload = { "format": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({format: '<string>'})
};
fetch('https://backend.overtenai.com/api/v1/files/{file_id}/convert', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://backend.overtenai.com/api/v1/files/{file_id}/convert",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "format=%3Cstring%3E",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.overtenai.com/api/v1/files/{file_id}/convert"
payload := strings.NewReader("format=%3Cstring%3E")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://backend.overtenai.com/api/v1/files/{file_id}/convert")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("format=%3Cstring%3E")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.overtenai.com/api/v1/files/{file_id}/convert")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "format=%3Cstring%3E"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}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
/
files
/
{file_id}
/
convert
Convert File Endpoint
curl --request POST \
--url https://backend.overtenai.com/api/v1/files/{file_id}/convert \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-API-Key: <api-key>' \
--data 'format=<string>'import requests
url = "https://backend.overtenai.com/api/v1/files/{file_id}/convert"
payload = { "format": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({format: '<string>'})
};
fetch('https://backend.overtenai.com/api/v1/files/{file_id}/convert', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://backend.overtenai.com/api/v1/files/{file_id}/convert",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "format=%3Cstring%3E",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.overtenai.com/api/v1/files/{file_id}/convert"
payload := strings.NewReader("format=%3Cstring%3E")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://backend.overtenai.com/api/v1/files/{file_id}/convert")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("format=%3Cstring%3E")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.overtenai.com/api/v1/files/{file_id}/convert")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "format=%3Cstring%3E"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}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
