REST API Reference¶
The Admin Panel exposes a RESTful API for programmatic access.
Authentication¶
When authentication is enabled (remote mode or custom token), include the token in the Authorization header:
API Endpoints¶
Tools¶
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/tools |
List all tools with status |
GET |
/api/tools/{name} |
Get single tool details |
POST |
/api/tools/{name}/enable |
Enable a tool |
POST |
/api/tools/{name}/disable |
Disable a tool |
GET |
/api/tools/{name}/permissions |
Evaluate permission policy for a tool |
PATCH |
/api/tools/{name}/metadata |
Update tool metadata (think_augment, defer) |
POST |
/api/tools/{name}/override |
Override description, title, tags and execution hints |
DELETE |
/api/tools/{name}/override |
Restore the original definition |
Agent Skills¶
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/skills |
List discovered skills, roots, and exposed tool names |
GET |
/api/skills/{name} |
Get metadata, instructions, and resources |
POST |
/api/skills/{name}/activate |
Return the activation prompt |
GET |
/api/skills/{name}/resources/{path} |
Read one bundled text resource |
Namespaces¶
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/namespaces |
List all namespaces |
POST |
/api/namespaces/{ns}/enable |
Enable all tools in namespace |
POST |
/api/namespaces/{ns}/disable |
Disable all tools in namespace |
PATCH |
/api/namespaces/{ns}/metadata |
Update metadata for all tools in namespace |
Execution Logs¶
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/logs |
Get execution logs |
GET |
/api/logs/stats |
Get execution statistics |
DELETE |
/api/logs |
Clear all logs |
State Management¶
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/state |
Export current state |
POST |
/api/state |
Import/restore state |
Configuration¶
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/config |
Get the loaded configuration, with source secrets masked |
PUT |
/api/config |
Update mode, disabled or enabled, persist when a config file is known, and return the masked result |
Source secrets are never returned in full. In both responses, every env,
headers and kwargs value is ***, URL userinfo is removed, and a stdio
command keeps only its executable — ["mcp-server", "***", "***"]. Writing
the configuration still stores the real values. A name_sep update applies to
the running registry only and returns {"name_sep": ..., "saved": false}.
API Examples¶
Response:
Response:
curl -X POST http://localhost:8081/api/tools/calculator_add/disable \
-H "Content-Type: application/json" \
-d '{"reason": "Under maintenance"}'
Response:
Response:
Response: