Skip to content

API ​

/settings/api

In this section you can get the API key for your account. Use it with the API V1 to upload files to your account from scripts, apps and other tools.

Availability

This section is only shown when the website administrator has enabled the user API. If it's disabled, the API entry is not listed in settings and /settings/api isn't available.

API key ​

The API key is created automatically the first time you open this section. You don't need to request it or save any changes.

API keys look like chv_<id>_<secret>_<signature>. The key identifies you: any upload made with it goes to your account.

Store your key ​

The full API key is displayed only once, right after it's created, with the message Store the API key in a secure location as it will be shown just once.

  • Click on copy to copy the key to your clipboard
  • Store it in a secure location, such as a password manager

After you leave or reload the page, only a masked version is shown (for example chv_abc_***) along with how long ago the key was created. The website doesn't store the full key, so it can't show it to you again.

Lost key

If you lose your API key, you can't recover it. Regenerate it to get a new one.

Regen key ​

To replace your API key:

  • Click on the Regen key button
  • Confirm when asked Are you sure that you want to revoke the existing API key?

The current key is revoked right away and the page reloads showing a new key. Store it, as it will also be shown just once.

Revoked keys stop working

Any app or script using the previous key will stop working. Update them with the new key.

Regenerate your key whenever you think it may have been exposed, for example if you shared it by mistake or committed it to a code repository.

Old key format

API keys created before Chevereto 4.4 use an older format that is no longer accepted. If your API calls fail with This API key format is no longer supported, regenerate your key.

Usage example ​

The page shows a sample curl request that uploads a file using your API key:

sh
curl --fail-with-body -X POST \
    -H "X-API-Key: YOUR_API_KEY" \
    -H "Content-Type: multipart/form-data" \
    -F "source=@image.jpeg" \
    https://yoursite/api/1/upload
  • Replace YOUR_API_KEY with your API key
  • Replace image.jpeg with the path to the file to upload
  • The page shows the actual URL of the website, so you can copy the command as-is

The API key can be passed in the X-API-Key header (recommended) or as the key request parameter. Check the Authorization and File upload documentation to learn more.

Released under the Apache-2.0 License.