---
title: "POST /policy-get"
method: POST
path: "/policy-get"
tags: ["Policies"]
---

# POST /policy-get

`POST /policy-get`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/policy-get`
- Auth: none declared

## Request body

- PoliciesGet
  - `id` string, required: Policy id
  - `json` boolean: Set output format to JSON
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication

## Response `200`

- PoliciesGetOutput
  - `policy` PolicyOutput: it exposes object_types and intentionally hides enforce_on_items/enforce_on_targets.
    - `account_id` string
    - `allowed_algorithms` string[]
    - `allowed_key_names` string[]
    - `allowed_key_types` KeyType[]
    - `id` string
    - `max_rotation_interval_days` integer
    - `object_types` string[]
    - `path` string
    - `type` string

## Other responses

- `default`: errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.dev/akeyless/apis/identity-access.md) - [All operations](https://skmtc.dev/akeyless/apis/identity-access/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/identity-access/revisions/6fbc3858ec88?raw)
