Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

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
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.