Create an async CSV import job
Accepts multipart/form-data with a file field (the CSV) and an
optional block_ttl_days (integer >0, default 30). Validates:
- content ≤ 25 MiB, else
413 - row count ≤ 250 000, else
413 - header-only / all-blank / undetectable provider →
400Returns202with the import record (statuspending); an Oban worker (EmailBlockImportWorker, max_attempts 3) transitionspending → processing → completed | failed.block_ttl_daysapplies only to importedmanual_blockrows; other reasons getexpires_at: nil. Provider is auto-detected from the CSV header (sendgrid/mailgun/ses/generic).
POST
JavaScript
Authorizations
Telnyx API key supplied as Authorization: Bearer <token>. In production, auth may be validated by the API gateway and forwarded via Telnyx auth headers.
Body
multipart/form-data
Response
Import job accepted (status pending).
Import job. Schema fields hidden: account_id, csv_content,
block_ttl_days. Nullable fields use the omit-nullable pattern.
JavaScript