GRGlobalRouter Docs
Console

API keys / GET

List API keys

Lists API keys owned by the current calling key's owner.

GET /api/v1/keys

Disabled keys are omitted by default.

Back to API keys endpoint list

Request parameters

FieldTypeRequiredDescription
include_disabledbooleanNoWhether to include disabled keys; defaults to false.

Request examples

List API keys request examples
curl "https://api.globalrouter.com/api/v1/keys?include_disabled=false" \
  -H "Authorization: Bearer $GR_API_KEY"

Response fields

FieldTypeRequiredDescription
dataobject[]YesAPI key list.
data[].idstringYesAPI key record ID.
data[].hashstringYesHashed key reference, not the plaintext key.
data[].tenant_idstringYesTenant ID owning the key.
data[].namestringYesKey name.
data[].key_prefixstringYesKey prefix for identification and troubleshooting.
data[].scopesstring[]YesScopes.
data[].statusstringYesKey status.
data[].allowed_modelsstring[]NoModel allowlist.
data[].blocked_modelsstring[]NoModel blocklist.
data[].allowed_ipsstring[]NoSource IP allowlist.
data[].rate_limit_per_minuteintegerNoPer-minute rate limit.
data[].expires_atstringNoExpiration time.
data[].created_atstringNoCreation time.
data[].last_used_atstringNoLast-used time.

Response example

Response example
{
  "data": [
    {
      "id": "key_123",
      "hash": "key_hash_123",
      "tenant_id": "tenant_123",
      "name": "production-chat-key",
      "key_prefix": "gr_live",
      "scopes": ["chat", "models"],
      "status": "active",
      "allowed_models": ["qwen3-32b"],
      "blocked_models": [],
      "allowed_ips": ["203.0.113.10"],
      "rate_limit_per_minute": 120,
      "expires_at": "2026-12-31T23:59:59+00:00",
      "created_at": "2026-06-26T10:00:00+00:00",
      "last_used_at": "2026-06-26T10:05:00+00:00"
    }
  ]
}