---
title: "Upload Portal Referral Attachment"
method: POST
path: "/portal/referrals/attachments"
tags: ["Referral Portal"]
---

# Upload Portal Referral Attachment

`POST /portal/referrals/attachments`

## Request

- Base URL: `https://api.openintake.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openintake.ai/portal/referrals/attachments`
- Auth: none declared

Upload one photo or document for a referral the partner is about to submit.

The returned id goes in the submit's attachment_ids; until then the file
belongs to no referral. Photos, PDFs and Word documents up to 25MB.

## Request body `multipart/form-data`

- BodyUploadPortalReferralAttachment
  - `file` string, binary, required
  - `doc_type` string

## Response `200`

Successful Response

- ReferralAttachmentResponse
  - `referral_attachment_id` string, uuid, required
  - `doc_type` string, required
  - `file_name` string, required
  - `content_type` string, nullable
  - `size_bytes` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `b3a39dc007df`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openintake/apis/openintake-api/changes/portal/referrals/attachments/post.md)

---

[API](https://skmtc.dev/openintake/apis/openintake-api.md) - [All operations](https://skmtc.dev/openintake/apis/openintake-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openintake/apis/openintake-api/revisions/de90a8dcbc07?raw)
