# PushFire V2: Agentic Lifecycle Marketing

PushFire V2 is built for AI agents: an MCP server for Claude, ChatGPT and Cursor, a subscriber API keyed by your own user id, stable error codes, smarter push delivery and SDKs that recover by themselves.

Published: 2026-12-03T00:00:00.000Z

**TL;DR:** In the last two weeks we shipped 13 changes to PushFire. Your AI agent can now run your push and email lifecycle marketing: it connects over MCP, manages subscribers by your own user ids, reads error codes it can act on, and launches workflows. Push delivery retries for longer and drops expired tokens. The Flutter and Swift SDKs keep devices registered by themselves. Each section below links to the changelog entry and the docs, and ends with a prompt you can paste into your agent.

## What "agentic lifecycle marketing" means

Lifecycle marketing is the welcome push, the day-three email, the win-back nudge. Each step is small. Together they take hours of setup and checking.

PushFire V2 gives that work to an agent. You say what you want. The agent reads your project, plans the steps, shows you the plan and calls PushFire. You approve every send to real people.

For that to work, an agent needs three things from a platform:

1. **Tools it can call** without a person in the console. That is the MCP server.
2. **An API it cannot misread.** That is ids from your own system, and error codes in place of error prose.
3. **Delivery that heals itself.** That is smarter retries, expired-token handling and SDKs that recover on their own.

Every change below serves one of the three.

**Give your agent the whole picture.** Add **.md** to any PushFire docs URL to get the page as Markdown. Our [llms.txt](https://www.pushfire.app/llms.txt) lists every guide and the latest changelog entries. To install the PushFire agent skill in Claude Code, Cursor or Codex, run:

```shell
npx skills add https://www.pushfire.app
```

## 1. Run PushFire from Claude, ChatGPT and Cursor

PushFire now has a Model Context Protocol (MCP) server. Add this URL to your MCP client:

```text
https://api.pushfire.app/functions/v1/mcp
```

Sign in to PushFire once and approve the consent screen. The prompts in this post that use the MCP server assume you added it. The agent then acts as you, with your role and your plan limits. It holds no API key. It has 74 tools for projects, subscribers, tags, segments, workflows, broadcasts, connectors, email layouts, members and API keys.

Tools that send, delete, revoke or rotate are marked destructive, so clients that respect the mark ask you first. PushFire has no send limits for agents yet, so review each send.

- Changelog: [Run PushFire from Claude, ChatGPT and Cursor](https://www.pushfire.app/changelog/2026-12-02-connect-ai-agents-with-the-pushfire-mcp-server)
- Docs: [MCP server](https://www.pushfire.app/docs/guides/developers-mcp)
- Deep dive: [PushFire's MCP server: run lifecycle marketing from Claude, ChatGPT and Cursor](https://www.pushfire.app/blog/integrations/pushfire-mcp-server-claude-chatgpt-cursor)

**Tell your agent:**

```text
Use the PushFire MCP server. List my projects, then show me my segments and active workflows. Do not send anything.
```

## 2. Manage subscribers by your own user id

Your server no longer needs to store PushFire ids. Use the user id from your own system (the **externalId**) and a tag's key.

New endpoints, Secret key only:

- **create-subscriber** creates a subscriber for an **externalId**. A repeat call returns the same subscriber.
- **get-subscriber** returns a subscriber with its devices and tags.
- **delete-subscriber** erases a subscriber and its data. Use it when a user deletes their account or asks you to erase their data.
- **delete-device** removes one device by its id or its push token.

Every tag now has a key made from its name. "Paid plan" becomes **paid_plan**. The tag endpoints accept **externalId** and **tagKey**:

```json
POST /functions/v1/add-subscriber-tag
{ "data": { "externalId": "user-123", "tagKey": "paid_plan", "value": "yes" } }
```

Your existing Secret keys already have the new scopes. An erase cannot be undone.

- Changelog: [Create, read and erase subscribers by your own user id](https://www.pushfire.app/changelog/2026-12-02-create-read-and-erase-subscribers-from-the-api)
- Docs: [API Reference](https://www.pushfire.app/docs/guides/developers-api-reference), [Subscribers](https://www.pushfire.app/docs/guides/manage-your-audience-subscribers), [Tags](https://www.pushfire.app/docs/guides/manage-your-audience-tags)

**Tell your agent:**

```text
Read https://www.pushfire.app/docs/guides/developers-api-reference.md. Replace every place where we store a PushFire subscriber id with calls that use our own user id as `externalId`. When a user deletes their account, call `delete-subscriber`. Use the Secret key on the server only.
```

## 3. Every API error has a stable code

Agents are bad at parsing error prose. Now they do not have to. Every PushFire API error returns the same body:

```json
{
  "error": "Workflow is inactive or has no published version",
  "errors": [{ "code": "workflow_inactive", "message": "Workflow is inactive or has no published version" }]
}
```

- Branch on **code**. We add codes, but we never rename or remove one.
- A **validation_failed** error names the invalid field in **path**.
- A mistake in your request returns a 4xx. A 5xx now means a fault on our side, and it is safe to retry later.

The top-level **error** string stays, so old clients keep working.

- Changelog: [Every API error now has a stable code](https://www.pushfire.app/changelog/2026-12-02-stable-error-codes-in-every-api-error)
- Docs: [API Reference](https://www.pushfire.app/docs/guides/developers-api-reference)

**Tell your agent:**

```text
Read https://www.pushfire.app/docs/guides/developers-api-reference.md. Update our PushFire error handling to branch on `errors[].code`, not on the message text. Retry only on 5xx.
```

## 4. Batch sends tell you who was skipped

When a batch request is valid but no subscriber can get the message, the batch push and batch email endpoints now return **200** with two lists: **success** and **errors**. Each error gives the subscriber and a code, such as **no_push_device** or **no_email_address**. A **400** now means only one thing: the request body is invalid.

**Action required:** if your code treats a **400** from a batch send as "skip this user", read the **errors** array in the **200** response instead.

- Changelog: [Batch push returns per-subscriber results](https://www.pushfire.app/changelog/2026-11-25-batch-push-returns-results-when-no-subscriber-can-receive), [Fixes and polish — December 2026](https://www.pushfire.app/changelog/2026-12-02-fixes-and-polish-december-2026)
- Docs: [Messages API](https://www.pushfire.app/docs/guides/developers-api-messages)

**Tell your agent:**

```text
Find every call to PushFire batch push and batch email. A 400 now means an invalid request only. Read the `errors` array of the 200 response to find skipped subscribers, and log each `code`.
```

## 5. Push delivery retries smarter and drops expired tokens

Push delivery now handles each kind of failure in the right way:

- **Temporary failures retry for up to 24 hours,** with a longer wait each time.
- **Expired tokens stop getting pushes.** The device stays in your project and gets pushes again as soon as your app registers it.
- **Other errors fail at once,** so you see a bad message or a credentials problem sooner.

In the console, a device with an expired token shows a **Token expired** badge. A workflow push step that finds no device shows **Skipped**, not **Failed**.

- Changelog: [Push sends retry for longer and flag expired device tokens](https://www.pushfire.app/changelog/2026-12-02-expired-push-tokens-and-smarter-retries)
- Docs: [Subscribers](https://www.pushfire.app/docs/guides/manage-your-audience-subscribers), [Push notification node](https://www.pushfire.app/docs/guides/messaging-workflows-nodes-push-notification)

## 6. Flutter and Swift SDKs keep devices registered by themselves

Flutter SDK 0.4.0 and Swift SDK 0.2.0 do the token housekeeping for you:

- **Daily check-in.** The SDK registers the device at least once every 24 hours, so PushFire never treats a device in use as expired.
- **Self-recovery.** If your server deleted the device or erased its subscriber, the SDK registers the device again and retries once.
- **Error codes.** SDK errors carry the API's error code, with helpers such as **isDeviceNotFound**.
- **Safer logout.** Logout no longer throws when the device is already detached.

```yaml
dependencies:
  pushfire_sdk: ^0.4.0
```

```swift
.package(url: "https://github.com/FlywheelStudio/pushfire-swift-sdk", from: "0.2.0")
```

- Changelog: [Flutter SDK 0.4.0](https://www.pushfire.app/changelog/2026-12-02-flutter-sdk-recovers-deleted-devices), [Swift SDK 0.2.0](https://www.pushfire.app/changelog/2026-12-02-swift-sdk-recovers-deleted-devices)
- Docs: [Flutter](https://www.pushfire.app/docs/guides/integrations-flutter-pushfire), [Swift](https://www.pushfire.app/docs/guides/swift-push-notifications)

**Tell your agent:**

```text
Upgrade the PushFire SDK to the latest version (Flutter `pushfire_sdk` ^0.4.0 or Swift 0.2.0). Read https://www.pushfire.app/changelog/2026-12-02-flutter-sdk-recovers-deleted-devices and fix any code that catches PushFire errors by message text.
```

## 7. Launch, duplicate and copy workflows

- **Launch a Manual workflow** from its **Executions** page. Pick segments or subscribers, and the console shows the audience size before you confirm.
- **Duplicate a workflow** in one click. The copy starts inactive, so you can check it first.
- **Copy several steps at once** with Cmd-click or Ctrl-click, and paste them into any workflow in the same project.

The execution history also shows whether each run started from the console or the API.

- Changelog: [Launch, duplicate and copy workflows](https://www.pushfire.app/changelog/2026-12-02-duplicate-launch-and-copy-workflows)
- Docs: [Workflows](https://www.pushfire.app/docs/guides/messaging-workflows)

**Tell your agent:**

```text
Use the PushFire MCP server. Read my onboarding workflow, then create a new inactive workflow like it that adds a day-7 email for subscribers without the `paid_plan` tag. Show me the steps before you create it.
```

## 8. Email: edit SMTP safely, and large sends pace themselves

- **Edit your SMTP connector.** Change the username, password, host or port without a disconnect. PushFire signs in to your mail server with the new values before it saves. If the sign-in fails, your old settings stay, so your sends do not stop. The form lists the settings for Gmail, Cloudflare Email, SendGrid, Postmark and Mailgun.
- **Paced sends.** PushFire now sends email at a steady rate for each connector, so a large broadcast stays under your provider's rate limit instead of failing part way through.
- Changelog: [Edit your SMTP connector](https://www.pushfire.app/changelog/2026-12-02-edit-and-test-your-smtp-connector), [Email sends pace themselves](https://www.pushfire.app/changelog/2026-11-19-email-sends-pace-themselves)
- Docs: [SMTP](https://www.pushfire.app/docs/guides/connectors-smtp), [Connectors](https://www.pushfire.app/docs/guides/connectors)

## 9. Upgrade your legacy API key before November 16, 2027

Legacy API keys stop working on **November 16, 2027**. If your project still uses one, the console shows a banner. Open **Developers → API keys → Upgrade** to see when each key was last used, then:

1. Put the Public key (**pf_pk_...**) in your mobile and web apps.
2. Put the Secret key (**pf_sk_...**) on your servers.
3. Check that nothing still calls the API with the legacy key.
4. Revoke the legacy key.

- Changelog: [Upgrade your legacy API key](https://www.pushfire.app/changelog/2026-11-23-upgrade-your-legacy-api-key-before-november-2027)
- Docs: [Legacy credentials and migration](https://www.pushfire.app/docs/guides/developers-api-keys-legacy-migration), [Public and Secret keys](https://www.pushfire.app/docs/guides/developers-api-keys-public-and-secret)

**Tell your agent:**

```text
Read https://www.pushfire.app/docs/guides/developers-api-keys-legacy-migration.md. Find every place we use the PushFire legacy key. Use the Public key in the app and the Secret key on the server. Never put the Secret key in client code.
```

## 10. Fixes and polish

We also fixed a long list of smaller things. Lists of tags and workflows export to CSV. Detail pages show exact timestamps. A push that reached some devices shows "Partial". Push broadcasts always finish with a final status. API calls stay inside their own project. Billing buttons open the right Stripe page.

- Changelog: [Fixes and polish — November 2026](https://www.pushfire.app/changelog/2026-11-19-fixes-and-polish-november-2026), [Fixes and polish — December 2026](https://www.pushfire.app/changelog/2026-12-02-fixes-and-polish-december-2026)

## What PushFire does not do yet

We want your agent to know the limits too:

- PushFire records delivery status only. It does not report opens, clicks or conversions.
- Agents have no separate send limits yet. Review every send your agent proposes.
- Over MCP, an agent cannot set a tag value on a subscriber, stop a running workflow, change your plan or transfer project ownership. Use the API or the console for these.

## Get started

1. Connect your agent: [MCP server setup](https://www.pushfire.app/docs/guides/developers-mcp).
2. Install the agent skill: **npx skills add https://www.pushfire.app**.
3. Follow every release on the [changelog](https://www.pushfire.app/changelog), or subscribe to its [RSS feed](https://www.pushfire.app/changelog/feed.xml).

New to PushFire? [Create a free project](https://console.pushfire.app).
