---
title: Access and tokens
project: OpenLogger
version: 1.0
section: faq
language: en
license: MIT
url: https://totaljs.es/docs/openlogger/1-0/faq/access/
updated: 2026-11-19T08:02:25.706Z
---

# Access and tokens

> A lost primary access token, blocked requests and which token to use where.

## I lost the primary access token. How do I get back in?

**1.** Stop OpenLogger.

**2.** Open `databases/memorize_data.json` in a text editor. In the `config` section, set `token` to an empty value:

```json
"token": "",
```

**3.** Start OpenLogger and open `/setup/`. It opens without a token.

**4.** Set a new token right away in **Configuration**. See [First start](../../guides/first-start/).

## The primary access token stopped working after I filled in the OpenPlatform tokens

With **Request token** and **Response token** filled in, the admin interface accepts only Total.js OpenPlatform. Follow the steps above, and in step 2 also empty `op_reqtoken` and `op_restoken`.

## Can my app use the primary access token to send logs?

No. Sending a log needs an [API token](../../guides/api-tokens/); the primary access token answers `401` there. The other way round, an API token cannot read logs.

## How do I stop a token from working?

Open the token in **Tokens**, change **Access token** to a new random value and click **SUBMIT**. The old value stops working at once. See [API tokens](../../guides/api-tokens/).

## My app gets 401 although the token is right. Why?

OpenLogger blocks an IP address for up to 15 minutes after six requests with a wrong token, even when the next requests have a valid token. Wait, or restart OpenLogger. See [Errors](../../reference/errors/).
