curl --request POST \
--url https://api.example.com/api/settings/test-connection \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>",
"key": "<string>"
}
'{
"success": true,
"provider": "<string>",
"message": "<string>"
}Test AI provider API key by making a lightweight completion request
curl --request POST \
--url https://api.example.com/api/settings/test-connection \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>",
"key": "<string>"
}
'{
"success": true,
"provider": "<string>",
"message": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/iamngoni/heimdall/llms.txt
Use this file to discover all available pages before exploring further.
claude-sonnet-4-20250514gpt-4o-minillama3.2POST /api/settings/api-keys to actually store a key after validation.anthropic, openai, ollamahttp://localhost:11434).curl -X POST https://api.heimdall.dev/api/settings/test-connection \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"provider": "anthropic",
"key": "sk-ant-api03-..."
}'
{
"status": "ok",
"data": {
"success": true,
"provider": "anthropic",
"message": "Connection successful. Provider: anthropic. Response: Hello"
}
}
{
"status": "ok",
"data": {
"success": false,
"provider": "anthropic",
"message": "Connection failed: Invalid API key"
}
}
success field in the response data to determine if the test passed.sk-ant-api03-...claude-sonnet-4-20250514 modelsk-...gpt-4o-mini modelhttp://localhost:11434)llama3.2 modelsrc/routes/settings.rs:344 for the endpoint implementation.