Skip to main content
GET
/
api
/
portal
/
policies
/
search
Search list of policies.
curl --request GET \
  --url https://{tenant}/api/portal/policies/search \
  --header 'Authorization: Bearer <token>'
{
  "Data": [
    {
      "_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
    }
  ],
  "Pages": 123
}

Authorizations

Authorization
string
header
required

The Tyk Dashboard API Access Credentials

Query Parameters

q
string

Search for policy using policy ID or name.

policy_ids
string

A list of comma separated policy IDs that you want to search for.

active
string

Send any value in this query parameter to return only the active policies.

state
enum<string>

Return policies whose state field matches the sent value e.g if you send state as deny policies returned are those whose state filed value is set as deny.

Available options:
deny,
active,
draft
sort
enum<string>

Field you want to use to sort the returned policies.

Available options:
date_created,
name,
state
api_id
string

Comma separate list of API IDs. Return only policy that that have the given API IDs in their access_right.

auth_type
string

Return policy whose auth_type field has the given value.

p
integer

Use p query parameter to say which page you want returned. Send number less than 0 to return all items.

Response

List of policies.

Data
object[] | null
Pages
integer