Campayn

14 tools available

Campayn is an email marketing platform that allows users to create, send, and manage email campaigns.

Connect Campayn to Definable to automate repetitive tasks, sync data with the rest of your stack, trigger on real-world events. Personas call Campayn's 14 tools directly from chat or scheduled flows. You can wire it into any persona to read, write, and react when an event fires.

Common workflows with Campayn

01

Trigger on event

  1. Listen for a new event
  2. Parse and validate the payload
  3. Take an action with the linked tool
02

Daily summary

  1. Pull yesterday's activity
  2. Summarise with the model of your choice
  3. Send the digest via email or Slack
03

Cross-tool sync

  1. Read records from one app
  2. Transform with a persona
  3. Write the result back via this integration

Campayn actions 14

Every Campayn action below is a callable tool any Definable persona can invoke.

Create Contact

Tool to create a new contact in a specific list. Use when you need to add a contact after gathering details.

Delete Contact

Tool to delete a specific contact. Use when you need to remove a contact permanently after confirming it should be deleted. Example: "Delete contact 123".

Delete List

Tool to delete a specific contact list. Use when cleaning up unused lists after confirming they are no longer needed. Example: "Delete list 123".

Delete webform

Delete a specific webform from a contact list. Use this to permanently remove a webform that is no longer needed. Requires both the list_id and webform_id - use Get Webforms action first to find these values. Note: The API returns success even for non-existent webform IDs (idempotent delete behavior).

Get Contact

Tool to retrieve a specific contact by ID. Use when you need to fetch full contact details after confirming the contact ID.

Get Contacts

Retrieves all contacts from a specific contact list in Campayn. Returns contact details including email, name, address, and confirmation status. Use 'Get Lists' action first to obtain the list_id. Supports optional filtering by contact name/email/company.

Get Lists

Tool to retrieve all contact lists. Use when you need to fetch available lists before performing list-specific actions. Example prompt: "List all my contact lists".

Get Message Statistics

Tool to retrieve engagement statistics for a specific email message by ID. Returns views, positive responses (clicks), and negative responses (unsubscribes/bounces). Use GET_MESSAGES first to get the list of available message IDs.

Get Messages

Tool to retrieve all email messages. Use when you need to list all messages visible to the authenticated user.

Get Reports

Tool to retrieve report URLs and metadata for sent and scheduled emails. Use when you need to fetch email delivery data, optionally filtered by a date range (Unix timestamp in seconds, UTC). Note: scheduled emails will have report_url set to null.

Get Webform

Tool to retrieve details of a specific webform by ID. Use after confirming the webform ID when you need to fetch form details like title, type, HTML, and signup count. Example: "Get webform 1550".

Get Webforms

Tool to retrieve all webforms for a specific contact list. Use when you need to list forms after confirming the list ID. Example prompt: "List all webforms in list 123".

Unsubscribe Contact

Tool to unsubscribe contacts from a list by contact id or email address. Use when you need to remove contacts from a mailing list. If id is provided, only that specific contact will be unsubscribed. If email is provided, all contacts on that list with that email will be unsubscribed.

Update List

Tool to update a contact list. Use after confirming list ID and desired changes. Example: Update list 123 name to 'Newsletter Subscribers'.

Frequently asked questions

What can I automate with Campayn on Definable?

Anything Campayn exposes through its API. Common email newsletters workflows on Definable include automate repetitive tasks, sync data with the rest of your stack, trigger on real-world events. Personas can call any of the 14 Campayn tools directly, then chain the result into another integration without you writing code.

How does Campayn authentication work?

Campayn uses API_KEY on Definable. You connect once from the integrations page, scoped to the permissions you choose, and from then on any persona that has the integration enabled can act on your behalf. Tokens are encrypted at rest and rotated automatically.

Is the Campayn integration included in my Definable plan?

Yes — every Definable plan, including Starter, includes access to all 14 Campayn tools. You only need a separate Campayn subscription if Campayn itself charges per seat or per API call.

Is using Campayn through Definable secure?

Every call from a persona to Campayn is logged with the user, persona, prompt, and response. Tokens never leave Definable's secrets vault, scopes are configurable per persona, and you can revoke access at any time from the integration page.

How do I get started with Campayn on Definable?

Sign up for Definable, open the integrations page, find Campayn, and connect via OAuth or API key. You can immediately attach Campayn to any persona and start running workflows. The free Starter plan includes 5,000 credits/month.

What Campayn actions does Definable expose?

Definable exposes all 14 Campayn actions as callable tools — including `Create Contact`, `Delete Contact`, `Delete List`, plus 11 more. Each tool gets a typed parameter schema so personas know exactly how to call it.

Ready to automate with Campayn?

Wire it up in minutes. No coding required.

← All integrations