Skip to main content
GET
/
api
/
portal
/
policies
/
{id}
Get a single policy by ID.
curl --request GET \
  --url https://{tenant}/api/portal/policies/{id} \
  --header 'Authorization: Bearer <token>'
{
  "_id": "<string>",
  "access_rights": {},
  "active": true,
  "date_created": "2023-11-07T05:31:56Z",
  "hmac_enabled": true,
  "id": "<string>",
  "is_inactive": true,
  "key_expires_in": 123,
  "last_updated": "<string>",
  "max_query_depth": 123,
  "meta_data": {},
  "name": "<string>",
  "org_id": "<string>",
  "partitions": {
    "acl": true,
    "complexity": true,
    "per_api": true,
    "quota": true,
    "rate_limit": true
  },
  "per": 123,
  "quota_max": 123,
  "quota_renewal_rate": 123,
  "rate": 123,
  "smoothing": {
    "delay": 2,
    "enabled": true,
    "step": 2,
    "threshold": 2,
    "trigger": 1
  },
  "tags": [
    "<string>"
  ],
  "throttle_interval": 123,
  "throttle_retry_limit": 123
}

Authorizations

Authorization
string
header
required

The Tyk Dashboard API Access Credentials

Path Parameters

id
string
required

ID of policy to get.

Response

Policy fetched.

_id
string
access_rights
object
active
boolean
date_created
string<date-time>
hmac_enabled
boolean
id
string
is_inactive
boolean
key_expires_in
integer<int64>
last_updated
string
max_query_depth
integer
meta_data
object
name
string
org_id
string
partitions
object
per
number<double>
quota_max
integer<int64>
quota_renewal_rate
integer<int64>
rate
number<double>
smoothing
object
tags
string[] | null
throttle_interval
number<double>
throttle_retry_limit
integer