Get Data
- POSTWeb Page Content
- POSTWeb Page Screenshot
- POSTYouTube Video Transcript
- POSTYouTube Channel Data
- POSTGet Twitter Users
- POSTGet Company Earnings Info
- POSTGet Company Financial Profile
- POSTGet Domain Information
- POSTGoogle News Data
- POSTYouTube Search Results
- POSTSearch Results
- POSTGet Recent Tweets
- POSTGet LinkedIn Profile
- POSTFind LinkedIn Profile
- POSTGet LinkedIn Activity
- POSTEnrich Company Data
- POSTGet Bluesky Posts
- POSTSearch Bluesky Posts
- POSTGet Instagram Profile
- POSTGet Instagram Followers
Advanced
Create Output
Agent Discovery
Advanced
Convert file
Convert a file to a different format.
POST
/
action
/
convert_file
curl --request POST \
--url https://api-lr.agent.ai/v1/action/convert_file \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"input_file": "https://www.irs.gov/pub/irs-pdf/fw4.pdf",
"convert_to_extension": "txt"
}'
{
"status": 200,
"response": [
{
"contents": "Form\n\nW-4\n\nDepartment of the Treasury\nInternal Revenue Service\n\nStep 1:\nEnter\nPersonal\nInformation\n\nEmployee’s Withholding Certificate\n\nOMB No. 1545-0074...",
"url": "https://s3.us-east-2.amazonaws.com/asset-uploads.agent.ai/wka0ndlr_fw4.txt"
}
]
}
Authorizations
Bearer token from your account (https://agent.ai/user/settings#credits)
Body
application/json
Response
200 - application/json
Converted file(s)
The response is of type object
.
curl --request POST \
--url https://api-lr.agent.ai/v1/action/convert_file \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"input_file": "https://www.irs.gov/pub/irs-pdf/fw4.pdf",
"convert_to_extension": "txt"
}'
{
"status": 200,
"response": [
{
"contents": "Form\n\nW-4\n\nDepartment of the Treasury\nInternal Revenue Service\n\nStep 1:\nEnter\nPersonal\nInformation\n\nEmployee’s Withholding Certificate\n\nOMB No. 1545-0074...",
"url": "https://s3.us-east-2.amazonaws.com/asset-uploads.agent.ai/wka0ndlr_fw4.txt"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.