{% extends "base.html" %} {% block title %}API Tokens - AISBF{% endblock %} {% block content %} {% if success %}
Generate tokens to authenticate requests to your personal API endpoints.
Copy this token now — it won't be shown again.
Add the token to every request in the Authorization header:
Token scopes:
| Scope | Description |
|---|---|
api | Proxy API endpoints only (/api/u/…) |
mcp | MCP tool endpoints only (/mcp/u/…) |
both | Both API and MCP endpoints |
Available endpoints:
| Method | Endpoint | Scope | Description |
|---|---|---|---|
| GET | /api/u/{{ session.username }}/models | api | List your models |
| GET | /api/u/{{ session.username }}/providers | api | List your providers |
| GET | /api/u/{{ session.username }}/rotations | api | List your rotations |
| GET | /api/u/{{ session.username }}/autoselects | api | List your autoselects |
| POST | /api/u/{{ session.username }}/chat/completions | api | Chat using your configs |
| GET | /mcp/u/{{ session.username }}/tools | mcp | List MCP tools |
| POST | /mcp/u/{{ session.username }}/tools/call | mcp | Call MCP tools |
Example curl commands: