---
title: API tokens
project: OpenTemplates
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/opentemplates/1-0/guides/api-tokens/
updated: 2026-11-19T07:56:16.775Z
---

# API tokens

> Create a token for each app that renders templates, and change it when you need to.

Your apps need an API token to render templates. Give each app its own token, so that you can change one without touching the others.

Click **Tokens** in the menu on the left to see your tokens.

![The Tokens page with two tokens](/files/JapW224ZY60f.webp)

## Create a token

**1.** Click **Create**.

**2.** Fill in the form:

![The Create token form](/files/JapW234aY61f.webp)

| Field | What it does |
|---|---|
| **Name** | Required. A name you recognise, for example the name of the app. |
| **Access token** | Required. A random token is already filled in. You can type your own, from 5 to 50 characters. |
| **Allow read list of profiles** | Lets the app [list the profiles and templates](../../reference/profiles/). Rendering works without it. |

**3.** Click **SUBMIT**.

**4.** Click the card of the token to open it again, and copy the **Access token** into the configuration of your app.

## Change a token

Click the card of the token, change the **Name**, the **Access token** or the checkbox, and click **SUBMIT**. When you change the **Access token**, the old value stops working at once. Use this to lock out an app or to replace a token that has leaked.

## Use the token

Your app sends the token in the `x-token` header or in the `token` query argument. See [REST API overview](../../reference/rest-api/).
