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

> ## Agent Instructions
> FiveMesh CDN hosts public files with stable URLs, such as inventory images, phone and tablet media, screenshots and NUI assets. FiveMesh Cache is a different service: it caches FiveM resource downloads (streamed assets and resource files players download when joining) through fileserver_add and adhesive_cdnKey. When a user asks for a "FiveM CDN", check which of the two they need.
> For FiveMesh Cache, tell users to copy the server.cfg block generated in the dashboard. Never construct the Cache URL from a cfx.re join code, and never reuse another server's adhesive_cdnKey.
> Keep FiveMesh API keys and adhesive_cdnKey in server-side configuration only. Use scoped upload URLs for client or NUI uploads.

# Upload ShareX screenshots to FiveMesh CDN

> Import a ShareX custom uploader for FiveMesh CDN and copy a public URL after each upload.

Use the [ShareX custom uploader](https://getsharex.com/docs/custom-uploader) to store screenshots in FiveMesh CDN and copy their public URLs to your clipboard.

## Prerequisites

* Install ShareX on Windows and [set up FiveMesh CDN](https://docs.fivemesh.io/cdn/setup.md).
* In **Developers** → **API Keys**, create a [Developer API Key](https://docs.fivemesh.io/account/api-keys.md) with `cdn:write` and allow the `sharex` CDN path prefix.

## Import the uploader

1. Copy the JSON below with its placeholder intact.
2. In ShareX, open **Destinations** → **Custom uploader settings** and choose **Import** → **From clipboard**.
3. Select **FiveMesh CDN**. Under **Headers**, replace `YOUR_FIVEMESH_API_KEY` in the `Authorization` value and keep the `Bearer` prefix.
4. Set **Destinations** → **Image uploader** to **Custom image uploader**. In the custom uploader settings, select **FiveMesh CDN** as the image uploader.

```json theme={null}
{
  "Version": "17.0.0",
  "Name": "FiveMesh CDN",
  "DestinationType": "ImageUploader",
  "RequestMethod": "POST",
  "RequestURL": "https://api.fivemesh.io/v1/objects",
  "Headers": {
    "Authorization": "Bearer YOUR_FIVEMESH_API_KEY"
  },
  "Body": "MultipartFormData",
  "Arguments": {
    "path": "sharex"
  },
  "FileFormName": "file",
  "URL": "{json:object.publicUrl}",
  "ErrorMessage": "{json:error.message}"
}
```

ShareX stores the API key in the uploader settings. Keep any export that contains the key private.

## Verify uploads

1. Enable **Upload image to host** under **After capture tasks** and **Copy URL to clipboard** under **After upload tasks**.
2. Capture a test screenshot and open the copied URL in your browser.
3. Confirm that the file appears under `sharex` in the [CDN object browser](https://docs.fivemesh.io/cdn/object-browser.md).

If ShareX reports **401**, check the key and the `Bearer` prefix. For **403**, check `cdn:write` and the allowed path. If the image uploads but no URL is copied, check the **URL** field and the after-upload task.


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