Files
File explorer.
ROLES: FILE_ADMIN USER: true SERVICE ACCOUNT: true
POST
/
api
/
v1
/
files
File explorer.
curl --request POST \
--url https://api.revoengine.com/api/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fileName": "report.pdf",
"type": "FILE",
"size": 204800
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({fileName: 'report.pdf', type: 'FILE', size: 204800})
};
fetch('https://api.revoengine.com/api/v1/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/files"
payload = {
"fileName": "report.pdf",
"type": "FILE",
"size": 204800
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Body
application/json
File name.
Example:
"report.pdf"
Logical file type stored by the platform.
Available options:
FILE, FOLDER Example:
"FILE"
Size of the file in bytes.
Example:
204800
Content type declared for the uploaded file.
Example:
"application/pdf"
Optional source or destination path associated with the file.
Example:
"/imports/2026/report.pdf"
Overwrite the existing file when a conflicting target already exists.
Example:
false
Response
OK.
Last modified on September 5, 2026
⌘I
File explorer.
curl --request POST \
--url https://api.revoengine.com/api/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fileName": "report.pdf",
"type": "FILE",
"size": 204800
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({fileName: 'report.pdf', type: 'FILE', size: 204800})
};
fetch('https://api.revoengine.com/api/v1/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/files"
payload = {
"fileName": "report.pdf",
"type": "FILE",
"size": 204800
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
