Skip to main content
The contacts command lets you manage contacts in your Loops audience.

create

Create a new contact.
loops contacts create \
  --email alice@example.com \
  --first-name Alice \
  --list "cm06f5v0e45nf0ml5754o9cix=true"

Flags

FlagShortDescription
--email-eContact email address Required
--user-id-uUser ID
--first-nameFirst name
--last-nameLast name
--subscribed-sSubscribed 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-groupUser group
--sourceSource (“API” by default)
--listMailing list subscription as id=true|false (repeatable)
--propContact property as KEY=value (repeatable)
--contact-propsPath to a JSON file of contact properties

Contact properties

Use --prop to set contact properties inline:
loops contacts create \
  --email alice@example.com \
  --first-name Alice \
  --prop "planName=Pro" \
  --prop "signupDate=2025-01-15"
Alternatively, use --contact-props to set properties from a JSON file:
props.json
{
  "firstName": "Alice",
  "planName": "Pro",
  "signupDate": "2025-01-15"
}
loops contacts create \
  --email alice@example.com \
  --contact-props ./props.json
The flags for default properties (i.e. --first-name or --subscribed) take precedence over the --prop flag.

update

Update an existing contact. Identify the contact by email or user ID.
loops contacts update \
  --email alice@example.com \
  --last-name Smith \
  --list "cm06f5v0e45nf0ml5754o9cix=true"

Flags

FlagShortDescription
--email-eContact email address
--user-id-uUser ID
--first-nameFirst name
--last-nameLast name
--subscribed-sSubscribed status (true or false)
--user-groupUser group
--listMailing list subscription as id=true|false (repeatable)
--propContact property as KEY=value (repeatable)
--contact-propsPath to a JSON file of contact properties

Contact properties

Use --prop to set contact properties inline:
loops contacts update \
  --email alice@example.com \
  --last-name Smith \
  --prop "planName=Unlimited"
Alternatively, use --contact-props to set properties from a JSON file:
props.json
{
  "lastName": "Smith",
  "planName": "Unlimited",
}
loops contacts update \
  --email alice@example.com \
  --contact-props ./props.json
The flags for default properties (i.e. --first-name or --subscribed) take precedence over the --prop flag.

find

Find a contact by email or user ID.
loops contacts find --email alice@example.com

Flags

FlagShortDescription
--email-eContact email address
--user-id-uContact user ID

delete

Delete a contact by email or user ID.
loops contacts delete --email alice@example.com

Flags

FlagShortDescription
--email-eContact email address
--user-id-uContact user ID

suppression check

Check whether a contact is on the suppression list. Identify the contact by email or user ID.
loops contacts suppression check --email alice@example.com

Flags

FlagShortDescription
--email-eContact email address
--user-id-uContact user ID

suppression remove

Remove a contact from the suppression list. Identify the contact by email or user ID.
loops contacts suppression remove --email alice@example.com

Flags

FlagShortDescription
--email-eContact email address
--user-id-uContact user ID
Last modified on April 17, 2026