---
title: "Get an OPA policy"
method: GET
path: "/v1/org/opa-policies/{id}"
tags: ["OPA Policies"]
---

# Get an OPA policy

`GET /v1/org/opa-policies/{id}`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/org/opa-policies/{id}`
- Auth: HTTP bearer

Retrieve a specific OPA policy by ID.

## Path parameters

- `id` string, uuid, required

## Response `200`

OPA policy details

- OpaPolicyResponse
  - `id` string, uuid
  - `org_id` string, uuid
  - `name` string
  - `rego_source` string
  - `has_wasm_bundle` boolean
  - `entrypoint` string
  - `is_active` boolean
  - `enforcement_status` 'shadow' | 'enforce' | 'inactive'
  - `created_by` string, uuid
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401`: Authentication required or invalid
- `404`: Resource not found

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
