Import contacts from a CSV file
post/crm/import
Import contacts from a CSV file. A dry run first reports what would happen; nobody becomes subscribed by being in a file unless the importer states the basis.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
contacts:admin- Graphql
Mutation.contactsImportRun- Sdk
contacts.import.run- Cli
contacts import run
Request bodyapplication/json, required
- csvstringrequiredAt most 20000000 characters.
- mappingobject
- dryRunbooleanDefault: true.
- onExistingstringOne of: skip, fill, overwrite. Default: fill.
- tagslist of string
- sourcestringDefault: import. At most 80 characters.
- countrystringAt most 2 characters.
- consentobject
- channelstringOne of: email, sms, whatsapp, phone. Default: email.
- purposestringDefault: marketing.
- basisstringrequiredAt most 500 characters.
- collectedAtstringAt most 40 characters.
- policyVersionstringAt most 40 characters.
- channelstring
Responses
- 200application/jsonSuccess
object - 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring