Skip to main content
POST
Get a CSV upload URL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
subscriber_group_id
string<uuid>
required

ID of the subscriber group to import into

Example:

"01234567-89ab-cdef-0123-456789abcdef"

file_name
string
required

Name of the file being uploaded, shown on the import

Minimum string length: 1
Example:

"contacts.csv"

Must be true. Confirms that every contact in this file has opted in to receive marketing emails from your organization. Recorded on the import for compliance purposes.

Available options:
true
Example:

true

require_first_name
boolean
default:false

If true, skip rows that are missing a first name

Example:

false

require_last_name
boolean
default:false

If true, skip rows that are missing a last name

Example:

false

Response

The URL to upload the CSV file to

upload_url
string
required

URL to PUT the CSV file to, with the file as the body and the content_type value as the Content-Type header. Expires in 5 minutes.

Example:

"https://uploads.example.com/subscriber-imports/contacts.csv?signature=abc123"

content_type
string
required

The Content-Type header value required for your PUT request. Must match exactly.

Example:

"text/csv"

file_id
string<uuid>
required

Identifies this upload. Match it against file_id in the group's import list to find the import.

Example:

"01234567-89ab-cdef-0123-456789abcdef"