30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

MailerPress Create Contact

mailerpress/create-contact creates a single contact with an email address, an optional name, and optional list, tag and custom-field assignments.

Behaviour depends on the site’s opt-in setting. A double-opt-in install sends a confirmation email and leaves the contact pending until they click; a single-opt-in install subscribes them immediately.

At a glance

Abilitymailerpress/create-contact
ToolsetMailerPress — toolset/mailerpress
GroupMailerPress › Contacts
RequiresAcrossAI Pro, plus MailerPress active on the site
Capabilitymanage_options
SafetyWrites data
RepeatableNot idempotent — each call changes the row set, so re-running is not a no-op
Ships inAcrossAI Pro 0.9.16 and later

How it works

That difference is consequential rather than cosmetic. On a double-opt-in site a created contact receives a confirmation email immediately — so creating contacts programmatically sends mail to those people, whether or not anybody intended it.

And until they click, they are pending and receive nothing. A bulk creation on a double-opt-in site produces a list of people who have been emailed once and cannot be emailed again.

Assigning lists and tags at creation saves a second call and, more importantly, means the contact is targetable immediately. A contact created with no list is subscribed and unreachable by list-targeted campaigns.

Custom-field values can be set here too, using keys from mailerpress/list-free-custom-fields or the Pro equivalent.

A duplicate email is an error. mailerpress/check-email-validity first.

Not idempotent.

Input

NameTypeRequiredWhat it is
emailstringYesThe email address. Must not already exist.
first_namestringNoFirst name.
last_namestringNoLast name.
listsarrayNoList IDs to join.
tagsarrayNoTag IDs to apply.
custom_fieldsobjectNoCustom-field values by key.

What comes back

NameTypeWhat it is
contactobjectThe created contact.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Add this person to the newsletter list.

It resolves to one call:

{
  "ability": "mailerpress/create-contact",
  "parameters": {
    "email": "sam@example.com",
    "first_name": "Sam",
    "lists": [3]
  }
}

Worth knowing

  • On a double-opt-in site this sends a confirmation email immediately.
  • Pending contacts receive nothing until they click.
  • A contact with no list is unreachable by list-targeted campaigns.
  • A duplicate email is an error, not a merge.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading