curl -X POST "https://app.drime.cloud/api/v1/entry/convert?workspaceId=0" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://storage.example.com/file.jpeg",
"filename": "photo.jpeg",
"outputformat": "png"
}'
const response = await fetch(
'https://app.drime.cloud/api/v1/entry/convert?workspaceId=0',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://storage.example.com/file.jpeg',
filename: 'photo.jpeg',
outputformat: 'png'
})
}
);
const data = await response.json();
import requests
response = requests.post(
'https://app.drime.cloud/api/v1/entry/convert',
params={'workspaceId': 0},
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={
'url': 'https://storage.example.com/file.jpeg',
'filename': 'photo.jpeg',
'outputformat': 'png'
}
)
print(response.json())
{
"status": "success",
"fileEntry": {
"id": 123456,
"name": "photo.png",
"type": "image",
"mime": "image/png"
}
}
Files & Folders
Convert File
Convert a file to a different format
POST
/
entry
/
convert
curl -X POST "https://app.drime.cloud/api/v1/entry/convert?workspaceId=0" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://storage.example.com/file.jpeg",
"filename": "photo.jpeg",
"outputformat": "png"
}'
const response = await fetch(
'https://app.drime.cloud/api/v1/entry/convert?workspaceId=0',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://storage.example.com/file.jpeg',
filename: 'photo.jpeg',
outputformat: 'png'
})
}
);
const data = await response.json();
import requests
response = requests.post(
'https://app.drime.cloud/api/v1/entry/convert',
params={'workspaceId': 0},
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={
'url': 'https://storage.example.com/file.jpeg',
'filename': 'photo.jpeg',
'outputformat': 'png'
}
)
print(response.json())
{
"status": "success",
"fileEntry": {
"id": 123456,
"name": "photo.png",
"type": "image",
"mime": "image/png"
}
}
Overview
Requests a server-side conversion of a file to a different format (e.g., JPEG to PNG, DOCX to PDF).Query Parameters
integer
Workspace context
Request Body
string
required
Source URL of the file to convert
string
required
Original filename
string
required
Desired output format (e.g.,
png, pdf, jpg)Response
Returns the converted file or a success status depending on the conversion type.curl -X POST "https://app.drime.cloud/api/v1/entry/convert?workspaceId=0" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://storage.example.com/file.jpeg",
"filename": "photo.jpeg",
"outputformat": "png"
}'
const response = await fetch(
'https://app.drime.cloud/api/v1/entry/convert?workspaceId=0',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://storage.example.com/file.jpeg',
filename: 'photo.jpeg',
outputformat: 'png'
})
}
);
const data = await response.json();
import requests
response = requests.post(
'https://app.drime.cloud/api/v1/entry/convert',
params={'workspaceId': 0},
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
json={
'url': 'https://storage.example.com/file.jpeg',
'filename': 'photo.jpeg',
'outputformat': 'png'
}
)
print(response.json())
{
"status": "success",
"fileEntry": {
"id": 123456,
"name": "photo.png",
"type": "image",
"mime": "image/png"
}
}
Supported conversions depend on the file type. Common conversions include image format changes and document to PDF.