Get provider health
Reads provider health status.
GET /v1/providers/health
Used to show provider availability in migration scenarios. This endpoint does not expose provider-internal keys to tenants.
Back to Models and Providers endpoint listRequest parameters
No required request parameters. Authentication is read from the Authorization header.
Request examples
curl "https://api.globalrouter.com/v1/providers/health" \ -H "Authorization: Bearer $GR_API_KEY"
Response fields
| Field | Type | Required | Description |
|---|---|---|---|
providers | array | No | Provider health status list. |
providers[].id | string | Yes | Provider ID。 |
providers[].status | string | Yes | Status such as healthy, degraded, or unavailable. |
Response example
{
"providers": [
{ "id": "qwen", "name": "Qwen", "status": "healthy" },
{ "id": "openai", "name": "OpenAI", "status": "degraded" }
]
}Errors
| HTTP | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid Authorization Bearer token. |
| 403 | FORBIDDEN | The current API key is not allowed to call this scope or model. |
| 429 | RATE_LIMITED | Requests are too frequent or the asynchronous task queue is full; reduce concurrency or retry later. |