---
title: API tokens
project: OpenFiles
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openfiles/1-0/guides/api-tokens/
updated: 2026-11-19T07:45:42.017Z
---

# API tokens

> Create a token for each app that uploads files, copy it, edit it and remove it.

Your apps upload files with an API token. Create one token per app, so you can see which app uses OpenFiles and remove one app's access without touching the others.

**API Tokens** shows one card per token, with the time it was last used and its summary:

![API Tokens with the token Demo website](/files/JapUNc22j61f.webp)

## Create a token

**1.** Open **API Tokens** and select **Create**.

**2.** Fill in the form:

- **App name**: the app that will use the token, for example `Demo website`.
- **Permissions**: what the token may do. For uploads, choose **Upload files** and the storages it may upload to. See [Token permissions](../token-permissions/).
- **Summary**: a note for you, for example who runs the app.

**3.** Select **SUBMIT**.

## Copy a token

Open the token again (select its card). The form now starts with the token, hidden as `******`:

![The Update API token form with Copy token and Show token](/files/JapUNe23j60f.webp)

- **Show token** shows it on the screen.
- **Copy token** copies an upload address with the token to the clipboard, in this form:

```text
http://localhost:8000/upload/{db}/?token=YOUR_TOKEN
```

Replace `{db}` with the storage name before you use it.

The menu **...** on a token card has the same **Copy token**, plus **Edit** and **Remove**:

![The token menu with Copy token, Edit and Remove](/files/JapUNg24j61f.webp)

Keep tokens secret. Anyone who has a token can upload with its permissions.

## Edit a token

Select the card (or **Edit** in its menu), change the fields and select **SUBMIT**. The token itself stays the same, so the app keeps working with the new permissions.

## Remove a token

Select **Remove** in the token menu and confirm. Then create a new token if the app still needs access.

To call the API with a token, see [REST API overview](../../reference/rest-api/).
