Documentation Index
Fetch the complete documentation index at: https://tyk.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Availability
| Component | Version | Edition |
|---|---|---|
| Gateway | Available since v5.12.0 | All |
Configuration Inspection Endpoints
Gateway offers two endpoints for configuration inspection:| Endpoint | Query Parameter | Description |
|---|---|---|
GET /config | field=<path> (optional) | Returns the full gateway configuration, or a single field if field is specified |
GET /env | env=<VAR> (optional) | Returns all environment variable mappings, or a single mapping if env is specified |
X-Tyk-Authorization header. Requests without this header return HTTP 403.
Enable Configuration Inspection
By default, configuration inspection endpoints are disabled to prevent accidental exposure of sensitive information. When disabled, all configuration inspection endpoints returnHTTP 404.
To enable it, set enable_config_inspection to true in your tyk.conf or use the equivalent environment variable.
- Configuration File
- Environment Variable
Examples
Inspect Full Gateway Configuration
Inspect a Single Config Field
To retrieve the value of a specific configuration field, use thefield query parameter with the field name:
Sensitive Field Redaction
Fields that contain secrets (for example,secret, passwords, and connection strings) are automatically shown as *REDACTED* in all responses. The obfuscated field in the response indicates whether the value has been redacted.
Inspect Environment Variables
To view all environment variable mappings:Gateway will only return environment variables that are prefixed with
TYK_GW_.