---
title: "Generate a PSV document for a facility workflow"
method: POST
path: "/facility-credentialing-workflows/{id}/generate-psv"
tags: ["FacilityCredentialingWorkflow"]
---

# Generate a PSV document for a facility workflow

`POST /facility-credentialing-workflows/{id}/generate-psv`

Generates the PSV PDF document for the specified facility credentialing workflow. Returns 200 OK with the generation result when complete. The resulting file path is recorded in the workflow's timeline events. To retrieve the generated document, use GET /facility-credentialing-workflows/{id}/latest-psv-pdf.

## Path parameters

- `id` string, required

## Query parameters

- `triggeringEventId` string

## Headers

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

## Response `200`

Successfully generated the Facility PSV document

- GenerateFacilityPsvResponse
  - `bucketName` string
  - `filePath` string
  - `facilityCredentialingWorkflowId` string
  - `facilityId` string
  - `data` unknown

## Other responses

- `401` — Invalid or missing X-Credentialing-Api-Key
- `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)
