Managing Contacts
Contacts represent the people in your CRM — customers, users, or any individual you want to associate with campaigns or feedback.
Create a contact
Section titled “Create a contact”contact = client.contacts.create({ "name": "Jane", "lastname": "Smith", "email": "jane.smith@example.com", "companyId": "YOUR_COMPANY_ID",})print(contact["id"])Required fields
Section titled “Required fields”| Field | Type | Description |
|---|---|---|
name | string | First name |
lastname | string | Last name |
email | string | Email address (must be unique per company) |
companyId | string | Your company identifier |
List contacts
Section titled “List contacts”contacts = client.contacts.get()Filter with a LoopBack-style dict (see Querying):
contacts = client.contacts.get({ "where": {"companyId": "YOUR_COMPANY_ID"}, "limit": 100,})Update a contact
Section titled “Update a contact”Pass only the fields you want to change:
updated = client.contacts.update(contact["id"], { "name": "Janet",})Delete a contact
Section titled “Delete a contact”client.contacts.delete(contact["id"])