Skip to main content
POST
Convert File

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/integrations#api)

Body

application/json
input_file
string
required

Input file URL

Example:

"https://www.irs.gov/pub/irs-pdf/fw4.pdf"

convert_to_extension
string
required

Desired output file extension (e.g., pdf, txt, png).

Example:

"txt"

Response

200 - application/json

Converted file(s)

status
integer<int32>

HTTP status code of the action response

response
object

Response data from the action