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

# Get policy

`GET /policies/{id}`

## Request

- Base URL: `https://api.instruxi.dev/api/v1/enforcer`
- URL: `https://api.instruxi.dev/api/v1/enforcer/policies/{id}`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

One custom policy's stored Rego source and metadata. Readable per the same global-plus-own-tenant visibility as listPolicies.

## Path parameters

- `id` string, required

## Response `200`

OK

- InternalDeliveryHttpHandlerPolicyResponse
  - `data` EnforcerV3InternalDomainPolicyPolicy
    - `active` boolean
    - `created_at` string
    - `created_by` string
    - `description` string
    - `id` string
    - `name` string
    - `source` string
    - `source_sha` string
    - `tenant_id` string: nil = global
    - `updated_at` string
  - `success` boolean

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/instruxi/apis/enforcer-api.md) · [All operations](https://skmtc.dev/instruxi/apis/enforcer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/instruxi/apis/enforcer-api/revisions/fa82bc1becc0?raw)
