Back to Nocobase

API Key

docs/docs/en/integration/api-keys/index.md

2.0.61901 B
Original Source

API Key

Introduction

Installation

Usage Instructions

https://example.com/admin/settings/api-keys

Add API Key

Notes

  • The API key you add belongs to the current user and inherits the current user's role.
  • Ensure the APP_KEY environment variable is configured and kept confidential. If APP_KEY changes, all previously added API keys will become invalid.

How to configure APP_KEY

For the docker version, modify the docker-compose.yml file

diff
services:
  app:
    image: nocobase/nocobase:main
    environment:
+     - APP_KEY=4jAokvLKTJgM0v_JseUkJ

For the source code or create-nocobase-app installation, you can directly modify the APP_KEY in the .env file

bash
APP_KEY=4jAokvLKTJgM0v_JseUkJ