Skip to main content
POST
/
tyk
/
debug
curl --request POST \ --url https://{tenant}/tyk/debug \ --header 'Content-Type: application/json' \ --header 'X-Tyk-Authorization: <api-key>' \ --data ' { "request": { "method": "GET", "path": "/update-listen-path" }, "spec": { "api_id": "b84fe1a04e5648927971c0557971565c", "auth": { "auth_header_name": "authorization" }, "definition": { "key": "version", "location": "header" }, "name": "Tyk Test API", "org_id": "664a14650619d40001f1f00f", "proxy": { "listen_path": "/tyk-api-test/", "strip_listen_path": true, "target_url": "https://httpbin.org" }, "use_oauth2": true, "version_data": { "not_versioned": true, "versions": { "Default": { "name": "Default" } } } } } '
{
  "logs": "{\"level\":\"warning\",\"msg\":\"Legacy path detected! Upgrade to extended....",
  "message": "ok",
  "response": "====== Request ======\nGET / HTTP/1.1\r\nHost: httpbin.org\r\n\r\n\n====== Response..."
}

Authorizations

X-Tyk-Authorization
string
header
required

Api key

Body

application/json
oas
object
required
request
object
spec
object

Response

Success tracing request.

logs
string
Example:

"{\"level\":\"warning\",\"msg\":\"Legacy path detected! Upgrade to extended...."

message
string
Example:

"ok"

response
string
Example:

"====== Request ======\nGET / HTTP/1.1\r\nHost: httpbin.org\r\n\r\n\n====== Response..."