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

# Generate DEA Verification PDFs

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

Generates one DEA Verification PDF per DEA record and attaches each to its dea[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 DEA Verification PDFs

- GenerateDeaPdfResponse
  - `pdfUrls` string[]

## Other responses

- `204` — No PDF URLs were generated: no DEA records found, no rows matched, or artifact generation is not enabled for the tenant (sections.dea.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.
- `400` — Bad Request - Invalid workflow state or request
- `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
- `503` — Service temporarily unavailable

---

[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)
