VocalDocscontracts 1.65.0

Read an import

GET /v1/contacts/imports/{import_id}

PropertyValue
Operationget_contact_import
GroupContacts
Scopecontacts:read
Route classread
IdempotencyNo Idempotency-Key
AuditNot audited: An import report holds counts, row numbers and codes.
Released in1.61.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the contacts:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/contacts/imports/cim_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
import_idpathContactImportIdyesThe id of a Contact import: cim_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.

Responses

StatusContent typeShapeError codes
200application/jsonContactImport
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is ContactImport.

FieldTypeRequiredDescription
countsContactImportCountsyes
created_atTimestampyes
created_byActorRefyes
environmentEnvironmentyes
error_codestring or nullyesWhy a failed import read nothing; null otherwise.
errorsarray of ContactImportRowErroryesThe first 100 failed rows (a target), in row order.
finished_atTimestamp or nullyes
idContactImportIdyes
kindContactImportKindyes
object"contact_import"yes
started_atTimestamp or nullyes
statusContactImportStatusyes