---
title: "Upload files"
method: POST
path: "/api/upload"
tags: ["Files"]
---

# Upload files

`POST /api/upload`

You can upload several files at a time by adding parameters to the root of the request body. The name of each parameter will be used as the label of the file once uploaded. E.g:
  - parameter name: `package-damaged.png`
  - parameter value: Content of the file.

## Query parameters

- `type` 'public_attachment' | 'attachment' | 'profile_picture' | 'widget_picture'

## Response `201`

A list of files

- File[]
  - `content_type` string — The content type of the file.
  - `name` string — The name of the file.
  - `size` integer — The size of the file (in bytes).
  - `url` string, url — The URL of the file.

---

[API](https://skmtc.net/gorgias/apis/gorgias-rest-api.md) · [All operations](https://skmtc.net/gorgias/apis/gorgias-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gorgias/gorgias-rest-api/versions/36f2e31f4e81/schema)
