---
title: "POST import-binfile"
method: POST
path: "import-binfile"
---

# POST import-binfile

`POST import-binfile`

## Request

- Base URL: `https://design.penpot.app/api/main/methods`
- URL: `https://design.penpot.app/api/main/methods/import-binfile`
- Auth: none declared

Import a penpot file in a binary format.

The file content may be provided either as a multipart `file` upload
or as an `upload-id` referencing a completed chunked-upload session,
which allows importing files larger than the multipart size limit.

## Request body

- object
  - `name` union, required
    - string
    - object
  - `projectId` string, uuid, required: UUID formatted string
  - `version` 1 | 3
  - `file` object
    - `filename` string, required
    - `size` integer, required: integer
    - `path` string, unix-path, required: filesystem path
    - `mtype` string
    - `headers` object
  - `uploadId` string, uuid: UUID formatted string

## Changes

> 11 revisions in range; 1 not diffed.

- **2026-09-10** `d014f72adc3f`: 1 breaking, 1 warning, 2 info
  - request property `allOf[subschema #1: import-binfile]/version` was restricted to a list of enum values
  - removed the request property `allOf[subschema #1: import-binfile]/fileId`
  - added the new `1.00` enum value to the request property `allOf[subschema #1: import-binfile]/version`
  - added the new `3.00` enum value to the request property `allOf[subschema #1: import-binfile]/version`

[Operation history](https://skmtc.dev/penpot/apis/penpot-api/changes/import-binfile/post.md)

---

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