---
title: Generate Archives API
slug: create-zip
url: https://apyhub.com/apyhub/service/create-zip
provider: ApyHub
categories: [File Conversion, File Manipulation]
auth: api_key
---

# Generate Archives API

Bundle uploaded files or remote URLs into a ZIP. Get a streamed ZIP download or a signed link, with optional output file naming.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/generate/archive/files/archive-file` | What it does Creates a ZIP archive from the uploaded files and streams the resulting download back… | 150 |
| POST | `/generate/archive/files/archive-url` | What it does Creates a ZIP archive from the uploaded files and returns a signed link to the generat… | 150 |
| POST | `/generate/archive/file-urls/archive-file` | What it does Creates a ZIP archive from one or more remote file URLs and streams the archive back i… | 150 |
| POST | `/generate/archive/file-urls/archive-url` | What it does Creates a ZIP archive from one or more remote file URLs and returns a signed URL where… | 150 |

## About

## What it does
ZIP Archive Builder packages uploaded files or remote file URLs into a ZIP and gives you either a direct download or a signed link.

Send one or more binary files to `/file/download` or `/file/link`, and send one or more remote URLs to `/url/download` or `/url/link`. Each request accepts an optional `output` query value to name the archive; if you omit it, the default is `output.zip`. The download endpoints stream the ZIP as binary data, while the link endpoints return a JSON object with a `data` field containing a signed URI.

Use ZIP Archive Builder when you need to bundle user uploads into a single attachment, collect assets from different storage locations, or generate an archive for later retrieval without streaming it back immediately. It fits file bundling workflows where you want a predictable archive name and a simple response shape.

The service keeps the contract narrow: file-based requests take `files`, URL-based requests take `urls`, and the outputs are either a binary ZIP or a link to the generated file.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/create-zip
