Skip to main content
POST
Get an upload URL for a document question

Authorizations

Authorization
string
header
required

Enter Auth0 JWT token

Headers

Zuba-Account-Id
string<uuid>

Optional. Names an owned sub-account (UUID) to read and answer that sub-account’s requests. Omit for your master account’s own requests.

Path Parameters

id
string<uuid>
required

The request

itemId
string<uuid>
required

The question

Body

application/json
fileName
string
required

The name the document is listed under.

fileSize
number
required

The size in bytes, at most 10 MB.

Example:

245000

mimeType
string
required

The content type: application/pdf, image/jpeg or image/png.

Example:

"application/pdf"

Response

documentKey
string
required

Attach the uploaded file under this key.

uploadUrl
string
required

PUT the file here, with the Content-Type it was declared with. Expires in three minutes.