---
title: "Get Policy"
method: GET
path: "/api/v2/policies/{id}"
tags: ["Policy"]
---

# Get Policy

`GET /api/v2/policies/{id}`

## Request

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

Gets the policy modules for the given module Id.

## Path parameters

- `id` string, required

## Query parameters

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

## Response `200`

A successful response.

- V2GetPolicyResponse
  - `result` ApiModule
    - `ast` unknown
    - `id` string
    - `package_path` string
    - `package_root` string
    - `raw` string

## Other responses

- `default`: An unexpected error response.

## Changes

- **2023-03-01** `3f1fb0547ca2`: 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** `c8bce422c925`: 4 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`

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

---

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