---
title: "Upload a zip archive and extract it"
method: POST
path: "/browsers/{id_or_name}/fs/upload_zip"
tags: ["Browser Filesystem"]
---

# Upload a zip archive and extract it

`POST /browsers/{id_or_name}/fs/upload_zip`

## Request

- Base URL: `https://api.onkernel.com`
- URL: `https://api.onkernel.com/browsers/{id_or_name}/fs/upload_zip`
- Auth: HTTP bearer

Upload a zip file and extract its contents to the specified destination path.

## Path parameters

- `id_or_name` string, required

## Request body `multipart/form-data`

- object
  - `dest_path` string, required: Absolute destination directory to extract the archive to.
  - `zip_file` string, binary, required

## Response `201`

Zip uploaded and extracted successfully

## Other responses

- `400`: Bad Request – invalid input
- `403`: Forbidden – insufficient permissions or plan
- `404`: Resource not found
- `500`: Internal Server Error
- `default`: Error returned by the browser or its proxy

---

[API](https://skmtc.dev/onkernel/apis/kernel-api.md) - [All operations](https://skmtc.dev/onkernel/apis/kernel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/onkernel/apis/kernel-api/revisions/0f6cf4f58fe6?raw)
