POST
/
action
/
convert_file_options
curl --request POST \
  --url https://api-lr.agent.ai/v1/action/convert_file_options \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "extension": "txt"
}'
{
  "status": 200,
  "response": [
    "doc",
    "docx",
    "html",
    "md",
    "odt",
    "pdf",
    "rtf",
    "tex",
    "azw3",
    "epub",
    "lrf",
    "mobi",
    "oeb",
    "pdb",
    "jpg",
    "png"
  ]
}

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/settings#credits)

Body

application/json
extension
string
required

File extension

Response

200 - application/json
Convert file options
status
integer

HTTP status code of the action response

response
object

Response data from the action