Skip to main content

Retrieve a Policy Template

Returns the full details of a single policy template, including its recipe definition.
GET /v1/policy-templates/:templateId

Path Parameters

ParameterTypeDescription
templateIdstringThe template ID

Example Request

curl https://api.docyard.io/v1/policy-templates/tpl_standard_mortgagee \
  -H "Authorization: Bearer dk_live_a1b2c3d4..."

Response

{
  "id": "tpl_standard_mortgagee",
  "name": "Standard Mortgagee Access",
  "description": "Read-only access to declaration pages and COIs with email verification. 90-day expiry.",
  "recipe": {
    "access": "read",
    "artifactTypes": ["declaration-page", "coi"],
    "requireFactors": ["email_verified"],
    "expiresInDays": 90
  },
  "category": "insurance",
  "createdAt": "2025-01-01T00:00:00.000Z"
}

Error Handling

StatusCondition
401Missing or invalid API key
404Template not found