Skip to main content
POST
Mint an upload slot for a reply

Authorizations

X-API-Key
string
header
required

A tenant-scoped API key provisioned by Frayme.

Path Parameters

caseId
string
required

The case identifier returned by POST /cases.

rfiId
string<uuid>
required

The information request's id, delivered as rfi_id on the case.rfi_requested webhook.

Body

application/json
filename
string
required

The file's name, stored with the slot. Maximum 255 bytes.

Maximum string length: 255
contentType
enum<string>
required

Pinned into the presigned URL's signature.

Available options:
application/pdf,
image/jpeg,
image/png
sizeBytes
integer<int64>
required

The exact byte length, pinned into the signature. Maximum 20 MB.

Required range: 1 <= x <= 20971520

Response

The slot was minted.

uploadId
string<uuid>

Reference this in documents[].uploadId when you submit the answer.

uploadUrl
string<uri>

The presigned PUT URL. Create-only for its whole lifetime.

expiresAt
string<date-time>

Bounds both the PUT and the attach in step 2.