Tyk · Schema

APIDefinition represents the configuration for a single proxied API and it's versions.

API GatewayAPI ManagementGraphQLOpen Source

Properties

Name Type Description
tags array
CORS object
active boolean
allowed_ips array
api_id string
auth object
auth_provider object
base_identity_provided_by object
basic_auth object
blacklisted_ips array
cache_options object
certificates array
client_certificates array
config_data object
custom_middleware object
custom_middleware_bundle string
definition object
disable_quota boolean
disable_rate_limit boolean
do_not_track boolean
domain string
dont_set_quota_on_create boolean
enable_batch_request_support boolean
enable_context_vars boolean
enable_coprocess_auth boolean
enable_ip_blacklisting boolean
enable_ip_whitelisting boolean
enable_jwt boolean
enable_signature_checking boolean
event_handlers object
expire_analytics_after integer
global_rate_limit object
hmac_allowed_algorithms array
hmac_allowed_clock_skew number
id object
internal boolean
jwt_client_base_field string
jwt_expires_at_validation_skew integer
jwt_identity_base_field string
jwt_issued_at_validation_skew integer
jwt_not_before_validation_skew integer
jwt_policy_field_name string
jwt_scope_claim_name string
jwt_scope_to_policy_mapping object
jwt_signing_method string
jwt_skip_kid boolean
jwt_source string
name string
notifications object
oauth_meta object
openid_options object
org_id string
pinned_public_keys object
proxy object
response_processors array
session_lifetime integer
session_provider object
slug string
strip_auth_data boolean
tag_headers array
upstream_certificates object
uptime_tests object
use_basic_auth boolean
use_keyless boolean
use_mutual_tls_auth boolean
use_oauth2 boolean
use_openid boolean
use_standard_auth boolean
version_data object
View JSON Schema on GitHub

JSON Schema

tyk-apidefinition-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tyk/json-schema/tyk-apidefinition-schema.json",
  "title": "APIDefinition represents the configuration for a single proxied API and it's versions.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tyk-export-api-openapi.yml#/components/schemas/APIDefinition",
  "properties": {
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-go-name": "Tags"
    },
    "CORS": {
      "properties": {
        "allow_credentials": {
          "type": "boolean",
          "x-go-name": "AllowCredentials"
        },
        "allowed_headers": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "x-go-name": "AllowedHeaders"
        },
        "allowed_methods": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "x-go-name": "AllowedMethods"
        },
        "allowed_origins": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "x-go-name": "AllowedOrigins"
        },
        "debug": {
          "type": "boolean",
          "x-go-name": "Debug"
        },
        "enable": {
          "type": "boolean",
          "x-go-name": "Enable"
        },
        "exposed_headers": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "x-go-name": "ExposedHeaders"
        },
        "max_age": {
          "format": "int64",
          "type": "integer",
          "x-go-name": "MaxAge"
        },
        "options_passthrough": {
          "type": "boolean",
          "x-go-name": "OptionsPassthrough"
        }
      },
      "type": "object"
    },
    "active": {
      "type": "boolean",
      "x-go-name": "Active"
    },
    "allowed_ips": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-go-name": "AllowedIPs"
    },
    "api_id": {
      "type": "string",
      "x-go-name": "APIID"
    },
    "auth": {
      "$ref": "#/$defs/Auth"
    },
    "auth_provider": {
      "$ref": "#/$defs/AuthProviderMeta"
    },
    "base_identity_provided_by": {
      "$ref": "#/$defs/AuthTypeEnum"
    },
    "basic_auth": {
      "properties": {
        "body_password_regexp": {
          "type": "string",
          "x-go-name": "BodyPasswordRegexp"
        },
        "body_user_regexp": {
          "type": "string",
          "x-go-name": "BodyUserRegexp"
        },
        "cache_ttl": {
          "format": "int64",
          "type": "integer",
          "x-go-name": "CacheTTL"
        },
        "disable_caching": {
          "type": "boolean",
          "x-go-name": "DisableCaching"
        },
        "extract_from_body": {
          "type": "boolean",
          "x-go-name": "ExtractFromBody"
        }
      },
      "type": "object",
      "x-go-name": "BasicAuth"
    },
    "blacklisted_ips": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-go-name": "BlacklistedIPs"
    },
    "cache_options": {
      "$ref": "#/$defs/CacheOptions"
    },
    "certificates": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-go-name": "Certificates"
    },
    "client_certificates": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-go-name": "ClientCertificates"
    },
    "config_data": {
      "additionalProperties": {
        "type": "object"
      },
      "type": "object",
      "x-go-name": "ConfigData"
    },
    "custom_middleware": {
      "$ref": "#/$defs/MiddlewareSection"
    },
    "custom_middleware_bundle": {
      "type": "string",
      "x-go-name": "CustomMiddlewareBundle"
    },
    "definition": {
      "properties": {
        "key": {
          "type": "string",
          "x-go-name": "Key"
        },
        "location": {
          "type": "string",
          "x-go-name": "Location"
        },
        "strip_path": {
          "type": "boolean",
          "x-go-name": "StripPath"
        }
      },
      "type": "object",
      "x-go-name": "VersionDefinition"
    },
    "disable_quota": {
      "type": "boolean",
      "x-go-name": "DisableQuota"
    },
    "disable_rate_limit": {
      "type": "boolean",
      "x-go-name": "DisableRateLimit"
    },
    "do_not_track": {
      "type": "boolean",
      "x-go-name": "DoNotTrack"
    },
    "domain": {
      "type": "string",
      "x-go-name": "Domain"
    },
    "dont_set_quota_on_create": {
      "type": "boolean",
      "x-go-name": "DontSetQuotasOnCreate"
    },
    "enable_batch_request_support": {
      "type": "boolean",
      "x-go-name": "EnableBatchRequestSupport"
    },
    "enable_context_vars": {
      "type": "boolean",
      "x-go-name": "EnableContextVars"
    },
    "enable_coprocess_auth": {
      "type": "boolean",
      "x-go-name": "EnableCoProcessAuth"
    },
    "enable_ip_blacklisting": {
      "type": "boolean",
      "x-go-name": "EnableIpBlacklisting"
    },
    "enable_ip_whitelisting": {
      "type": "boolean",
      "x-go-name": "EnableIpWhiteListing"
    },
    "enable_jwt": {
      "type": "boolean",
      "x-go-name": "EnableJWT"
    },
    "enable_signature_checking": {
      "type": "boolean",
      "x-go-name": "EnableSignatureChecking"
    },
    "event_handlers": {
      "$ref": "#/$defs/EventHandlerMetaConfig"
    },
    "expire_analytics_after": {
      "format": "int64",
      "type": "integer",
      "x-go-name": "ExpireAnalyticsAfter"
    },
    "global_rate_limit": {
      "$ref": "#/$defs/GlobalRateLimit"
    },
    "hmac_allowed_algorithms": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-go-name": "HmacAllowedAlgorithms"
    },
    "hmac_allowed_clock_skew": {
      "format": "double",
      "type": "number",
      "x-go-name": "HmacAllowedClockSkew"
    },
    "id": {
      "$ref": "#/$defs/ObjectId"
    },
    "internal": {
      "type": "boolean",
      "x-go-name": "Internal"
    },
    "jwt_client_base_field": {
      "type": "string",
      "x-go-name": "JWTClientIDBaseField"
    },
    "jwt_expires_at_validation_skew": {
      "format": "uint64",
      "type": "integer",
      "x-go-name": "JWTExpiresAtValidationSkew"
    },
    "jwt_identity_base_field": {
      "type": "string",
      "x-go-name": "JWTIdentityBaseField"
    },
    "jwt_issued_at_validation_skew": {
      "format": "uint64",
      "type": "integer",
      "x-go-name": "JWTIssuedAtValidationSkew"
    },
    "jwt_not_before_validation_skew": {
      "format": "uint64",
      "type": "integer",
      "x-go-name": "JWTNotBeforeValidationSkew"
    },
    "jwt_policy_field_name": {
      "type": "string",
      "x-go-name": "JWTPolicyFieldName"
    },
    "jwt_scope_claim_name": {
      "type": "string",
      "x-go-name": "JWTScopeClaimName"
    },
    "jwt_scope_to_policy_mapping": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "x-go-name": "JWTScopeToPolicyMapping"
    },
    "jwt_signing_method": {
      "type": "string",
      "x-go-name": "JWTSigningMethod"
    },
    "jwt_skip_kid": {
      "type": "boolean",
      "x-go-name": "JWTSkipKid"
    },
    "jwt_source": {
      "type": "string",
      "x-go-name": "JWTSource"
    },
    "name": {
      "type": "string",
      "x-go-name": "Name"
    },
    "notifications": {
      "$ref": "#/$defs/NotificationsManager"
    },
    "oauth_meta": {
      "properties": {
        "allowed_access_types": {
          "items": {
            "$ref": "#/$defs/AccessRequestType"
          },
          "type": "array",
          "x-go-name": "AllowedAccessTypes"
        },
        "allowed_authorize_types": {
          "items": {
            "$ref": "#/$defs/AuthorizeRequestType"
          },
          "type": "array",
          "x-go-name": "AllowedAuthorizeTypes"
        },
        "auth_login_redirect": {
          "type": "string",
          "x-go-name": "AuthorizeLoginRedirect"
        }
      },
      "type": "object",
      "x-go-name": "Oauth2Meta"
    },
    "openid_options": {
      "$ref": "#/$defs/OpenIDOptions"
    },
    "org_id": {
      "type": "string",
      "x-go-name": "OrgID"
    },
    "pinned_public_keys": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "x-go-name": "PinnedPublicKeys"
    },
    "proxy": {
      "properties": {
        "check_host_against_uptime_tests": {
          "type": "boolean",
          "x-go-name": "CheckHostAgainstUptimeTests"
        },
        "disable_strip_slash": {
          "type": "boolean",
          "x-go-name": "DisableStripSlash"
        },
        "enable_load_balancing": {
          "type": "boolean",
          "x-go-name": "EnableLoadBalancing"
        },
        "listen_path": {
          "type": "string",
          "x-go-name": "ListenPath"
        },
        "preserve_host_header": {
          "type": "boolean",
          "x-go-name": "PreserveHostHeader"
        },
        "service_discovery": {
          "$ref": "#/$defs/ServiceDiscoveryConfiguration"
        },
        "strip_listen_path": {
          "type": "boolean",
          "x-go-name": "StripListenPath"
        },
        "target_list": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "x-go-name": "Targets"
        },
        "target_url": {
          "type": "string",
          "x-go-name": "TargetURL"
        },
        "transport": {
          "properties": {
            "proxy_url": {
              "type": "string",
              "x-go-name": "ProxyURL"
            },
            "ssl_ciphers": {
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-go-name": "SSLCipherSuites"
            },
            "ssl_insecure_skip_verify": {
              "type": "boolean",
              "x-go-name": "SSLInsecureSkipVerify"
            },
            "ssl_min_version": {
              "format": "uint16",
              "type": "integer",
              "x-go-name": "SSLMinVersion"
            }
          },
          "type": "object",
          "x-go-name": "Transport"
        }
      },
      "type": "object",
      "x-go-name": "Proxy"
    },
    "response_processors": {
      "items": {
        "$ref": "#/$defs/ResponseProcessor"
      },
      "type": "array",
      "x-go-name": "ResponseProcessors"
    },
    "session_lifetime": {
      "format": "int64",
      "type": "integer",
      "x-go-name": "SessionLifetime"
    },
    "session_provider": {
      "$ref": "#/$defs/SessionProviderMeta"
    },
    "slug": {
      "type": "string",
      "x-go-name": "Slug"
    },
    "strip_auth_data": {
      "type": "boolean",
      "x-go-name": "StripAuthData"
    },
    "tag_headers": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-go-name": "TagHeaders"
    },
    "upstream_certificates": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "x-go-name": "UpstreamCertificates"
    },
    "uptime_tests": {
      "properties": {
        "check_list": {
          "items": {
            "$ref": "#/$defs/HostCheckObject"
          },
          "type": "array",
          "x-go-name": "CheckList"
        },
        "config": {
          "properties": {
            "expire_utime_after": {
              "format": "int64",
              "type": "integer",
              "x-go-name": "ExpireUptimeAnalyticsAfter"
            },
            "recheck_wait": {
              "format": "int64",
              "type": "integer",
              "x-go-name": "RecheckWait"
            },
            "service_discovery": {
              "$ref": "#/$defs/ServiceDiscoveryConfiguration"
            }
          },
          "type": "object",
          "x-go-name": "Config"
        }
      },
      "type": "object",
      "x-go-name": "UptimeTests"
    },
    "use_basic_auth": {
      "type": "boolean",
      "x-go-name": "UseBasicAuth"
    },
    "use_keyless": {
      "type": "boolean",
      "x-go-name": "UseKeylessAccess"
    },
    "use_mutual_tls_auth": {
      "type": "boolean",
      "x-go-name": "UseMutualTLSAuth"
    },
    "use_oauth2": {
      "type": "boolean",
      "x-go-name": "UseOauth2"
    },
    "use_openid": {
      "type": "boolean",
      "x-go-name": "UseOpenID"
    },
    "use_standard_auth": {
      "type": "boolean",
      "x-go-name": "UseStandardAuth"
    },
    "version_data": {
      "properties": {
        "default_version": {
          "type": "string",
          "x-go-name": "DefaultVersion"
        },
        "not_versioned": {
          "type": "boolean",
          "x-go-name": "NotVersioned"
        },
        "versions": {
          "additionalProperties": {
            "$ref": "#/$defs/VersionInfo"
          },
          "type": "object",
          "x-go-name": "Versions"
        }
      },
      "type": "object",
      "x-go-name": "VersionData"
    }
  },
  "type": "object",
  "x-go-package": "github.com/TykTechnologies/tyk/apidef",
  "$defs": {
    "AccessRequestType": {
      "description": "AccessRequestType is the type for OAuth param `grant_type`",
      "type": "string",
      "x-go-package": "github.com/TykTechnologies/tyk/vendor/github.com/lonelycode/osin"
    },
    "Auth": {
      "properties": {
        "auth_header_name": {
          "type": "string",
          "x-go-name": "AuthHeaderName"
        },
        "cookie_name": {
          "type": "string",
          "x-go-name": "CookieName"
        },
        "param_name": {
          "type": "string",
          "x-go-name": "ParamName"
        },
        "signature": {
          "$ref": "#/$defs/SignatureConfig"
        },
        "use_certificate": {
          "type": "boolean",
          "x-go-name": "UseCertificate"
        },
        "use_cookie": {
          "type": "boolean",
          "x-go-name": "UseCookie"
        },
        "use_param": {
          "type": "boolean",
          "x-go-name": "UseParam"
        },
        "validate_signature": {
          "type": "boolean",
          "x-go-name": "ValidateSignature"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "AuthProviderCode": {
      "type": "string",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "AuthProviderMeta": {
      "properties": {
        "meta": {
          "additionalProperties": {
            "type": "object"
          },
          "type": "object",
          "x-go-name": "Meta"
        },
        "name": {
          "$ref": "#/$defs/AuthProviderCode"
        },
        "storage_engine": {
          "$ref": "#/$defs/StorageEngineCode"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "AuthTypeEnum": {
      "type": "string",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "AuthorizeRequestType": {
      "description": "AuthorizeRequestType is the type for OAuth param `response_type`",
      "type": "string",
      "x-go-package": "github.com/TykTechnologies/tyk/vendor/github.com/lonelycode/osin"
    },
    "CacheMeta": {
      "properties": {
        "cache_response_codes": {
          "items": {
            "format": "int64",
            "type": "integer"
          },
          "type": "array",
          "x-go-name": "CacheOnlyResponseCodes"
        },
        "cache_key_regex": {
          "type": "string",
          "x-go-name": "CacheKeyRegex"
        },
        "method": {
          "type": "string",
          "x-go-name": "Method"
        },
        "path": {
          "type": "string",
          "x-go-name": "Path"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "CacheOptions": {
      "properties": {
        "cache_all_safe_requests": {
          "type": "boolean",
          "x-go-name": "CacheAllSafeRequests"
        },
        "cache_control_ttl_header": {
          "type": "string",
          "x-go-name": "CacheControlTTLHeader"
        },
        "cache_response_codes": {
          "items": {
            "format": "int64",
            "type": "integer"
          },
          "type": "array",
          "x-go-name": "CacheOnlyResponseCodes"
        },
        "cache_timeout": {
          "format": "int64",
          "type": "integer",
          "x-go-name": "CacheTimeout"
        },
        "enable_cache": {
          "type": "boolean",
          "x-go-name": "EnableCache"
        },
        "enable_upstream_cache_control": {
          "type": "boolean",
          "x-go-name": "EnableUpstreamCacheControl"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "CircuitBreakerMeta": {
      "properties": {
        "method": {
          "type": "string",
          "x-go-name": "Method"
        },
        "path": {
          "type": "string",
          "x-go-name": "Path"
        },
        "return_to_service_after": {
          "format": "int64",
          "type": "integer",
          "x-go-name": "ReturnToServiceAfter"
        },
        "samples": {
          "format": "int64",
          "type": "integer",
          "x-go-name": "Samples"
        },
        "threshold_percent": {
          "format": "double",
          "type": "number",
          "x-go-name": "ThresholdPercent"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "EndPointMeta": {
      "properties": {
        "method_actions": {
          "additionalProperties": {
            "$ref": "#/$defs/EndpointMethodMeta"
          },
          "type": "object",
          "x-go-name": "MethodActions"
        },
        "path": {
          "type": "string",
          "x-go-name": "Path"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "EndpointMethodAction": {
      "type": "string",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "EndpointMethodMeta": {
      "properties": {
        "action": {
          "$ref": "#/$defs/EndpointMethodAction"
        },
        "code": {
          "format": "int64",
          "type": "integer",
          "x-go-name": "Code"
        },
        "data": {
          "type": "string",
          "x-go-name": "Data"
        },
        "headers": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "x-go-name": "Headers"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "EventHandlerMetaConfig": {
      "properties": {
        "events": {
          "x-go-name": "Events"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "ExtendedPathsSet": {
      "properties": {
        "advance_cache_config": {
          "items": {
            "$ref": "#/$defs/CacheMeta"
          },
          "type": "array",
          "x-go-name": "AdvanceCacheConfig"
        },
        "black_list": {
          "items": {
            "$ref": "#/$defs/EndPointMeta"
          },
          "type": "array",
          "x-go-name": "BlackList"
        },
        "cache": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "x-go-name": "Cached"
        },
        "circuit_breakers": {
          "items": {
            "$ref": "#/$defs/CircuitBreakerMeta"
          },
          "type": "array",
          "x-go-name": "CircuitBreaker"
        },
        "do_not_track_endpoints": {
          "items": {
            "$ref": "#/$defs/TrackEndpointMeta"
          },
          "type": "array",
          "x-go-name": "DoNotTrackEndpoints"
        },
        "hard_timeouts": {
          "items": {
            "$ref": "#/$defs/HardTimeoutMeta"
          },
          "type": "array",
          "x-go-name": "HardTimeouts"
        },
        "ignored": {
          "items": {
            "$ref": "#/$defs/EndPointMeta"
          },
          "type": "array",
          "x-go-name": "Ignored"
        },
        "internal": {
          "items": {
            "$ref": "#/$defs/InternalMeta"
          },
          "type": "array",
          "x-go-name": "Internal"
        },
        "method_transforms": {
          "items": {
            "$ref": "#/$defs/MethodTransformMeta"
          },
          "type": "array",
          "x-go-name": "MethodTransforms"
        },
        "size_limits": {
          "items": {
            "$ref": "#/$defs/RequestSizeMeta"
          },
          "type": "array",
          "x-go-name": "SizeLimit"
        },
        "track_endpoints": {
          "items": {
            "$ref": "#/$defs/TrackEndpointMeta"
          },
          "type": "array",
          "x-go-name": "TrackEndpoints"
        },
        "transform": {
          "items": {
            "$ref": "#/$defs/TemplateMeta"
          },
          "type": "array",
          "x-go-name": "Transform"
        },
        "transform_headers": {
          "items": {
            "$ref": "#/$defs/HeaderInjectionMeta"
          },
          "type": "array",
          "x-go-name": "TransformHeader"
        },
        "transform_jq": {
          "items": {
            "$ref": "#/$defs/TransformJQMeta"
          },
          "type": "array",
          "x-go-name": "TransformJQ"
        },
        "transform_jq_response": {
          "items": {
            "$ref": "#/$defs/TransformJQMeta"
          },
          "type": "array",
          "x-go-name": "TransformJQResponse"
        },
        "transform_response": {
          "items": {
            "$ref": "#/$defs/TemplateMeta"
          },
          "type": "array",
          "x-go-name": "TransformResponse"
        },
        "transform_response_headers": {
          "items": {
            "$ref": "#/$defs/HeaderInjectionMeta"
          },
          "type": "array",
          "x-go-name": "TransformResponseHeader"
        },
        "url_rewrites": {
          "items": {
            "$ref": "#/$defs/URLRewriteMeta"
          },
          "type": "array",
          "x-go-name": "URLRewrite"
        },
        "validate_json": {
          "items": {
            "$ref": "#/$defs/ValidatePathMeta"
          },
          "type": "array",
          "x-go-name": "ValidateJSON"
        },
        "virtual": {
          "items": {
            "$ref": "#/$defs/VirtualMeta"
          },
          "type": "array",
          "x-go-name": "Virtual"
        },
        "white_list": {
          "items": {
            "$ref": "#/$defs/EndPointMeta"
          },
          "type": "array",
          "x-go-name": "WhiteList"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "GlobalRateLimit": {
      "properties": {
        "per": {
          "format": "double",
          "type": "number",
          "x-go-name": "Per"
        },
        "rate": {
          "format": "double",
          "type": "number",
          "x-go-name": "Rate"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "HardTimeoutMeta": {
      "properties": {
        "method": {
          "type": "string",
          "x-go-name": "Method"
        },
        "path": {
          "type": "string",
          "x-go-name": "Path"
        },
        "timeout": {
          "format": "int64",
          "type": "integer",
          "x-go-name": "TimeOut"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "HeaderInjectionMeta": {
      "properties": {
        "act_on": {
          "type": "boolean",
          "x-go-name": "ActOnResponse"
        },
        "add_headers": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "x-go-name": "AddHeaders"
        },
        "delete_headers": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "x-go-name": "DeleteHeaders"
        },
        "method": {
          "type": "string",
          "x-go-name": "Method"
        },
        "path": {
          "type": "string",
          "x-go-name": "Path"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "HostCheckObject": {
      "properties": {
        "body": {
          "type": "string",
          "x-go-name": "Body"
        },
        "headers": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "x-go-name": "Headers"
        },
        "method": {
          "type": "string",
          "x-go-name": "Method"
        },
        "url": {
          "type": "string",
          "x-go-name": "CheckURL"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "IdExtractorSource": {
      "type": "string",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "IdExtractorType": {
      "type": "string",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "InternalMeta": {
      "properties": {
        "method": {
          "type": "string",
          "x-go-name": "Method"
        },
        "path": {
          "type": "string",
          "x-go-name": "Path"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "MethodTransformMeta": {
      "properties": {
        "method": {
          "type": "string",
          "x-go-name": "Method"
        },
        "path": {
          "type": "string",
          "x-go-name": "Path"
        },
        "to_method": {
          "type": "string",
          "x-go-name": "ToMethod"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "MiddlewareDefinition": {
      "properties": {
        "name": {
          "type": "string",
          "x-go-name": "Name"
        },
        "path": {
          "type": "string",
          "x-go-name": "Path"
        },
        "require_session": {
          "type": "boolean",
          "x-go-name": "RequireSession"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "MiddlewareDriver": {
      "type": "string",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "MiddlewareIdExtractor": {
      "properties": {
        "extract_from": {
          "$ref": "#/$defs/IdExtractorSource"
        },
        "extract_with": {
          "$ref": "#/$defs/IdExtractorType"
        },
        "extractor_config": {
          "additionalProperties": {
            "type": "object"
          },
          "type": "object",
          "x-go-name": "ExtractorConfig"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "MiddlewareSection": {
      "properties": {
        "auth_check": {
          "$ref": "#/$defs/MiddlewareDefinition"
        },
        "driver": {
          "$ref": "#/$defs/MiddlewareDriver"
        },
        "id_extractor": {
          "$ref": "#/$defs/MiddlewareIdExtractor"
        },
        "post": {
          "items": {
            "$ref": "#/$defs/MiddlewareDefinition"
          },
          "type": "array",
          "x-go-name": "Post"
        },
        "post_key_auth": {
          "items": {
            "$ref": "#/$defs/MiddlewareDefinition"
          },
          "type": "array",
          "x-go-name": "PostKeyAuth"
        },
        "pre": {
          "items": {
            "$ref": "#/$defs/MiddlewareDefinition"
          },
          "type": "array",
          "x-go-name": "Pre"
        },
        "response": {
          "items": {
            "$ref": "#/$defs/MiddlewareDefinition"
          },
          "type": "array",
          "x-go-name": "Response"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "NotificationsManager": {
      "description": "TODO: Make this more generic",
      "properties": {
        "oauth_on_keychange_url": {
          "type": "string",
          "x-go-name": "OAuthKeyChangeURL"
        },
        "shared_secret": {
          "type": "string",
          "x-go-name": "SharedSecret"
        }
      },
      "title": "NotificationsManager handles sending notifications to OAuth endpoints to notify the provider of key changes.",
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "OIDProviderConfig": {
      "properties": {
        "client_ids": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "x-go-name": "ClientIDs"
        },
        "issuer": {
          "type": "string",
          "x-go-name": "Issuer"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "ObjectId": {
      "description": "http://www.mongodb.org/display/DOCS/Object+IDs",
      "title": "ObjectId is a unique ID identifying a BSON value. It must be exactly 12 bytes long. MongoDB objects by default have such a property set in their \"_id\" property.",
      "type": "string",
      "x-go-package": "github.com/TykTechnologies/tyk/vendor/gopkg.in/mgo.v2/bson"
    },
    "OpenIDOptions": {
      "properties": {
        "providers": {
          "items": {
            "$ref": "#/$defs/OIDProviderConfig"
          },
          "type": "array",
          "x-go-name": "Providers"
        },
        "segregate_by_client": {
          "type": "boolean",
          "x-go-name": "SegregateByClient"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "Regexp": {
      "description": "Regexp is a wrapper around regexp.Regexp but with caching",
      "properties": {
        "FromCache": {
          "type": "boolean"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/regexp"
    },
    "RequestInputType": {
      "type": "string",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "RequestSizeMeta": {
      "properties": {
        "method": {
          "type": "string",
          "x-go-name": "Method"
        },
        "path": {
          "type": "string",
          "x-go-name": "Path"
        },
        "size_limit": {
          "format": "int64",
          "type": "integer",
          "x-go-name": "SizeLimit"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "ResponseProcessor": {
      "properties": {
        "name": {
          "type": "string",
          "x-go-name": "Name"
        },
        "options": {
          "type": "object",
          "x-go-name": "Options"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "RoutingTrigger": {
      "properties": {
        "on": {
          "$ref": "#/$defs/RoutingTriggerOnType"
        },
        "options": {
          "$ref": "#/$defs/RoutingTriggerOptions"
        },
        "rewrite_to": {
          "type": "string",
          "x-go-name": "RewriteTo"
        }
      },
      "type": "object",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "RoutingTriggerOnType": {
      "type": "string",
      "x-go-package": "github.com/TykTechnologies/tyk/apidef"
    },
    "RoutingTriggerOptions": {
      "properties": {
        "header_matches": {
          "additionalProperties": {
            "$ref": "#/$defs/StringRegexMap"
          },
          "type": "object",
          "x-go-name": "HeaderMatches"
        },
        "path_part_matches": {
          "additionalProperties": {
            "$ref": "#/$defs/StringRegexMap"
          },
          "type": "object",
          "x-go-name": "PathPartMatches"
        },
        "payload_matches": {
          "$ref": "#/$defs/StringRegexMap"
        },
        "query_val_matches": {
          "additionalProperties": {
            "$ref": "#/$defs/StringRegexMap"
          },
          "type": "object",
          "x-go-name": "QueryValMatches"
        },
        "request_context_matche

# --- truncated at 32 KB (41 KB total) ---
# Full source: https://artifacts.apis.io/tyk/json-schema/tyk-apidefinition-schema.json

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/tyk-apidefinition"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.