API Tokens
Create and manage API tokens for secure programmatic access to GraphorLM
This guide explains how to create, manage, and use API tokens to securely connect external applications and AI assistants to your GraphorLM flows.
Overview
API tokens provide secure authentication for programmatic access to your GraphorLM projects and flows. They are essential for:
- Connecting applications to your RAG pipelines via REST API
- Integrating with AI assistants through MCP Server
- Automating processes with GraphorLM resources
- Building custom integrations with your existing tools
Creating API Tokens
To create a new API token:
- Navigate to your project in GraphorLM
- Click on API Tokens in the left sidebar
- Click the Create New Token button
- Enter a descriptive name for your token (e.g., “Production REST API” or “Claude Integration”)
- Click Create
- Important: Copy your token immediately and store it securely. For security reasons, the full token will only be displayed once.
Managing Tokens
The API Tokens page provides several management capabilities:
Revoking Tokens
To revoke a token that is no longer needed or may be compromised:
- Navigate to the API Tokens page
- Find the token you want to revoke
- Click the Delete icon next to the token
- Confirm the revocation
Once revoked, a token cannot be restored. Any services using the token will immediately lose access to your GraphorLM resources.
Using API Tokens
API tokens are used in different ways depending on your integration method:
REST API
For REST API integrations, include your token as a Bearer token in the Authorization header:
MCP Server
For MCP Server integrations, include your token in the environment configuration:
Token Security Best Practices
API tokens provide access to your GraphorLM resources, so it’s important to handle them securely:
Storage
- Never store tokens in public repositories or client-side code
- Use environment variables or secure secret management systems
- For development environments, consider using .env files (excluded from version control)
Distribution
- Share tokens securely with team members who need access
- Use encrypted channels for token distribution
Rotation
- Regularly rotate tokens used in production systems
- Immediately revoke tokens when team members leave or roles change
- Create new tokens rather than sharing existing ones for new integrations
Troubleshooting Token Issues
Next Steps
After setting up your API tokens, explore: