---
title: "Compose Artefact Pdf"
method: POST
path: "/api/v1/cd-feasibility/artefact-pdf"
tags: ["casa-daily-feasibility"]
---

# Compose Artefact Pdf

`POST /api/v1/cd-feasibility/artefact-pdf`

## Request

- Base URL: `https://api.casaintelligence.com.au` (the document declares no server; this is the origin it was published from)
- URL: `https://api.casaintelligence.com.au/api/v1/cd-feasibility/artefact-pdf`
- Auth: API key in header `X-API-Key`

Compile a Casa Planner artefact into a Typst PDF.

Casa Daily generates the artefact CONTENT via Sonnet (in
`generate_artefact_action`) and persists section data to
`cd_project_artefacts.content`. When the user clicks Export PDF
or asks Casa AI to compile the artefact, Casa Daily POSTs that
content here for Typst rendering.

## Request body

- ArtefactPDFRequest: Compile a Casa Planner artefact (pre-DA letter, planning report, RFI response) into a Typst PDF using the matching v2 template.
  - `artefact_type` string, required: One of: pre_da_letter | planning_report | rfi_response
  - `title` string, required
  - `summary` string, nullable
  - `sections` object[]
  - `project_name` string, required
  - `user_full_name` string, nullable
  - `user_email` string, nullable
  - `property` object
  - `da_number` string, nullable
  - `council_officer_name` string, nullable
  - `version` integer
  - `disclaimer` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/casaintelligence/apis/casa-intelligence-engine.md) · [All operations](https://skmtc.dev/casaintelligence/apis/casa-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/casaintelligence/apis/casa-intelligence-engine/revisions/71d711039de0?raw)
