---
title: Generate Secure Archives API
slug: create-password-protected-zip
url: https://apyhub.com/apyhub/service/create-password-protected-zip
provider: ApyHub
categories: [File Manipulation, File Security, "Security & Privacy"]
tags: [archive, secure, zip]
auth: api_key
---

# Generate Secure Archives API

Create encrypted ZIP archives from uploaded files or remote URLs. Stream the ZIP or return a signed download link for controlled sharing.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/generate/secure-archive/file-urls/archive-file` | What it does Creates a password-protected ZIP archive from one or more remote file URLs and streams… | 200 |
| POST | `/generate/secure-archive/file-urls/archive-url` | What it does Creates a password-protected ZIP archive from one or more remote file URLs and returns… | 200 |
| POST | `/generate/secure-archive/files/archive-file` | What it does Creates a password-protected ZIP archive from the uploaded files and streams the resul… | 200 |
| POST | `/generate/secure-archive/files/archive-url` | What it does Creates a password-protected ZIP archive from uploaded files and returns a signed URI… | 200 |

## About

## What it does
Password Protected ZIP lets you bundle files into an encrypted ZIP archive from either uploaded files or remote URLs. Send one or more `files` or `urls` plus a `password`, and get back either a binary ZIP download or a signed `data` link to the finished archive.

Use the `/file/download` and `/url/download` endpoints when you want the archive streamed directly to the client. Use `/file/link` or `/url/link` when your workflow prefers a signed download URL instead of a binary response. The URL-based endpoints accept an array of remote file URLs and a password; the file-based endpoints accept an array of binary file uploads and a password.

This is useful when you need to package invoices, reports, exports, or attachments with access control before sharing them with customers or internal teams. You can generate the archive on demand without storing a plain, unprotected ZIP in your own application.

Password Protected ZIP keeps the response simple: either a streamed ZIP file or a single download URL. That makes it easy to drop into file delivery flows, admin tools, or automated export jobs.

## Usage

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