Ah, I was grabbing off the API table in the dashboard, the call works fine when I grab the api id from the URI.
$ curl -s -X GET -H 'Authorization: 3420cda7598847a86a910022ab976f58' http://192.168.99.100:3000/api/apis/570ea953e11a690001000004 | python -mjson.tool
{
"api_definition": {
"CORS": {
"allow_credentials": false,
"allowed_headers": [],
"allowed_methods": [],
"allowed_origins": [],
"debug": false,
"enable": false,
"exposed_headers": [],
"max_age": 24,
"options_passthrough": false
},
"active": true,
"allowed_ips": [],
"api_id": "44d0623fe37d447d749d859ef60d9c39",
"auth": {
"auth_header_name": "Authorization",
"use_cookie": false,
"use_param": false
},
"auth_provider": {
"meta": {},
"name": "",
"storage_engine": ""
},
"cache_options": {
"cache_all_safe_requests": false,
"cache_timeout": 60,
"enable_cache": true,
"enable_upstream_cache_control": false
},
"custom_middleware": {
"post": [],
"pre": [],
"response": []
},
"definition": {
"key": "x-api-version",
"location": "header"
},
"do_not_track": false,
"domain": "",
"dont_set_quota_on_create": false,
"enable_batch_request_support": false,
"enable_ip_whitelisting": false,
"enable_jwt": false,
"enable_signature_checking": false,
"event_handlers": {
"events": {}
},
"expire_analytics_after": 0,
"hmac_allowed_clock_skew": -1,
"id": "570ea953e11a690001000004",
"jwt_identity_base_field": "",
"jwt_policy_field_name": "",
"jwt_signing_method": "",
"jwt_source": "",
"name": "Dummy API",
"notifications": {
"oauth_on_keychange_url": "",
"shared_secret": ""
},
"oauth_meta": {
"allowed_access_types": [],
"allowed_authorize_types": [],
"auth_login_redirect": ""
},
"org_id": "570e58d9e11a690001000001",
"proxy": {
"check_host_against_uptime_tests": false,
"enable_load_balancing": false,
"listen_path": "/dummy-api/",
"preserve_host_header": false,
"service_discovery": {
"cache_timeout": 60,
"data_path": "hostname",
"endpoint_returns_list": false,
"parent_data_path": "",
"port_data_path": "port",
"query_endpoint": "",
"target_path": "/api-slug",
"use_discovery_service": false,
"use_nested_query": false,
"use_target_list": false
},
"strip_listen_path": true,
"target_list": [],
"target_url": "http://192.168.99.100:4000/"
},
"response_processors": [],
"session_lifetime": 0,
"session_provider": {
"meta": null,
"name": "",
"storage_engine": ""
},
"slug": "dummy-api",
"tags": [],
"uptime_tests": {
"check_list": [],
"config": {
"expire_utime_after": 0,
"recheck_wait": 0,
"service_discovery": {
"cache_timeout": 60,
"data_path": "",
"endpoint_returns_list": false,
"parent_data_path": "",
"port_data_path": "",
"query_endpoint": "",
"target_path": "",
"use_discovery_service": false,
"use_nested_query": false,
"use_target_list": false
}
}
},
"use_basic_auth": false,
"use_keyless": false,
"use_oauth2": false,
"version_data": {
"not_versioned": true,
"versions": {
"Default": {
"expires": "",
"extended_paths": {
"black_list": [],
"cache": [],
"circuit_breakers": [],
"hard_timeouts": [],
"ignored": [],
"size_limits": [],
"transform": [],
"transform_headers": [],
"transform_response": [],
"transform_response_headers": [],
"url_rewrites": [],
"virtual": [],
"white_list": []
},
"global_headers": {},
"global_headers_remove": [],
"global_size_limit": 0,
"name": "Default",
"override_target": "",
"paths": {
"black_list": [],
"ignored": [],
"white_list": []
},
"use_extended_paths": true
}
}
}
},
"api_model": {},
"hook_references": [],
"is_site": false,
"sort_by": 0
}