Skip to main content
POST

Authorizations

Authorization
string
header
required

Project API key (sk_api_…).

Body

application/json
kind
enum<string>
required
Available options:
google_sheets
ref
string
required

The spreadsheet id, optionally followed by ! and a tab or A1 range ({id}!Contacts!A:E). A bare id reads the first tab, columns A–ZZ.

connectionId
string

Reads through this Google connection instead of the public-link path.

mapping
object

Overrides column auto-detection.

Response

The sheet as it stands right now. willBeCalled plus every count in excluded reconciles to total.

summary
object

What the import kept and dropped.

detectedMapping
object

The columns actually used, after applying mapping. When a name was joined from two columns, nameColumn reads First Name + Last Name.

sample
object[]

The first ten contacts that would be dialed.

Maximum array length: 10
total
integer

Rows read, before validation.

columns
string[]

The header row as parsed — what a mapping override chooses from. Absent for free-form paste, which has no headers.

mappingIssues
enum<string>[]

Non-empty means column detection failed. An unmapped phone column then shows up as every row invalidPhone with an empty value.

Available options:
phoneColumnNotFound,
nameColumnNotFound