Skip to main content
POST
Upload a file to an underwriting submission

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Path Parameters

submissionId
string<uuid>
required

The submission’s id.

Body

application/json
fileName
string
required

Filename including extension, for example acord-125.pdf. Maximum 255 characters.

Required string length: 1 - 255
sizeBytes
integer
required

Exact file size in bytes.

Required range: 0 <= x <= 9007199254740991
mimeType
string

Media type, for example application/pdf. Inferred from the filename when omitted.

Required string length: 1 - 255

Response

Where to send the bytes. Valid for one hour.

uploadToken
string
required

Opaque upload token. Return it unchanged to completeUnderwritingSubmissionUpload for this submission within one hour.

Required string length: 1 - 16384
fileName
string
required

Selected filename; may be renamed to avoid a collision.

uploadUrl
string
required

Signed URL to PUT the bytes to.

method
enum<string>
required
Available options:
PUT
headers
object
required

Include these headers when uploading the bytes. Send API credentials only to Effective, not to the upload URL.

expiresAt
string<date-time>
required

Expiry of the upload URL and completion token.