---
title: "Create a new document upload"
method: POST
path: "/v1/referrals/{id}/document_upload"
tags: ["Referrals"]
---

# Create a new document upload

`POST /v1/referrals/{id}/document_upload`

The `uri` will be a presigned S3 URL allowing you to upload the referral doc securely. This URL can only be used for a `PUT` operation and expires 30 minutes after its creation. Once your upload is complete, we will use this to prefill the application.

Refer to these [docs](https://docs.aws.amazon.com/AmazonS3/latest/dev/PresignedUrlUploadObject.html) on how to upload to this presigned S3 URL. We highly recommend using one of AWS SDKs if they're available for your language to upload these files.

## Path parameters

- `id` string, required

## Request body

- CreateDocumentRequest — Request for creating new document upload URL.
  - `type` 'ARTICLES_OF_INCORPORATION' | 'IRS_EIN_CONFIRMATION' | 'IRS_EIN_APPLICATION' | 'CERTIFICATE_GOOD_STANDING', required — Type of document being submitted. Allowable types: - ARTICLES_OF_INCORPORATION - IRS_EIN_CONFIRMATION (IRS CP 575, CP 575 fax sheet, or 147C form) - IRS_EIN_APPLICATION (IRS SS4 form) - CERTIFICATE_GOOD_STANDING

## Response `200`

Success

- Document
  - `uri` string, required — This is a presigned S3 link that should be used to attach the document. The maximum size accepted for this document is 50 MB.
  - `id` string, required — Unique identifier for the document.

## Other responses

- `401` — Unauthorized
- `404` — Referral not found

---

[API](https://skmtc.net/brex-com/apis/onboarding-api.md) · [All operations](https://skmtc.net/brex-com/apis/onboarding-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/brex-com/onboarding-api/revisions/9a5329a23c39/schema)
