Skip to main content
POST
Create a file upload session

Authorizations

Authorization
string
header
required

Cognito-issued JWT access token. Send it as Authorization: Bearer <token>.

Body

application/json
matterId
string<uuid>
required

Matter identifier the file should be associated with

fileName
string
required

Original filename including extension (e.g. example.pdf)

fileType
string
required

The file type for the file

Response

Upload URL and metadata for the file

id
string<uuid>
required

Identifier for the created file record

uploadUrl
string<uri>
required

Pre-signed upload URL to use when uploading the file

fields
object
required

Form fields that must accompany the upload

key
string
required

Storage key that should be used when uploading the file

fileName
string

Original filename including extension (e.g. example.pdf)

maxFileSize
integer<int64>

Maximum allowed upload size in bytes, enforced by the upload URL