defmodule ToweropsWeb.HelpLive.Sections.ApiTokens do @moduledoc false use ToweropsWeb, :html def render(assigns) do ~H"""

API Tokens

API tokens allow external applications and scripts to authenticate with the Towerops REST and GraphQL APIs. Each token is scoped to an organization and can be managed from your user settings.

Creating a Token

  1. Go to User Settings → API Tokens
  2. Click "Create API Token"
  3. Give the token a descriptive name (e.g., "Grafana Integration")
  4. Copy the token immediately — it will only be shown once

Using a Token

Include the token in the Authorization header:

Authorization: Bearer your-api-token-here

Security Best Practices

See also: <.link navigate={~p"/help?section=rest-api"} class="underline">REST API and <.link navigate={~p"/help?section=graphql-api"} class="underline"> GraphQL API for endpoint documentation.

""" end end