---
title: Use OpenReports with OpenPlatform
project: OpenReports
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openreports/1-0/guides/openplatform/
updated: 2026-11-19T07:46:46.032Z
---

# Use OpenReports with OpenPlatform

> Add OpenReports to a Total.js OpenPlatform instance, so that its users sign in there.

OpenReports can run as an app inside [Total.js OpenPlatform](https://www.totaljs.com/openplatform/). OpenPlatform then signs people in, and OpenReports gets their permissions from it.

![The OpenPlatform part of Configuration with the import link and the two token fields](/files/JapUY09Qs61f.webp)

## Connect the two apps

1. In OpenReports, open **Configuration**. The **OpenPlatform** part shows a link that ends in `/openplatform.json`. Copy it.
2. In OpenPlatform, import the app with that link and copy the request token and the response token it gives you.
3. Back in **Configuration**, enter them in **Request token** and **Response token**, then select **SUBMIT**.

As the warning on the screen says, you are logged out when the tokens are saved. From then on, OpenReports answers `401: Unauthorized` when you open its address directly. Open it from OpenPlatform instead.

## Permissions

OpenReports offers these permissions to OpenPlatform:

| Permission | What it opens |
|---|---|
| **Reports** | The **Reports** screen. |
| **Views** | The **Views** screen. |
| **Setup** | The **Configuration** screen. |
| **All reports** | Every report, not only the reports the user created. |
| One per category | The reports of that category, for example **Sales**. |

## Go back to working without OpenPlatform

**1.** Stop OpenReports.

**2.** Open `databases/memorize_data.json` and empty the two tokens:

```json
"op_reqtoken": "",
"op_restoken": "",
```

**3.** Start OpenReports again. It opens without sign-in.
