Create contact
plunk_create_contactAdd a single contact or update an existing one by email. Safe to call twice, ensuring the contact exists before acting on them.
Instructions
Purpose: Create a contact, or update it if the email already exists. Safe to call twice.
Not for: Adding many at once, which is plunk_import_contacts.
Returns: The created or updated contact.
Use when: Adding a single person, or ensuring one exists before acting on them.
Note: Emails are normalised server-side for case and whitespace on Plunk v0.12+.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Custom contact fields, e.g. {plan: 'pro'} | |
| Yes | |||
| subscribed | No |