# LangWatch Gateway API

**Canonical:** https://apis.io/apis/langwatch/langwatch-gateway-api/  
**Provider:** LangWatch — https://apis.io/providers/langwatch/  
**Base URL:** https://app.langwatch.ai  
**Documentation:** https://langwatch.ai/docs/api-reference/traces

LangWatch Gateway API is one of 62 APIs that [LangWatch](https://apis.io/providers/langwatch/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Gateways. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

The Gateway API from LangWatch — 14 operation(s) for gateway.

## Operations (24)

| Method | Path | Summary |
|---|---|---|
| GET | `/api/gateway/v1/virtual-keys` | List virtual keys |
| POST | `/api/gateway/v1/virtual-keys` | Create virtual key |
| GET | `/api/gateway/v1/virtual-keys/{id}` | Get virtual key |
| PATCH | `/api/gateway/v1/virtual-keys/{id}` | Update virtual key |
| GET | `/api/gateway/v1/virtual-keys/{id}/spend` | Read a virtual key's spend |
| POST | `/api/gateway/v1/virtual-keys/{id}/rotate` | Rotate virtual key secret |
| POST | `/api/gateway/v1/virtual-keys/{id}/disable` | Disable virtual key |
| POST | `/api/gateway/v1/virtual-keys/{id}/enable` | Enable virtual key |
| POST | `/api/gateway/v1/virtual-keys/{id}/revoke` | Revoke virtual key |
| GET | `/api/gateway/v1/budgets` | List budgets |
| POST | `/api/gateway/v1/budgets` | Create budget |
| GET | `/api/gateway/v1/budgets/{id}` | Get budget |
| PATCH | `/api/gateway/v1/budgets/{id}` | Update budget |
| DELETE | `/api/gateway/v1/budgets/{id}` | Archive budget |
| POST | `/api/gateway/v1/budgets/{id}/reset` | Reset budget period |
| GET | `/api/gateway/v1/cache-rules` | List cache-control rules |
| POST | `/api/gateway/v1/cache-rules` | Create a cache rule |
| GET | `/api/gateway/v1/cache-rules/{id}` | Get a cache rule |
| PATCH | `/api/gateway/v1/cache-rules/{id}` | Update a cache rule |
| DELETE | `/api/gateway/v1/cache-rules/{id}` | Archive a cache rule |
| GET | `/api/gateway/v1/providers` | List provider bindings |
| POST | `/api/gateway/v1/providers` | Bind a model provider to the gateway |
| PATCH | `/api/gateway/v1/providers/{id}` | Update provider binding |
| DELETE | `/api/gateway/v1/providers/{id}` | Disable provider binding |

## Machine-readable artifacts (21)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/langwatch/refs/heads/main/openapi/langwatch-gateway-api-openapi.yml
- **Documentation** — https://langwatch.ai/docs/api-reference/traces
- **Documentation** — https://langwatch.ai/docs/api-reference/evaluators
- **Documentation** — https://langwatch.ai/docs/api-reference/monitors
- **Documentation** — https://langwatch.ai/docs/api-reference/datasets
- **Documentation** — https://langwatch.ai/docs/api-reference/prompts
- **Documentation** — https://github.com/langwatch/scenario
- **Documentation** — https://langwatch.ai/docs/api-reference/simulation-runs
- **Documentation** — https://langwatch.ai/docs/api-reference/suites
- **Documentation** — https://langwatch.ai/docs/api-reference/experiments
- **Documentation** — https://langwatch.ai/docs/api-reference/annotations
- **Documentation** — https://langwatch.ai/docs/api-reference/analytics
- **Documentation** — https://langwatch.ai/docs/api-reference/dashboards
- **Documentation** — https://langwatch.ai/docs/api-reference/projects
- **Documentation** — https://langwatch.ai/docs/api-reference/api-keys
- **Documentation** — https://langwatch.ai/docs/api-reference/secrets
- **Documentation** — https://langwatch.ai/docs/api-reference/model-providers
- **Documentation** — https://langwatch.ai/docs/api-reference/gateway
- **Documentation** — https://langwatch.ai/docs/api-reference/workflows
- **Documentation** — https://langwatch.ai/docs/api-reference/agents
- **Documentation** — https://langwatch.ai/docs/api-reference/triggers

## Other LangWatch APIs (12)

- [LangWatch Agents API](https://apis.io/apis/langwatch/langwatch-agents-api/)
- [LangWatch Analytics API](https://apis.io/apis/langwatch/langwatch-analytics-api/)
- [LangWatch Annotations API](https://apis.io/apis/langwatch/langwatch-annotations-api/)
- [LangWatch Api Keys API](https://apis.io/apis/langwatch/langwatch-api-keys-api/)
- [LangWatch Dashboards API](https://apis.io/apis/langwatch/langwatch-dashboards-api/)
- [LangWatch Dataset API](https://apis.io/apis/langwatch/langwatch-dataset-api/)
- [LangWatch Evaluators API](https://apis.io/apis/langwatch/langwatch-evaluators-api/)
- [LangWatch Graphs API](https://apis.io/apis/langwatch/langwatch-graphs-api/)
- [LangWatch Model Defaults API](https://apis.io/apis/langwatch/langwatch-model-defaults-api/)
- [LangWatch Model Providers API](https://apis.io/apis/langwatch/langwatch-model-providers-api/)
- [LangWatch Monitors API](https://apis.io/apis/langwatch/langwatch-monitors-api/)
- [LangWatch Projects API](https://apis.io/apis/langwatch/langwatch-projects-api/)

## Tags

Gateways

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/langwatch/langwatch-gateway-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/langwatch/.
