Import contacts

Authentication

AuthorizationBearer

Pass a JWT access token or an API key (prefixed with tif_live_) as a Bearer token.

Request

This endpoint expects an object.
fileContentstringRequired

Base64-encoded file content (VCF, CSV, or JSON)

formatenumRequired
File format of the encoded content
confirmedbooleanOptional

Set to true to execute the import; false returns a dry-run preview

defaultCountryCodestring or nullOptional

Default country code for phone numbers without + prefix

duplicateStrategyenumOptional

How to handle contacts whose phone number already exists (default: skip)

Response

Import result
errorslist of objects
Detailed error information for each failed row
failedinteger>=0
Number of contacts that failed validation
importedinteger>=0
Number of contacts successfully imported
skippedinteger>=0
Number of contacts skipped due to duplicate phone numbers
totalRowsinteger>=0
Total number of rows parsed from the file
previewlist of objects or nullOptional

Preview of first 10 contacts that will be imported (only in preview mode)

skippedPreviewlist of objects or nullOptional

Preview of first 10 skipped contacts with reasons (only in preview mode)

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error