LLM Configurations
Return LLM configs visible to the caller. Org scoping: non-admin users see only configs with matching org_id or org_id=NULL (shared pool). If role_id is provided, additionally filter by role-based permissions.
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
api_keyInactivefalsetrueValidation Error
GET /api/v1/llm-configs HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 1,
"model_name": "text",
"description": "text",
"username": "text",
"auth_method": "api_key",
"status": "Inactive",
"is_default": false,
"connected_at": "2026-01-01T00:00:00.000Z",
"last_sync": "2026-01-01T00:00:00.000Z",
"url": "text",
"project": [
{
"org_id": 1,
"name": "text",
"description": "text",
"is_archived": false,
"archived_at": "2026-01-01T00:00:00.000Z",
"llm_config_id": 1
}
],
"is_compliance": true,
"max_token": 1,
"reasoning_effort": "none"
}
]Enter your JWT token (without 'Bearer ' prefix)
api_keyfalseInactiveSuccessful Response
api_keyInactivefalsetrueValidation Error
POST /api/v1/llm-configs HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 208
{
"model_name": "text",
"description": "text",
"url": "text",
"username": "text",
"password": "text",
"api_key": "text",
"auth_method": "api_key",
"is_default": false,
"status": "Inactive",
"reasoning_effort": "none",
"org_id": 1
}{
"id": 1,
"model_name": "text",
"description": "text",
"username": "text",
"auth_method": "api_key",
"status": "Inactive",
"is_default": false,
"connected_at": "2026-01-01T00:00:00.000Z",
"last_sync": "2026-01-01T00:00:00.000Z",
"url": "text",
"project": [
{
"org_id": 1,
"name": "text",
"description": "text",
"is_archived": false,
"archived_at": "2026-01-01T00:00:00.000Z",
"llm_config_id": 1
}
],
"is_compliance": true,
"max_token": 1,
"reasoning_effort": "none"
}Enter your JWT token (without 'Bearer ' prefix)
Successful Response
api_keyInactivefalsetrueValidation Error
GET /api/v1/llm-configs/{config_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"model_name": "text",
"description": "text",
"username": "text",
"auth_method": "api_key",
"status": "Inactive",
"is_default": false,
"connected_at": "2026-01-01T00:00:00.000Z",
"last_sync": "2026-01-01T00:00:00.000Z",
"url": "text",
"project": [
{
"org_id": 1,
"name": "text",
"description": "text",
"is_archived": false,
"archived_at": "2026-01-01T00:00:00.000Z",
"llm_config_id": 1
}
],
"is_compliance": true,
"max_token": 1,
"reasoning_effort": "none"
}Enter your JWT token (without 'Bearer ' prefix)
api_keyfalseInactiveSuccessful Response
api_keyInactivefalsetrueValidation Error
PUT /api/v1/llm-configs/{config_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 197
{
"model_name": "text",
"description": "text",
"url": "text",
"username": "text",
"password": "text",
"api_key": "text",
"auth_method": "api_key",
"is_default": false,
"status": "Inactive",
"reasoning_effort": "none"
}{
"id": 1,
"model_name": "text",
"description": "text",
"username": "text",
"auth_method": "api_key",
"status": "Inactive",
"is_default": false,
"connected_at": "2026-01-01T00:00:00.000Z",
"last_sync": "2026-01-01T00:00:00.000Z",
"url": "text",
"project": [
{
"org_id": 1,
"name": "text",
"description": "text",
"is_archived": false,
"archived_at": "2026-01-01T00:00:00.000Z",
"llm_config_id": 1
}
],
"is_compliance": true,
"max_token": 1,
"reasoning_effort": "none"
}Enter your JWT token (without 'Bearer ' prefix)
Successful Response
api_keyInactivefalsetrueValidation Error
DELETE /api/v1/llm-configs/{config_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"model_name": "text",
"description": "text",
"username": "text",
"auth_method": "api_key",
"status": "Inactive",
"is_default": false,
"connected_at": "2026-01-01T00:00:00.000Z",
"last_sync": "2026-01-01T00:00:00.000Z",
"url": "text",
"project": [
{
"org_id": 1,
"name": "text",
"description": "text",
"is_archived": false,
"archived_at": "2026-01-01T00:00:00.000Z",
"llm_config_id": 1
}
],
"is_compliance": true,
"max_token": 1,
"reasoning_effort": "none"
}Make the given LLM config the platform default, used for any request (chat outside a project, etc.) that doesn't explicitly specify a model. Admin-only. Any configured model may be chosen regardless of its current status — the caller is responsible for picking one that's actually reachable.
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
api_keyInactivefalsetrueValidation Error
PATCH /api/v1/llm-configs/{config_id}/default HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"model_name": "text",
"description": "text",
"username": "text",
"auth_method": "api_key",
"status": "Inactive",
"is_default": false,
"connected_at": "2026-01-01T00:00:00.000Z",
"last_sync": "2026-01-01T00:00:00.000Z",
"url": "text",
"project": [
{
"org_id": 1,
"name": "text",
"description": "text",
"is_archived": false,
"archived_at": "2026-01-01T00:00:00.000Z",
"llm_config_id": 1
}
],
"is_compliance": true,
"max_token": 1,
"reasoning_effort": "none"
}Last updated
