Spanish Total.js
English
Documentation For AI agents
Contents

Token permissions

Which permissions a token can have and which combination an upload needs.

.md GitHub
On this page

The Permissions field of a token has two kinds of entries:

EntryColourMeaning
Upload filesredThe token may upload.
Remove filesredNot used by the upload API.
A storage name, for example photosblueThe storage the token may work with.

Every storage you create appears in the list as a blue entry.

What an upload needs

To upload to a storage, a token needs both:

  • Upload files, and
  • the name of that storage.

For example, a token with Upload files and photos can upload to /upload/photos/. The same token gets Not allowed when it tries /upload/documents/.

Permissions/upload/photos//upload/documents/
Upload files, photosallowedNot allowed
Upload files, photos, documentsallowedallowed
photos onlyNot allowedNot allowed

Good practice

  • Give each app only the storages it needs.
  • Use a separate token for a web page that uploads directly from the browser, because its visitors can read the token. See Upload from a web page.

See Errors and limits for the answers your app gets.

Made in Europe