cURL
curl --request POST \ --url https://api.app.shinzo.ai/auth/provider_keys/test \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "provider": "<string>", "provider_api_key": "<string>", "provider_base_url": "<string>" } '
Test an AI provider API key without storing it.
anthropic
curl -X POST https://api.app.shinzo.ai/auth/provider_keys/test \ -H "Content-Type: application/json" \ -d '{ "provider": "anthropic", "provider_api_key": "sk-ant-api03-..." }'
{ "valid": true, "provider": "anthropic", "message": "API key is valid" }
{ "valid": false, "provider": "anthropic", "error": "Authentication failed: Invalid API key" }
200
valid
400