> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fumbled.lol/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload file (ShareX / API)

> POST /api/upload/sharex: upload a file to your fumbled.lol file host using a Bearer API key.

Upload an image or video to your fumbled.lol file host using an API key created under **Account → API Keys**. Identical re-uploads in the same folder reuse the existing file without taking extra storage quota.

## Authentication

Pass your API key in the `Authorization` header:

```http Header theme={null}
Authorization: Bearer <your_api_key>
```

## Body parameters (`multipart/form-data`)

**file** `file` *required*

The image or video file to upload. Other file types return `400 Bad Request`.

**folder\_id** `string`

Target folder ID, or `root` to upload to the root folder.

**folder\_path** `string`

Optional nested folder path (also accepted as `relative_path`).

**id\_hidden** `boolean` (default: false)

Hide the file ID in share links when set to `true`.

**private** `boolean` (default: false)

Mark the uploaded file as private when set to `true`.

## Response fields

**slug** `string`

Public share slug for the uploaded file (`https://fumbled.lol/i/{slug}`).

**url** `string`

Signed media URL for the uploaded file.

**thumbnail** `string`

Signed WebP thumbnail URL generated for the image or video.

**storage** `object`

Updated storage usage and quota for your account.

```bash cURL theme={null}
curl -X POST https://fumbled.lol/api/upload/sharex \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@screenshot.png"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.