Skip to main content
POST
Presigned upload for a large import file

Authorizations

Authorization
string
header
required

Your API token (af_…) as the Basic-auth username, with an empty password.

Body

application/json
filename
string
required

Original file name, e.g. leads.csv (1-500 characters). Free text kept for your own reference: it does not name the stored object, and the file's format is read from contentType alone, so an extension that disagrees with contentType changes nothing.

Required string length: 1 - 500
contentType
enum<string>
required

MIME type of the file to upload: text/csv, application/vnd.ms-excel (XLS) or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (XLSX); the PUT to uploadUrl must send the same Content-Type.

Available options:
text/csv,
application/vnd.ms-excel,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Response

Success

upload
object
required