Skip to content

Configure ShareX

Create a ShareX token, import the ready-made config, and choose what ShareX copies after each upload.

ShareX uploads to Tessra with an API token. Tessra builds the ShareX config for you, with your server's address and the token already filled in.

Create the token and config

Open Settings › ShareX and fill in:

SettingWhat it does
NameTells you where the token is used, such as the PC running ShareX.
What ShareX copies after an uploadShare link copies a public link anyone can open, which is best for pasting into chats. Private link copies a link that only you can open while signed in.
Links expireFor share links: never, or after 1, 7, 30, 90 or 365 days. The file stays after its link expires.
Token expiresNever, or after 30 days, 90 days or a year.

Click Create token and config. Tessra shows the token once and downloads a .sxcu file.

Settings › ShareX
The .sxcu file contains the token. Treat it like a password, and revoke the token under Settings › API tokens if the file leaks.

The first-run setup also offers to create a ShareX token as its last step, so you may already have one.

Import it into ShareX

  1. Double-click the downloaded .sxcu file and confirm the import. Or, in ShareX, open Destinations › Custom uploader settings and click Import.
  2. In Destinations, set Image uploader, Text uploader and File uploader to Custom, and pick Tessra for each.
  3. Under After capture tasks, tick Upload image to host.
  4. Take a screenshot.

ShareX copies the link to the clipboard. Its history also keeps a thumbnail URL and a deletion URL; the deletion URL asks for confirmation before it deletes the file.

Test the token

Under the new token, Send test upload sends a small image the same way ShareX does, using only that token. It shows the link, thumbnail and deletion URL ShareX would get, or the error ShareX would show. The test file appears in Files, and Delete test file removes it again.

Process uploads before they're saved

A token can send its uploads through an intake workflow, for example to strip metadata and compress screenshots before they reach your library. Choose the workflow on the token under Settings › API tokens; see Choosing a workflow.

Uploading without ShareX

Any client that can send a multipart form can upload with a token that has the upload:create scope:

curl -H "Authorization: Bearer $TOKEN" -F "file=@screenshot.png" https://files.example.com/api/v1/uploads

When uploads fail

  • 401: the token was revoked, expired or mistyped. Create a new one.
  • 413 from your proxy: the proxy's body limit is lower than the file. See Reverse proxies and HTTPS.
  • Large uploads fail on Cloudflare: Cloudflare limits request bodies per plan, and ShareX uploads in one request. See Cloudflare.

Troubleshooting lists more upload errors.