Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

A staff session token, uk_st_…. Minted by sign-up, sign-in or the two-factor exchange.

Headers

X-Organization-Id
string

The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing. Absent, the session's default organization answers.

Query Parameters

environment
enum<string>
required

Which environment the contacts land in. Required here, unlike every read on this surface: a read of the wrong environment is a wasted click, and ten thousand contacts written into the wrong one cannot be un-written.

Available options:
live,
test
filename
string

What to call the file in the report. Only read with a text/csv body; the JSON body carries its own filename.

Body

The body is of type string.

Example:

"email,name,external_id,customer\nana@example.com,Ana,usr_1,Acme Inc\nbia@example.com,Bia,usr_2,Acme Inc\n"

Response

Accepted. Nothing has been applied yet — poll the import to watch it.

import
object

One CSV import. Progress is derived from its lines on every read rather than accumulated as the worker goes — the tallies are a query, never a counter, because a counter maintained by a job the queue may retry double-counts.