-
Notifications
You must be signed in to change notification settings - Fork 0
API Tokens
ewyct edited this page Apr 13, 2026
·
1 revision
Long-lived Bearer tokens for programmatic access to the Lastest REST API (/api/v1/*).
-
MCP Server -- Authenticate
@lastest/mcp-serverto your Lastest instance - VS Code Extension -- Connect the IDE extension to your server
- CI/CD Scripts -- Trigger builds and check results from pipelines
- Cross-Instance Migration -- Authenticate when importing/exporting tests between instances (see Test Migration)
- Custom Integrations -- Any tool that needs to call the Lastest API
- Go to Settings
- Find the API Tokens section
- Click Create Token
- Enter a label (e.g. "MCP Server", "CI Pipeline", "VS Code")
- Copy the token immediately -- it's only shown once
lastest_api_<64-hex-characters>
Include the token in the Authorization header:
curl -H "Authorization: Bearer lastest_api_abc123..." \
"$LASTEST_URL/api/v1/repos"The token authenticates against the same API endpoints available to browser sessions. It inherits the permissions of the user who created it.
- List -- All your tokens are visible in Settings with their label, creation date, and last-used date
- Revoke -- Click the revoke button to immediately invalidate a token
- Tokens cannot be retrieved after creation -- if lost, revoke and create a new one
When setting up the MCP server, use an API token as the key:
{
"mcpServers": {
"lastest": {
"command": "npx",
"args": ["@lastest/mcp-server"],
"env": {
"LASTEST_URL": "http://localhost:3000",
"LASTEST_API_KEY": "lastest_api_..."
}
}
}
}See MCP Server for full setup instructions.
Lastest Wiki
Getting Started
Core Features
- Visual Diffing
- AI Configuration
- Agent Monitoring
- Gamification
- Scheduled Runs
- Bug Reports
- Settings Reference
Integrations
- GitHub Integration
- GitLab Integration
- Google Sheets Integration
- Custom Webhooks
- VSCode Extension API
- MCP Server
Deployment & CI
Administration
Reference