PPlunk Docs

Manage contacts

Create, update, and delete contacts through the API.

Contacts are automatically created the first time you send them an email or track an event for their address. You can also manage them directly.

Create a contact

typescript
await plunk.contacts.create({
  email: "user@example.com",
  subscribed: true,
});

Update a contact

typescript
await plunk.contacts.update({
  email: "user@example.com",
  data: { firstName: "Ada", plan: "pro" },
});

Delete a contact

typescript
await plunk.contacts.delete({ email: "user@example.com" });