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

# API tokens

> Questions about API tokens and permissions.

## My upload answers "Not allowed". What is missing?

The token needs both **Upload files** and the name of the storage you upload to, and the storage must exist. See [Token permissions](../../guides/token-permissions/).

## My upload answers 401. Why?

The token is missing, mistyped, or it was removed. Copy it again from **API Tokens**. See [API tokens](../../guides/api-tokens/).

## Do tokens expire?

No. A token works until you remove it.

## Can I see which app uploaded a file?

Yes, if you [index files in PostgreSQL](../../guides/postgresql/): the `createdby` column holds the **App name** of the token. The token card in **API Tokens** also shows when the token was last used.

## Should I put a token in a web page?

Only a token made for that page, with **Upload files** and one storage. See [Upload from a web page](../../recipes/upload-from-browser/).
