Skip to content

Dashboard — API Keys

Route: /dashboard/keys File: src/app/[locale]/dashboard/keys/page.tsx Layout: dashboard layout (sidebar) Component: @/components/pages/(Dashboard)/dashboardPage/ApiKeys

Purpose

Lets users manage their API keys for programmatic access to the INDOX platform.

Key Responsibilities

  • List existing API keys (name, created date, last used, masked secret)
  • Create new key (name input → generated secret shown once)
  • Revoke / delete a key
  • Copy key to clipboard
  • Possibly scope keys by permission level (read / write)

Backend Endpoint

No live endpoint today. The router exists at backend/apps/user/views/api_keys_pkg/endpoints.py (list / create / delete) but it is registered in no URLConf, so nothing under /api/v1/user/ serves API keys — the /api/keys/ this page used to name returns 404. Mount that router before wiring the page.

The keys themselves are real: APIKey.create_api_key mints an ak_… value and APIKey.validate_api_key authenticates it — that is how the SDKs authenticate.