Skip to main content
POST
Create an async CSV import job

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
file
file
required

The CSV file (Plug.Upload). Missing/non-upload → 400.

block_ttl_days
integer
default:30

TTL for imported manual_block rows; other reasons get expires_at: null. Invalid/missing → falls back to 30.

Required range: x >= 1

Response

Import job accepted (status pending).

data
object
required

Import job. Schema fields hidden: account_id, csv_content, block_ttl_days. Nullable fields use the omit-nullable pattern.