Get the KYC policy editor draft for a programme and flow
/v1/kyc/policy/draftRequires an API client bearer token.
Reads the SCRATCH policy-editor draft for a (tenant, mode, programme, flow) — no policy version is minted and no audit trail records draft activity; only `PolicyDraftStore`'s own row is upserted in place. The response includes `composed`/`flow`, a live preview of exactly what publishing this draft would mint against the CURRENT active policy right now — recomputed on every read, never stored. `latest_version` versus `base_version` signals staleness: the active policy moved on since this draft was first opened when the two differ. Requires the programme_admin role, like the write API.
Parameters
Query parameters
| Name | Required | Description |
|---|---|---|
| programme_id | required | |
| flow_key | optional |
Example
curl https://api.rigid.fi/v1/kyc/policy/draft \
-H "Authorization: Bearer $RIGID_API_TOKEN"Responses
200The programme's editor draft, composed against the current active policy.
+ show properties− hide properties
+ show properties− hide properties
No properties.
+ show properties− hide properties
+ show properties− hide properties
+ show properties− hide properties
+ show properties− hide properties
No properties.
+ show properties− hide properties
+ show properties− hide properties
+ show properties− hide properties
No properties.
+ show properties− hide properties
+ show properties− hide properties
+ show properties− hide properties
+ show properties− hide properties
+ show properties− hide properties
+ show properties− hide properties
400Validation error
401Authentication required
403Forbidden
404No draft for this programme/flow
500Internal server error