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

Request Body

file_name
string
required
Original file name (e.g., contract.pdf).
content_type
string
required
MIME type. Must be application/pdf, image/jpeg, or image/png.
file_size
integer
required
File size in bytes. Must be 1–10,485,760 (10MB).

Response

{
  "uploadUrl": "https://s3.amazonaws.com/bucket/contracts/1/def456.pdf?...",
  "s3Key": "contracts/1/def456.pdf"
}