curl --request GET \
--url https://{tenant}/tyk/policies \
--header 'X-Tyk-Authorization: <api-key>'[
{
"_id": "",
"access_rights": {
"8ddd91f3cda9453442c477b06c4e2da4": {
"allowance_scope": "",
"allowed_types": [],
"allowed_urls": [
{
"methods": [
"GET"
],
"url": "/users"
}
],
"api_id": "8ddd91f3cda9453442c477b06c4e2da4",
"api_name": "Itachi api",
"disable_introspection": false,
"field_access_rights": [],
"limit": {
"max_query_depth": 0,
"per": 0,
"quota_max": 0,
"quota_remaining": 0,
"quota_renewal_rate": 0,
"quota_renews": 0,
"rate": 0,
"smoothing": {
"delay": 30,
"enabled": false,
"step": 100,
"threshold": 500,
"trigger": 0.8
},
"throttle_interval": 0,
"throttle_retry_limit": 0
},
"restricted_types": [],
"versions": [
"Default"
]
}
},
"active": true,
"enable_http_signature_validation": false,
"graphql_access_rights": null,
"hmac_enabled": false,
"id": "5ead7120575961000181867e",
"is_inactive": false,
"key_expires_in": 2592000,
"last_updated": "1716980105",
"max_query_depth": -1,
"meta_data": {
"user_type": "mobile_user"
},
"name": "Sample policy",
"org_id": "664a14650619d40001f1f00f",
"partitions": {
"acl": true,
"complexity": false,
"per_api": false,
"quota": true,
"rate_limit": true
},
"per": 60,
"quota_max": 10000,
"quota_renewal_rate": 3600,
"rate": 1000,
"smoothing": {
"delay": 30,
"enabled": false,
"step": 100,
"threshold": 500,
"trigger": 0.8
},
"tags": [
"security"
],
"throttle_interval": 10,
"throttle_retry_limit": 10
}
]Retrieve all the policies in your Tyk instance. Returns an array policies.
curl --request GET \
--url https://{tenant}/tyk/policies \
--header 'X-Tyk-Authorization: <api-key>'[
{
"_id": "",
"access_rights": {
"8ddd91f3cda9453442c477b06c4e2da4": {
"allowance_scope": "",
"allowed_types": [],
"allowed_urls": [
{
"methods": [
"GET"
],
"url": "/users"
}
],
"api_id": "8ddd91f3cda9453442c477b06c4e2da4",
"api_name": "Itachi api",
"disable_introspection": false,
"field_access_rights": [],
"limit": {
"max_query_depth": 0,
"per": 0,
"quota_max": 0,
"quota_remaining": 0,
"quota_renewal_rate": 0,
"quota_renews": 0,
"rate": 0,
"smoothing": {
"delay": 30,
"enabled": false,
"step": 100,
"threshold": 500,
"trigger": 0.8
},
"throttle_interval": 0,
"throttle_retry_limit": 0
},
"restricted_types": [],
"versions": [
"Default"
]
}
},
"active": true,
"enable_http_signature_validation": false,
"graphql_access_rights": null,
"hmac_enabled": false,
"id": "5ead7120575961000181867e",
"is_inactive": false,
"key_expires_in": 2592000,
"last_updated": "1716980105",
"max_query_depth": -1,
"meta_data": {
"user_type": "mobile_user"
},
"name": "Sample policy",
"org_id": "664a14650619d40001f1f00f",
"partitions": {
"acl": true,
"complexity": false,
"per_api": false,
"quota": true,
"rate_limit": true
},
"per": 60,
"quota_max": 10000,
"quota_renewal_rate": 3600,
"rate": 1000,
"smoothing": {
"delay": 30,
"enabled": false,
"step": 100,
"threshold": 500,
"trigger": 0.8
},
"tags": [
"security"
],
"throttle_interval": 10,
"throttle_retry_limit": 10
}
]Api key
List of all policies.
"5ead7120575961000181867e"
Show child attributes
Show child attributes
"d371b83b249845a2497ab9a947fd6210"
"d1dfc6a927a046c54c0ed470f19757cc"
"Rate Limit Proxy API"
false
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
["Default", "v2"]true
false
false
"5ead7120575961000181867e"
false
0
"1655965189"
-1
"Swagger Petstore Policy"
"5e9d9544a1dcd60001d0ed20"
60
-1
3600
1000
-1
-1
Was this page helpful?