API tokens
Create a token for each app that uploads files, copy it, edit it and remove it.
On this page
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:

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.
- 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 ******:

- Show token shows it on the screen.
- Copy token copies an upload address with the token to the clipboard, in this form:
http://localhost:8000/upload/{db}/?token=YOUR_TOKENReplace {db} with the storage name before you use it.
The menu ... on a token card has the same Copy token, plus Edit and Remove:

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.