Skip to main content
GET
/
tyk
/
policies
/
{polID}
Get a policy.
curl --request GET \
  --url https://{tenant}/tyk/policies/{polID} \
  --header 'X-Tyk-Authorization: <api-key>'
{
  "_id": "5ead7120575961000181867e",
  "access_rights": {},
  "active": true,
  "enable_http_signature_validation": false,
  "graphql_access_rights": {},
  "hmac_enabled": false,
  "id": "5ead7120575961000181867e",
  "is_inactive": false,
  "key_expires_in": 0,
  "last_updated": "1655965189",
  "max_query_depth": -1,
  "meta_data": {},
  "name": "Swagger Petstore Policy",
  "org_id": "5e9d9544a1dcd60001d0ed20",
  "partitions": {
    "acl": true,
    "complexity": false,
    "per_api": false,
    "quota": true,
    "rate_limit": true
  },
  "per": 60,
  "quota_max": -1,
  "quota_renewal_rate": 3600,
  "rate": 1000,
  "smoothing": {
    "delay": 123,
    "enabled": true,
    "step": 123,
    "threshold": 123,
    "trigger": 123
  },
  "tags": [
    "<string>"
  ],
  "throttle_interval": -1,
  "throttle_retry_limit": -1
}

Authorizations

X-Tyk-Authorization
string
header
required

Api key

Path Parameters

polID
string
required

You can retrieve details of a single policy by ID in your Tyk instance.

Response

Get details of a single policy.

_id
string
Example:

"5ead7120575961000181867e"

access_rights
object
active
boolean
Example:

true

enable_http_signature_validation
boolean
Example:

false

graphql_access_rights
object
hmac_enabled
boolean
Example:

false

id
string
Example:

"5ead7120575961000181867e"

is_inactive
boolean
Example:

false

key_expires_in
integer<int64>
Example:

0

last_updated
string
Example:

"1655965189"

max_query_depth
integer
Example:

-1

meta_data
object
name
string
Example:

"Swagger Petstore Policy"

org_id
string
Example:

"5e9d9544a1dcd60001d0ed20"

partitions
object
per
number<double>
Example:

60

quota_max
integer<int64>
Example:

-1

quota_renewal_rate
integer<int64>
Example:

3600

rate
number<double>
Example:

1000

smoothing
object
tags
string[] | null
throttle_interval
number<double>
Example:

-1

throttle_retry_limit
integer
Example:

-1