Getting a gateway¶
Note
The Admin API requires no token. The Admin API is typically protected at the network level.
Send the request as GET to the path /admin/v1/gateways/{gateway_id}.
Request¶
The following parameters are available:
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
gateway_id |
path | string |
yes | ID of the gateway. |
Example¶
Example of the response body:
{
"id": "gw_xyz789",
"tenant_id": "ten_abc123",
"slug": "production",
"config": {
"auth_required": true,
"budget_usd": null,
"cache_ttl": 0,
"retry_count": 2,
"timeout_ms": 60000,
"log_payloads": true,
"rate_limit": {
"requests": 100,
"window_sec": 60
},
"ip_allowlist": [
"10.0.0.0/8",
"203.0.113.5"
],
"guardrails": [],
"azure_endpoint": "https://my-resource.openai.azure.com",
"azure_deployment": null,
"azure_api_version": "2024-02-01",
"bedrock_region": "us-east-1",
"vertex_project": null,
"vertex_region": "us-central1",
"provider_base_urls": {
"openai": "https://llm-proxy.internal/v1"
}
},
"spend_usd": 12.34,
"created_at": 1742544000
}
Responses¶
The endpoint answers the request with the following status codes:
| Status code | Description |
|---|---|
200 |
Gateway object. |
404 |
Resource not found (Admin API). |