Providers
Use the Providers API to list the supported LLM provider keys configured for AI Service.
List providers
Endpoint
GET /aisvc/api/v1/providers
Request
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
detailed | Boolean | No | When true, return detailed provider objects that also include each provider's credentials-vault secret name. Omit (or false) to return the default response — a plain list of provider names. |
Request examples
GET /aisvc/api/v1/providers
GET /aisvc/api/v1/providers?detailed=true
Response
Codes
| Code | Description |
|---|---|
200 | Success |
401 | Unauthorized |
500 | Server Error |
Response body example
Default (detailed omitted or false) — a list of provider identifiers:
[
"openai",
"anthropic"
]
With detailed=true — provider objects including the secret name:
{
"_providers": [
{ "_name": "openai", "_secretName": "OPENAI_API_KEY" },
{ "_name": "anthropic", "_secretName": "ANTHROPIC_API_KEY" }
]
}
| Field | Description |
|---|---|
_name | Provider identifier (the value used in an agent's provider field). |
_secretName | The credentials-vault secret name that must hold this provider's API key (for example, OPENAI_API_KEY, ANTHROPIC_API_KEY). |