Skip to main content
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>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

X-API-Key
string
header
required

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

file_id
string
required

Body

application/x-www-form-urlencoded
format
string
required

Target extension (e.g. pdf, html, txt).

Response

Successful Response