contacts command lets you manage contacts in your Loops audience.
create
Create a new contact.
Flags
| Flag | Short | Description |
|---|---|---|
--email | -e | Contact email address Required |
--user-id | -u | User ID |
--first-name | First name | |
--last-name | Last name | |
--subscribed | -s | Subscribed status (true or false). We recommend leaving this field out unless you specifically want to unsubscribe or re-subscribe a contact. All new contacts are subscribed by default. |
--user-group | User group | |
--source | Source (“API” by default) | |
--list | Mailing list subscription as id=true|false (repeatable) | |
--contact-props | Path to a JSON file of contact properties |
Contact properties file
Use--contact-props to set custom properties from a JSON file:
props.json
update
Update an existing contact. Identify the contact by email or user ID.
Flags
| Flag | Short | Description |
|---|---|---|
--email | -e | Contact email address |
--user-id | -u | User ID |
--first-name | First name | |
--last-name | Last name | |
--subscribed | -s | Subscribed status (true or false) |
--user-group | User group | |
--list | Mailing list subscription as id=true|false (repeatable) | |
--contact-props | Path to a JSON file of contact properties |
find
Find a contact by email or user ID.
Flags
| Flag | Short | Description |
|---|---|---|
--email | -e | Contact email address |
--user-id | -u | Contact user ID |
delete
Delete a contact by email or user ID.
Flags
| Flag | Short | Description |
|---|---|---|
--email | -e | Contact email address |
--user-id | -u | Contact user ID |
suppression check
Check whether a contact is on the suppression list. Identify the contact by email or user ID.
Flags
| Flag | Short | Description |
|---|---|---|
--email | -e | Contact email address |
--user-id | -u | Contact user ID |
suppression remove
Remove a contact from the suppression list. Identify the contact by email or user ID.
Flags
| Flag | Short | Description |
|---|---|---|
--email | -e | Contact email address |
--user-id | -u | Contact user ID |

