Skip to main content
GET
/
config
Retrieve current configuration status
curl --request GET \
  --url https://{tenant}/config \
  --header 'X-Tyk-Authorization: <api-key>'
{
  "listen_port": 9090,
  "healthcheck_port": 8180,
  "http_port": 8180,
  "enable_http_profiler": false,
  "server_options": {
    "use_ssl": false,
    "certificate": {
      "cert_file": "./server.crt",
      "key_file": "./server.key"
    },
    "min_version": 0,
    "ssl_ciphers": "<string>",
    "ssl_certificates": "<string>"
  },
  "http_server_options": {
    "use_ssl": false,
    "certificate": {
      "cert_file": "",
      "key_file": ""
    },
    "min_version": 0,
    "ssl_ciphers": "<string>",
    "ssl_certificates": "<string>"
  },
  "security": {
    "private_certificate_encoding_secret": "",
    "enable_http_secure_endpoints": true,
    "secret": ""
  },
  "storage": {
    "type": "redis",
    "host": "localhost",
    "port": 6379,
    "master_name": "",
    "sentinel_password": "",
    "username": "",
    "password": "",
    "database": 0,
    "optimisation_max_idle": 0,
    "optimisation_max_active": 0,
    "enable_cluster": false,
    "hosts": "<string>",
    "addrs": "<string>",
    "redis_use_ssl": false,
    "redis_ssl_insecure_skip_verify": false,
    "debug": false,
    "timeout": 0,
    "use_ssl": false,
    "ssl_insecure_skip_verify": false,
    "ca_file": "",
    "cert_file": "",
    "key_file": "",
    "max_version": "",
    "min_version": ""
  },
  "analytics": {
    "type": "mongo",
    "connection_string": "",
    "table_sharding": false,
    "batch_size": 0,
    "postgres": {
      "prefer_simple_protocol": false
    },
    "mysql": {
      "default_string_size": 0,
      "disable_datetime_precision": false,
      "dont_support_rename_index": false,
      "dont_support_rename_column": false,
      "skip_initialize_with_version": false
    },
    "mongo_url": "",
    "mongo_use_ssl": false,
    "mongo_ssl_insecure_skip_verify": false,
    "mongo_ssl_allow_invalid_hostnames": false,
    "mongo_ssl_ca_file": "",
    "mongo_ssl_pem_keyfile": "",
    "mongo_session_consistency": "",
    "mongo_batch_size": 0,
    "driver": "mongo-go",
    "mongo_direct_connection": false
  },
  "hash_keys": true,
  "session_timeout": 0,
  "forward_analytics_to_pump": false,
  "enable_multiple_analytics_keys": false,
  "dont_store_selective": false,
  "dont_store_aggregate": false,
  "org_session_expiration": 60,
  "org_session_cleanup": 60,
  "license": "",
  "aggregates_ignore_tags": "<string>",
  "track_all_paths": false,
  "store_analytics_per_minute": false,
  "ignore_tag_prefix_list": "<string>",
  "threshold_len_tag_list": 1000,
  "omit_analytics_index_creation": false,
  "enable_separate_analytics_store": false,
  "analytics_storage": {
    "type": "",
    "host": "",
    "port": 0,
    "master_name": "",
    "sentinel_password": "",
    "username": "",
    "password": "",
    "database": 0,
    "optimisation_max_idle": 0,
    "optimisation_max_active": 0,
    "enable_cluster": false,
    "hosts": "<string>",
    "addrs": "<string>",
    "redis_use_ssl": false,
    "redis_ssl_insecure_skip_verify": false,
    "debug": false,
    "timeout": 0,
    "use_ssl": false,
    "ssl_insecure_skip_verify": false,
    "ca_file": "",
    "cert_file": "",
    "key_file": "",
    "max_version": "",
    "min_version": ""
  },
  "log_level": "info",
  "enable_key_logging": false,
  "sync_worker_config": {
    "enabled": true,
    "hash_keys": true,
    "max_batch_size": 1000,
    "time_between_batches": 3,
    "max_workers": 1000,
    "warmup_time": 0,
    "group_key_ttl": 30
  },
  "enable_ownership": false,
  "config_field": "sync_worker_config.warmup_time",
  "env": "TYK_MDCB_SYNCWORKERCONFIG_WARMUPTIME",
  "value": "0",
  "obfuscated": false,
  "type": "full"
}

Authorizations

X-Tyk-Authorization
string
header
required

Headers

X-Tyk-Authorization
string
required

Secret value set in sink.conf

Query Parameters

field
string

Optional configuration field name to filter by

Response

Successful retrieval of the current configuration.

listen_port
integer
Example:

9090

healthcheck_port
integer
Example:

8180

http_port
integer
Example:

8180

enable_http_profiler
boolean
Example:

false

server_options
object
http_server_options
object
security
object
storage
object
analytics
object
hash_keys
boolean
Example:

true

session_timeout
integer
Example:

0

forward_analytics_to_pump
boolean
Example:

false

enable_multiple_analytics_keys
boolean
Example:

false

dont_store_selective
boolean
Example:

false

dont_store_aggregate
boolean
Example:

false

org_session_expiration
integer
Example:

60

org_session_cleanup
integer
Example:

60

license
string
Example:

""

aggregates_ignore_tags
string | null
track_all_paths
boolean
Example:

false

store_analytics_per_minute
boolean
Example:

false

ignore_tag_prefix_list
string | null
threshold_len_tag_list
integer
Example:

1000

omit_analytics_index_creation
boolean
Example:

false

enable_separate_analytics_store
boolean
Example:

false

analytics_storage
object
log_level
string
Example:

"info"

enable_key_logging
boolean
Example:

false

sync_worker_config
object
enable_ownership
boolean
Example:

false

config_field
string
Example:

"sync_worker_config.warmup_time"

env
string
Example:

"TYK_MDCB_SYNCWORKERCONFIG_WARMUPTIME"

value
string
Example:

"0"

obfuscated
boolean
Example:

false

type
enum<string>
Available options:
full,
single