---
title: "Generate PDFs for all sanction types on a workflow"
method: POST
path: "/credentialing-workflows/{id}/generate-sanction-pdf"
tags: ["CredentialingWorkflow"]
---

# Generate PDFs for all sanction types on a workflow

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

Generates sanction PDF documents for every sanction type present on the credentialing workflow identified by `id` and stores each in cloud storage. Authenticate with the X-Credentialing-Api-Key header (API key), not JWT — typically invoked from Cloud Tasks. Returns 200 with a `GenerateAllSanctionsPdfResponse` object containing the generated PDF URLs. Returns 204 with no body when no sanctions are found on the workflow.

## Path parameters

- `id` string, required

## Headers

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

## Response `200`

Successfully generated the Sanction PDFs

- GenerateAllSanctionsPdfResponse
  - `pdfUrls` string[]

## Other responses

- `204` — No sanctions present; empty body
- `401` — Invalid or missing X-Credentialing-Api-Key
- `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)
