---
title: "Generate and store an NPDB report PDF for a workflow"
method: POST
path: "/credentialing-workflows/{id}/generate-npdb-pdf"
tags: ["CredentialingWorkflow"]
---

# Generate and store an NPDB report PDF for a workflow

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

Generates a PDF from the NPDB (National Practitioner Data Bank) report data on the credentialing workflow identified by `id` and stores it in cloud storage. Authenticate with the X-Credentialing-Api-Key header (API key), not JWT — typically invoked from Cloud Tasks. Returns 200 with the PDF storage URL when generation succeeds. Returns 204 with no body when no NPDB PDF URL is available.

## Path parameters

- `id` string, required

## Query parameters

- `dataPipelineRequestId` string

## Headers

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

## Response `200`

Successfully generated the NPDB report PDF

- GenerateNpdbPdfResponse
  - `pdfUrl` string

## Other responses

- `204` — No NPDB PDF URL available; 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)
