Skip to content

ZIP & Download

Zip single or multiple files or folders and download them immediately.

Endpoint

http
GET /api/v1/zip

Parameters

Query parameters

ParameterTypeRequiredDescription
itemsitem_id-items parameter contain 2 values separated by pipe `
1. item_iduuidyesThe UUID of the requested item
2. typestringyesThe type of the requested item. Allowed types are folder or file.

Request example

sh
curl --location --request GET 'https://files.ro/api/v1/zip?items={item_id}|file,{item_id}|folder' \
--header 'Authorization: Bearer {token}'

Response

text
Returns a ZIP archive (application/zip) containing the requested items.
json
{
  "type": "error",
  "message": "You are not authorized"
}
json
{
  "message": "The given data was invalid.",
  "errors": {
    "field": [
      "The field is required."
    ]
  }
}