---
title: "POST /enrollments/{enrollmentId}/documents"
method: POST
path: "/enrollments/{enrollmentId}/documents"
---

# POST /enrollments/{enrollmentId}/documents

`POST /enrollments/{enrollmentId}/documents`

Returns a pre-signed URL to upload a PDF document for the specified transaction enrollment.

## Path parameters

- `enrollmentId` string, required — The enrollment ID for the transaction enrollment where you want to upload the PDF document. The enrollment ID is returned in the responses for the [Create Enrollment](/healthcare/api-reference/post-enrollment-create-enrollment) and [List Enrollments](/healthcare/api-reference/get-enrollment-list-enrollments) endpoints. It's also listed at the top of the [enrollment's details page](https://portal.stedi.com/app/healthcare/enrollments) in the Stedi portal.

## Request body

- CreateEnrollmentDocumentUploadRequestContent — Input for CreateDocumentUpload.
  - `name` string, required — The file name of the PDF document you want to upload. The name should include the file extension, such as `provider-license.pdf`. This name will be displayed in the Stedi portal.
  - `taskId` string, required — The ID for the task associated with this document upload.

## Response `200`

CreateEnrollmentDocumentUpload 200 response

- CreateEnrollmentDocumentUploadResponseContent — Response containing the enrollment ID, document ID, and pre-signed URL.
  - `documentId` string, required — A unique identifier for the document record within Stedi.
  - `enrollmentId` string, required — The enrollment ID for the transaction enrollment request associated with the PDF document.
  - `uploadUrl` string, required — The pre-signed URL you can use to upload the PDF document. This URL expires after 24 hours.

## Other responses

- `400` — ValidationException 400 response
- `401` — UnauthorizedException 401 response
- `403` — AccessDeniedException 403 response
- `404` — ResourceNotFoundException 404 response
- `429` — QuotaExceededException 429 response
- `500` — InternalFailureException 500 response
- `503` — ServiceUnavailableException 503 response
- `504` — GatewayTimeoutException 504 response

---

[API](https://skmtc.net/stedi/apis/stedi-enrollment.md) · [All operations](https://skmtc.net/stedi/apis/stedi-enrollment/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stedi/stedi-enrollment/revisions/f490f33d67ca/schema)
