Retrieve contact
One person, by id or by address, with their properties, the audiences they are in and what they chose for each topic.
opensend contacts get <id>Flags
<id>stringRequiredThe id of the contact, or their address. Up to 120 characters.
Returns
The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.
object"contact"Always
contact.idstringThe id of the contact.
emailstringThe address of the contact. A workspace holds an address once.
firstNamestringThe first name of the contact. Empty when it is not known.
lastNamestringThe last name of the contact. Empty when it is not known.
statusstringsubscribedwhile the contact gets broadcasts,unsubscribedafter they leave.One of
subscribedunsubscribedunsubscribedAtstring | nullWhen the contact unsubscribed, or
null.propertiesRecord<string, string | number | boolean>Values of your own on the contact, by name. Automations can test them, and broadcasts and automations fill
{{name}}slots with them.audienceIdsstring[]The ids of the audiences the contact is in.
topicsRecord<string, string>What the contact chose for a topic, by the id of the topic:
opt_inoropt_out. A topic that is not here follows its own default.createdAtstringWhen the contact was added.