Skip to main content
POST
/
api
/
v1
/
income-docs
/
upload-url
Get Income Doc Upload URL
curl --request POST \
  --url https://api.example.com/api/v1/income-docs/upload-url \
  --header 'Content-Type: application/json' \
  --data '
{
  "file_name": "<string>",
  "content_type": "<string>",
  "file_size": 123
}
'
{
  "uploadUrl": "https://s3.amazonaws.com/bucket/income-docs/1/...",
  "s3Key": "income-docs/1/w2-2025.pdf"
}

Request Body

file_name
string
required
Original file name.
content_type
string
required
MIME type: application/pdf, image/jpeg, or image/png.
file_size
integer
required
File size in bytes (1–10MB).

Response

{
  "uploadUrl": "https://s3.amazonaws.com/bucket/income-docs/1/...",
  "s3Key": "income-docs/1/w2-2025.pdf"
}