---
title: "Generate CDS PDFs"
method: POST
path: "/credentialing-workflows/{id}/generate-cds-pdf"
tags: ["CredentialingWorkflow"]
---

# Generate CDS PDFs

`POST /credentialing-workflows/{id}/generate-cds-pdf`

Generates one CDS PDF per CDS entry and attaches each to its cds[i].attachments[] row via a single workflow replace

## Path parameters

- `id` string, required

## Headers

- `tenant-id` string, required
- `user-id` string

## Response `200`

Successfully generated the CDS PDFs

- GenerateCdsPdfResponse
  - `pdfUrls` string[]

## Other responses

- `204` — No CDS PDFs generated: no CDS entries, kill switch off, no rows matched, or artifact generation is not enabled for the tenant (sections.cds.artifactGenerationRule absent or NEVER — the default until credentialing-config is rolled out). The not-enabled check runs before the completed-workflow check, so a completed workflow also returns 204 here rather than 400.
- `401` — Unauthorized - Authentication required
- `403` — Forbidden - User does not have required permissions
- `404` — Credentialing workflow not found
- `500` — Internal Server Error - An unexpected error occurred

---

[API](https://skmtc.net/certifyos/apis/certify-api-layer.md) · [All operations](https://skmtc.net/certifyos/apis/certify-api-layer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/certifyos/certify-api-layer/revisions/563848e0ecc0/schema)
