Skip to content
dimmiDocs

Contacts and companies

Tag customers from a CSV

POST/api/v1/contact-lists

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the contacts:write ability

Body

application/json
filenamestring

filename of the file being uploaded

Format: binary

namestring

general purpose name for multipart form value

Response 200

OK
dataobjectrequired
Show child attributes
matchedintegerrequired

How many values of the list named a customer, or how many customers the audience matched.

Format: int64

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

rowsinteger

How many values the uploaded list held. Left out when an audience was tagged instead of a list.

Format: int64

tag_idstringrequired

Id of the tag that was applied, such as tag_.... Send it wherever a tag is asked for.

tag_namestringrequired

Name of the tag that was applied.

taggedintegerrequired

How many customers were newly tagged; those who already had the tag are not counted.

Format: int64

unmatchedintegerrequired

How many values of the list named nobody; 0 when an audience was tagged.

Format: int64

unmatched_samplestring[] | nullrequired

Some of the values that named nobody, to help fix the list; empty when all matched.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.