# Kgateway DirectResponse API

**Canonical:** https://apis.io/apis/kgateway/kgateway-directresponse-api/  
**Provider:** Kgateway — https://apis.io/providers/kgateway/  
**Base URL:** https://kubernetes.default.svc/apis/gateway.kgateway.dev/v1alpha1  
**Documentation:** https://kgateway.dev/docs/envoy/latest/reference/api/

Kgateway DirectResponse API is one of 7 APIs that [Kgateway](https://apis.io/providers/kgateway/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 7 JSON Schema definitions. Tagged areas include DirectResponse. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 7 JSON Schemas.

Configure Gateways to directly respond to incoming requests with a custom HTTP response code and body without forwarding to a backend service.

## Machine-readable artifacts (10)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/kgateway/refs/heads/main/openapi/kgateway-directresponse-api-openapi.yml
- **Documentation** — https://kgateway.dev/docs/envoy/latest/reference/api/
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/kgateway/refs/heads/main/json-schema/traffic-policy.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/kgateway/refs/heads/main/json-schema/backend.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/kgateway/refs/heads/main/json-schema/direct-response.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/kgateway/refs/heads/main/json-schema/gateway-extension.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/kgateway/refs/heads/main/json-schema/gateway-parameters.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/kgateway/refs/heads/main/json-schema/http-listener-policy.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/kgateway/refs/heads/main/json-schema/ai-backend.json
- **JSONLD** — https://raw.githubusercontent.com/api-evangelist/kgateway/refs/heads/main/json-ld/kgateway-context.jsonld

## Other Kgateway APIs (6)

- [Kgateway AIBackend API](https://apis.io/apis/kgateway/kgateway-aibackend-api/)
- [Kgateway Backend API](https://apis.io/apis/kgateway/kgateway-backend-api/)
- [Kgateway GatewayExtension API](https://apis.io/apis/kgateway/kgateway-gatewayextension-api/)
- [Kgateway GatewayParameters API](https://apis.io/apis/kgateway/kgateway-gatewayparameters-api/)
- [Kgateway HTTPListenerPolicy API](https://apis.io/apis/kgateway/kgateway-httplistenerpolicy-api/)
- [Kgateway TrafficPolicy API](https://apis.io/apis/kgateway/kgateway-trafficpolicy-api/)

## Tags

DirectResponse

---

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