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 or when the analyst deleted the generated document.
Request
Responses
- 200
- 204
- 401
- 404
- 500
Successfully generated the NPDB report PDF. Also returned for a pipeline run that failed for a settled reason (its NPDB response is not on the workflow): the step is recorded as ERROR and the body is a GenerateNpdbPdfSettledFailureResponse (stepFailed=true). Acked rather than failed because Cloud Tasks retries every non-2xx and a retry cannot change it.
No NPDB PDF URL available, or the analyst deleted the generated document; empty body
Invalid or missing X-Credentialing-Api-Key
Credentialing workflow not found
Internal Server Error - An unexpected error occurred