Skip to content

Config API

Config API

API for managing system configuration.

Base URL

http://localhost:3001/api/config

Get Configuration

Get current system configuration.

Request

GET /api/config/config

Response

{
"kestra": {
"url": "http://localhost:8080",
"enabled": true
},
"cline": {
"enabled": true
}
}

Update API Keys

Update LLM provider API keys at runtime.

Request

POST /api/config/keys
Content-Type: application/json
{
"groq": "new_groq_key",
"openai": "new_openai_key",
"anthropic": "new_anthropic_key",
"redTeamGroq": "red_team_key",
"blueTeamGroq": "blue_team_key"
}

Response

{
"success": true,
"message": "API keys updated"
}

Update Kestra Configuration

Update Kestra integration settings.

Request

POST /api/config/kestra
Content-Type: application/json
{
"url": "http://localhost:8080",
"apiKey": "new_key"
}

Clear API Keys

Clear all API keys from memory.

Request

DELETE /api/config/keys

Response

{
"success": true,
"message": "API keys cleared"
}

Next Steps