GET
Get a policy draft

Authorizations

Authorization
string
header
required

An API key minted in the console (ctd_…). Authenticates; never authorizes funds. A key carries scopes (read, wallets.write, transactions.write, events.write, webhooks.write, policy.write) and may be limited to vaults, to IP addresses, and in lifetime — see Authentication.

Path Parameters

version
integer
required
Required range: x >= 1

Response

The version and where it stands.

version
integer
required
status
enum<string>
required

draft — to sign and publish; pending — signed, waits for approval; published — sent to your engine; rejected — never sent.

Available options:
draft,
pending,
published,
rejected
document
string
required

The YAML document: the exact bytes your policy key signs.

key_id
string | null
required

The policy key that signed. null for a draft.

signature
string | null
required

Your policy key's signature over document, in standard base64. null for a draft.

approval
null | object
required

The approval a change published through the API waits for, or waited for. null for a draft, and for a version published in the console.

rejected_reason
enum<string> | null
required

Why a rejected change was never sent: an approver declined it, it was not approved in time, or a newer change replaced it or a newer version came into force first.

Available options:
approval_rejected,
approval_expired,
superseded,
null
created_at
string<date-time>
required
updated_at
string<date-time>
required