---
title: "List policies in a policy set draft"
method: GET
path: "/zones/{zone_id}/policy-sets/{policy_set_id}/draft/policies"
tags: ["PolicySetDrafts"]
---

# List policies in a policy set draft

`GET /zones/{zone_id}/policy-sets/{policy_set_id}/draft/policies`

## Request

- Base URL: `https://docs.keycard.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.keycard.ai/zones/{zone_id}/policy-sets/{policy_set_id}/draft/policies`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Client credentials
    - Token URL: `/service-account-token`

Returns the policy versions referenced by the draft's manifest as a paginated list. Mirrors the published `/policy-sets/{policy_set_id}/versions/{version_id}/policies` endpoint but sources entries from the policy set's mutable draft. Archived policy versions referenced by the manifest are still returned.

## Path parameters

- `zone_id` string, required
- `policy_set_id` string, required

## Query parameters

- `after` string: An opaque cursor used for paginating through a list of results
- `before` string: An opaque cursor used for paginating through a list of results
- `limit` integer
- `expand[]` PdpExpandField[]
- `sort` 'created_at'
- `order` 'asc' | 'desc'
- `format` 'cedar' | 'json'

## Headers

- `X-API-Version` string
- `X-Client-Request-ID` string, uuid

## Response `200`

A paginated list of policy versions pinned by this draft's manifest

- PdpPolicySetVersionPoliciesList
  - `items` PdpPolicyVersion[], required
    - `id` string, required
    - `policy_id` string, required
    - `zone_id` string, required
    - `version` integer, required
    - `schema_version` string, required: Schema version this policy was validated against when created.
    - `cedar_json` object, nullable: Cedar policy in JSON representation. Populated by default and when `format=json` is passed; null when `format=cedar` narrows the response to the text representation only. Serialized verbatim from the stored Cedar so the order of `staticPolicies` matches the source policy order (ACC-613).
    - `cedar_raw` string, nullable: Cedar policy in human-readable syntax. Populated by default and when `format=cedar` is passed; null when `format=json` narrows the response to the JSON representation only.
    - `sha` string, required: Hex-encoded content hash
    - `archived_at` string, date-time, nullable
    - `archived_by` string, nullable
    - `archived_by_user` PdpUser: The organization user behind a `created_by`, `updated_by` or `archived_by` value. Returned only when `expand[]=user` is requested.
      - `id` string, required: Public ID of the user in the organization's platform zone. This is not the same value as the `*_by` field it expands; use it to link to `/zones/{zone_id}/users/{id}`.
      - `zone_id` string, required: Public ID of the organization's platform zone the user belongs to.
      - `email` string, nullable, required: The user's email address, or null when not known.
    - `created_at` string, date-time, required
    - `created_by` string, required
    - `created_by_user` PdpUser: The organization user behind a `created_by`, `updated_by` or `archived_by` value. Returned only when `expand[]=user` is requested.
      - `id` string, required: Public ID of the user in the organization's platform zone. This is not the same value as the `*_by` field it expands; use it to link to `/zones/{zone_id}/users/{id}`.
      - `zone_id` string, required: Public ID of the organization's platform zone the user belongs to.
      - `email` string, nullable, required: The user's email address, or null when not known.
    - `owner_type` 'platform' | 'customer', required: Who manages this policy version: - `"platform"` — managed by the Keycard platform (system policy versions). - `"customer"` — managed by the tenant (custom policy versions).
  - `pagination` PdpPagination, required: Cursor-based pagination metadata returned alongside a list of results
    - `before_cursor` string, required: An opaque cursor used for paginating through a list of results
    - `after_cursor` string, required: An opaque cursor used for paginating through a list of results
    - `total_count` integer: Total number of items across all pages. Only present when the request includes ?expand[]=total_count.

## Other responses

- `400`: bad request error response when caller supplied invalid input data
- `401`: unauthorized error response when caller session is not authenticated
- `403`: forbidden error response when caller does not have permissions to a resource
- `404`: not found error response when caller does not have permission to see a resource or the resource does not exist
- `429`: rate limit exceeded error response when caller has exhausted api limits for the given time period
- `500`: internal server error response when server encountered error of its own creation
- `503`: service unavailable error when server you're attempting to reach is not available
- `default`: internal server error response when server encountered error of its own creation

## Changes

- **2026-10-16** `0cfaff865771`: 16 breaking, 8 warning, 83 info
  - the response property `details/items/field` became optional for the status `400`
  - the response property `details/items/field` became optional for the status `401`
  - the response property `details/items/field` became optional for the status `403`
  - the response property `details/items/field` became optional for the status `404`
  - …103 more
- **2026-05-18** `2861899ae69e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/keycardai/apis/untitled-api/changes/zones/:zone_id/policy-sets/:policy_set_id/draft/policies/get.md)

---

[API](https://skmtc.dev/keycardai/apis/untitled-api.md) - [All operations](https://skmtc.dev/keycardai/apis/untitled-api/llms.txt) - [OpenAPI document](https://skmtc.dev/keycardai/apis/untitled-api/revisions/0dee67e0a73a?raw)
