Documentation Index
Fetch the complete documentation index at: https://docs.ghostlyx.com/llms.txt
Use this file to discover all available pages before exploring further.
What API tokens are for
API tokens authenticate requests to the GhostlyX REST API and the MCP server. They are required if you want to query your analytics data programmatically or connect an AI assistant to GhostlyX.Creating a token
- Go to Settings > API Tokens.
- Click Create token.
- Give the token a descriptive name (for example, “Claude Desktop” or “CI reporting script”).
- Click Create.
- Copy the token value immediately. It is shown only once.
Token scope
All tokens currently provide read-only access to analytics data for all sites on your account. Write access (for example, creating annotations) is also available through the MCP server using the same token. There is no per-site token scoping at this time.Revoking a token
- Go to Settings > API Tokens.
- Click Revoke next to the token you want to remove.
- Confirm the action.
Security
- Store tokens in environment variables or a secrets manager. Never hardcode them in source code.
- Rotate tokens periodically, especially if a token may have been exposed.
- Revoke tokens that are no longer in use.