Skip to main content
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"
  }'
{
  "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

workspaceId
integer
Workspace context

Request Body

url
string
required
Source URL of the file to convert
filename
string
required
Original filename
outputformat
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"
  }'
{
  "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.