Free plan

Create ZIP

Pack several files into one ZIP download
POST
/v1/documents/archive-create

About this tool

This tool puts several files into one ZIP file, a single package that is easier to send or store. You can choose the name of each file inside, put everything into a folder, and choose how hard the files are squeezed. It does not add a password. For that, use the password ZIP tool.
For example, you bundle a contract, an invoice and some photos into one ZIP to download or send.

How to use it

  1. Choose this tool.
  2. Add all the files you want to pack, with Upload or by dragging them in.
  3. If you like, set the names inside the ZIP, a folder name and how much to compress.
  4. Press Generate.
  5. Download the ZIP file.

What you get back

You get one ZIP file containing all your files, ready to download.
GOOD TO KNOW
Files in, one ZIP out. Counts as one file.
TEST IT LIVE

Try Create ZIP in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Documents
Plan
Free
Method
POST
Endpoint
/v1/documents/archive-create
Tool ID
documents.archive-create
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Documents
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/documents/archive-create" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'files=@document.pdf' \
  -F 'names=["a.txt","docs/b.txt"]' \
  -F 'folder=export-2026' \
  -F 'level=6'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.documents.archiveCreate({
    "files": 'document.pdf',
    "names": "[\"a.txt\",\"docs/b.txt\"]",
    "folder": "export-2026",
    "level": 6
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->documents()->archiveCreate([
    'files' => 'document.pdf',
    'names' => '["a.txt","docs/b.txt"]',
    'folder' => 'export-2026',
    'level' => 6,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Put files into one ZIP archive. Choose the names inside the ZIP, an optional folder and how hard to compress.

Create ZIP works from text and settings, so no file is needed. Every input is optional.

Create ZIP is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/documents/archive-create with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.