---
title: "Upload a file to the instance"
method: POST
path: "/v1/instance/{instance_id}/upload"
tags: ["instance"]
---

# Upload a file to the instance

`POST /v1/instance/{instance_id}/upload`

Upload a file to the instance.

## Path parameters

- `instance_id` string, required

## Headers

- `x-api-key` string, required

## Response `200`

Successful Response

- TypeUploadResponse — Response model for file uploads.
  - `filename` string, required
  - `path` string, required
  - `media_type` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/scrapybara/apis/api-reference.md) · [All operations](https://skmtc.dev/scrapybara/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scrapybara/api-reference/revisions/3d9197361372/schema)
