GRGlobalRouter Docs
Console

Models and Providers / GET

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 list

Request parameters

No required request parameters. Authentication is read from the Authorization header.

Request examples

Get provider health request examples
curl "https://api.globalrouter.com/v1/providers/health" \
  -H "Authorization: Bearer $GR_API_KEY"

Response fields

FieldTypeRequiredDescription
providersarrayNoProvider health status list.
providers[].idstringYesProvider ID。
providers[].statusstringYesStatus such as healthy, degraded, or unavailable.

Response example

Response example
{
  "providers": [
    { "id": "qwen", "name": "Qwen", "status": "healthy" },
    { "id": "openai", "name": "OpenAI", "status": "degraded" }
  ]
}

Errors

HTTPCodeDescription
401UNAUTHORIZEDMissing or invalid Authorization Bearer token.
403FORBIDDENThe current API key is not allowed to call this scope or model.
429RATE_LIMITEDRequests are too frequent or the asynchronous task queue is full; reduce concurrency or retry later.