curl --request GET \
--url https://api.example.com/api/ai/key-status{
"hasKey": true
}Check if the user has configured a Gemini API key
curl --request GET \
--url https://api.example.com/api/ai/key-status{
"hasKey": true
}true if the user has a Gemini API key configured, false otherwisecurl -X GET https://api.example.com/api/ai/key-status \
-H "Authorization: Bearer YOUR_TOKEN_HERE"
{
"hasKey": true
}
{
"error": "Unauthorized",
"message": "Invalid or missing authentication token"
}
{
"error": "Not Found",
"message": "User not found"
}