List Policies
Endpoint
GET /apiops/projects/{projectName}/apiProxies/{apiProxyName}/policies/
Authentication
Requires a Personal API Access Token.
Header
Authorization: Bearer YOUR_TOKEN
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer {token} | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| apiProxyName | string | Yes | API Proxy name |
Query Parameters
None
Response
Success Response (200 OK)
{
"status": "SUCCESS",
"resultList": [
{
"name": "Address",
"type": "SOAP",
"relativePath": "/address",
"soapToRest": false,
"requestPolicyList": [
{
"type": "policy-throttling",
"active": true
}
],
"responsePolicyList": [
{
"type": "policy-api-call",
"active": true
}
],
"errorPolicyList": [
{
"type": "policy-script",
"active": true
},
{
"type": "policy-script",
"description": "sample description",
"active": true
}
],
"endpointList": [
{
"endpoint": "/UpdateAddress",
"active": true,
"httpMethod": "POST",
"requestPolicyList": [
{
"type": "policy-script",
"active": true
}
]
}
]
}
],
"resultCount": 1
}
Response Fields
| Field | Type | Description |
|---|---|---|
| status | string | Response status: SUCCESS or FAILURE |
| resultList | array | List containing API proxy with policies |
| resultCount | integer | Total number of results (always 1) |
API Proxy Object Fields
| Field | Type | Description |
|---|---|---|
| name | string | API Proxy name |
| type | string | API type. See EnumApiType |
| relativePath | string | Relative path (from clientRoute) |
| soapToRest | boolean | Whether SOAP to REST transformation is enabled |
| requestPolicyList | array | List of request pipeline policies |
| responsePolicyList | array | List of response pipeline policies |
| errorPolicyList | array | List of error pipeline policies |
| endpointList | array | List of endpoints with their policies |
Policy Object Fields
Each item of the policy lists (requestPolicyList, responsePolicyList, errorPolicyList and the lists inside endpointList) carries the policy configuration of its type. These fields are present on every policy:
| Field | Type | Description |
|---|---|---|
| name | string | Policy name (read-only). On a write, the name in the path is used |
| type | string | Policy type |
| active | boolean | Whether the policy is active |
| policyCondition | object | Conditional-execution rule. See Policy Condition |
You can send a policy from this response back with Update Policy. The condition is kept. A condition rule with the operator IS_EMPTY, IS_NOT_EMPTY, EXISTS_AND_EMPTY, IS_EXISTS or IS_NOT_EXISTS does not need secondValueSource.
EnumApiType
REST- REST APISOAP- SOAP API
EnumStatus
SUCCESS- Operation successfulFAILURE- Operation failed
Error Response (401 Unauthorized)
{
"status": "FAILURE",
"resultMessage": "Token is not valid!"
}
cURL Example
curl -X GET \
"https://demo.apinizer.com/apiops/projects/MyProject/apiProxies/MyAPI/policies/" \
-H "Authorization: Bearer YOUR_TOKEN"
Full JSON Body Example
This endpoint does not require a request body.
Permissions
- User must have any permission in the project (read access)
- On an AI, MCP or A2A proxy,
API_MANAGEMENTorAI_DEVELOPMENTwithVIEWis accepted. Other proxy types needAPI_MANAGEMENT.
Notes and Warnings
- Proxy-Level and Method-Level: This endpoint returns both proxy-level policies (applying to all endpoints) and method-level policies (within each endpoint in the
endpointList). - Policy Details: Policy details may be simplified in list responses. Use individual policy endpoints for full details.
- Pipeline Organization: Policies are organized by pipeline (request, response, error).
- Empty Lists: If no policies exist in a pipeline, an empty array is returned.
Related Documentation
- Add Policy - Add a new policy
- Update Policy - Update an existing policy
- Delete Policy - Delete a policy