---
title: "List Policies"
method: GET
path: "/api/v2/policies"
tags: ["Policy"]
---

# List Policies

`GET /api/v2/policies`

## Request

- Base URL: `{{.Scheme}}://{{.Host}}`
- URL: `{{.Scheme}}://{{.Host}}/api/v2/policies`
- Auth: API key in header `authorization` and API key in header `aserto-tenant-id`
- TypeScript: <https://skmtc.dev/aserto/apis/authorizer/docs/api/v2/policies/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists the policy modules for the policy bundle.

## Query parameters

- `field_mask` string
- `policy_instance.name` string
- `policy_instance.instance_label` string

## Response `200`

A successful response.

- V2ListPoliciesResponse
  - `result` ApiModule[]
    - `ast` unknown
    - `id` string
    - `package_path` string
    - `package_root` string
    - `raw` string

## Other responses

- `default`: An unexpected error response.

## Changes

- **2024-09-10** `46b87f1b9aee`: 1 breaking, 2 warning, 1 info
  - the `result/items/ast` response's property type changed from `object` to no type for status `200`
  - removed the optional property `details/items/type_url` from the response with the `default` status
  - removed the optional property `details/items/value` from the response with the `default` status
  - added the optional property `details/items/@type` to the response with the `default` status
- **2023-03-01** `5e77eb88d218`: 2 info
  - the endpoint scheme security `AuthorizerAPIKey AND TenantID` was added to the API
  - the endpoint scheme security `AuthorizerAPIKey` was removed from the API
- **2023-02-22** `cfd9ed8f0ec7`: 5 info
  - api tag `Policy` added
  - api tag `authorizer` removed
  - added the new optional `query` request parameter `policy_instance.instance_label`
  - added the new optional `query` request parameter `policy_instance.name`
  - …1 more

[Operation history](https://skmtc.dev/aserto/apis/authorizer/changes/api/v2/policies/get.md)

---

[API](https://skmtc.dev/aserto/apis/authorizer.md) - [All operations](https://skmtc.dev/aserto/apis/authorizer/llms.txt) - [OpenAPI document](https://skmtc.dev/aserto/apis/authorizer/revisions/57ae81fc10b9?raw)
