Skip to main content
POST
Upload a CSV of contacts with a consent attestation

Authorizations

lx_session
string
cookie
required

Dashboard session cookie

Headers

Idempotency-Key
string
required

Replays within 24 h return the stored response; the same key with a different body returns 409

Required string length: 8 - 255

Body

multipart/form-data
attestation_text
string
required

Attestation of how consent was obtained

Required string length: 20 - 4000
file
file
required

CSV with an e164 column; other columns become attributes

campaign_id
string<uuid>

Also enrol every imported contact in this campaign

Available options:
express,
express_written
Available options:
import,
web_form,
verbal_recorded,
other

Response

Accepted

attested_at
string<date-time>
required
attested_by
string<uuid>
required
created_at
string<date-time>
required
id
string<uuid>
required
rows_ok
integer<int64>
required
rows_rejected
integer<int64>
required
rows_total
integer<int64>
required
status
enum<string>
required
Available options:
uploaded,
processing,
done,
failed
campaign_id
string<uuid>
Available options:
express,
express_written
Available options:
import,
web_form,
verbal_recorded,
other
error
string
finished_at
string<date-time>