For agent builders · · 9 min read

How AI agents check a marketing email

An AI agent passes the exact email to Okaytosend before anyone sends it, and gets HOLD with the evidence or CLEAR · draft. The steps, a call and a prompt.

By , Okaytosend team

An AI agent checks a marketing email by passing the exact email to a separate checker before anyone sends it. Okaytosend is that checker. It compares the email's prices, dates, rates and offers with your own pages and files, runs built-in marketing rules, and answers HOLD with each problem quoted, or CLEAR · draft when it finds nothing wrong in a draft.

Okaytosend is not built into your email platform, and it never sends, edits, rewrites, fixes or blocks the email. Your agent sits in the middle. A person or a workflow sends only after the answer, and after a HOLD a person decides.

Why can't an agent just proofread its own email?

It can read the words, but it only knows today's price, end date or terms if something hands them over. It also wrote the email, so it tends to agree with it.

A line in the prompt helps, and you should add one. A prompt still won't open each link to see that the page answers 404, and it won't always do the sums on a was-price and a now-price.

What does an agent need to check before it sends a marketing email?

There are two kinds of problem. The first needs your facts: a rate, price, offer term, end date or name in the email that disagrees with the brand's own pages or files.

The second needs no setup. Okaytosend's built-in rules run on every check and look for these:

  • A merge tag that would reach readers as written, such as {{first_name}} with no fallback
  • A link whose page answers 404 or 410, or whose domain doesn't exist
  • A weekday that doesn't match its date
  • A deadline that had already passed when the check ran
  • An offer with no end date and no terms
  • A was-price, now-price and saving that don't add up
  • A subject or preview text that gives a different date, price or percentage from the body
  • A promotional email with no unsubscribe link
  • On a test send, an image that doesn't load

Okaytosend reports a problem only when it can quote the email and the source or rule. A claim that nothing can settle is listed separately as unverified, and it never causes a HOLD. If someone checks emails by hand, our email marketing checklist covers the same ground in order.

Where does Okaytosend sit when an agent checks an email?

  1. The agent gets the exact email, from the email platform's own connector or API, or from its own draft.
  2. The agent passes that email to Okaytosend, through the MCP connector at mcp.okaytosend.com or with POST https://okaytosend.com/api/v1/checks, and gets back HOLD, CLEAR or CLEAR · draft.
  3. Only then does a person or a workflow send. After a HOLD, a person decides.

You install nothing in the email tool, and Okaytosend has no login to it.

How does an agent call Okaytosend: MCP or API?

Agents that speak MCP, including Claude, Claude Code, Cursor and Codex, connect to the server at https://mcp.okaytosend.com and call its check_email tool. A person signs in through the browser. An agent that runs on its own sends a workspace key as a bearer token instead. If your workspace has more than one project, pass project so the tool knows which one to check. By default check_email returns a summary without rule codes; pass detail set to "full" when the agent needs result.claims and the code for each problem. The setup for each client is in Connect your agent.

A prompt for an agent with the Okaytosend connector

You are preparing the Larkfield spring email. Do not send it.

  1. 1.Get the exact email from the email platform's connector, or use the draft I give you.
  2. 2.Call check_email on Okaytosend with project set to "Larkfield" and the exact subject, preheader, from_name and html. Pass detail set to "full" if you need the rule codes. Never pass a summary.
  3. 3.If the answer is HOLD, stop. List each problem with the words from the email and the words from the source or rule, and wait for me to decide.
  4. 4.If the answer is CLEAR · draft, say so, say it is not a guarantee, and ask me to send a test to the project's check address.
  5. 5.If nothing was checked, say so. Never report that as CLEAR.
  6. 6.A person or my workflow sends the email. You never do.

Your own code can call the API instead. Every workspace gets a key on sign-up, and each key can make 60 requests a minute. Pass the exact email: subject, preheader for the preview text, from_name, and html or text. Images go in image_urls, and the words in them are read. Every field is listed in the API reference.

Here is one call for Larkfield, a fictional plant shop. Replace "Larkfield" with the name of a project in your workspace. The email carries two faults on purpose: a merge tag with no fallback and a weekday that doesn't match the date (12 March 2027 is a Friday).

One check with curl
curl https://okaytosend.com/api/v1/checks \
  -H "Authorization: Bearer $OKAYTOSEND_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "project": "Larkfield",
    "subject": "Larkfield spring sale on rose bushes",
    "preheader": "Until Thursday 12 March 2027",
    "from_name": "Larkfield",
    "html": "<p>Hi {{first_name}}, our spring rose bush sale runs until Thursday 12 March 2027.</p><p><a href=\"https://larkfield.example/unsubscribe\">Unsubscribe</a></p>"
  }'

Okaytosend catches both faults with built-in rules: PLACEHOLDER_LEFT for the merge tag and WRONG_WEEKDAY for the date (it flags the wrong weekday once in the preheader and once in the body). A finished check answers 201 with the check's id, a url for its check page, the verdict, a final flag and result.claims, one entry for each claim it checked. If the check is still running, the API answers 202 and you poll GET /api/v1/checks/{id} after the Retry-After header.

What does the answer look like, and what should the agent do with it?

  • HOLD means at least one problem. Each claim in result.claims has a status, a code, the quote from the email, the expected value when it is known, and the evidence. The agent stops and shows a person both sides.
  • CLEAR · draft means nothing wrong was found in a draft or in text the agent passed. The API returns the verdict CLEAR with final set to false.
  • CLEAR means nothing wrong was found in a real test email sent to the project's check address, and final is true. It is a careful check, never a guarantee.

An error means nothing was checked. The codes free_used, cap_reached and plan_required all say so, and none of them is CLEAR. Treat any answer without a verdict as not checked, and hand it to a person.

The decision in Python
import os
import time
import requests

BASE = "https://okaytosend.com/api/v1/checks"
HEADERS = {"Authorization": "Bearer " + os.environ["OKAYTOSEND_KEY"]}

def check(email):
    try:
        r = requests.post(
            BASE,
            headers=HEADERS,
            json=email,  # project, subject, preheader, from_name, html
            timeout=60,
        )
        if r.status_code == 202:
            check_id = r.json()["id"]
            time.sleep(int(r.headers.get("Retry-After", 2)))
            r = requests.get(f"{BASE}/{check_id}", headers=HEADERS, timeout=60)
        if r.status_code not in (200, 201):
            return "Not checked. A person decides."
        data = r.json()
    except requests.RequestException:
        return "Not checked. A person decides."
    if data["verdict"] == "HOLD":
        return "HOLD. A person decides: " + data["url"]
    if data["final"]:
        return "CLEAR on the real email. A person or workflow may send."
    return "CLEAR · draft. Send a test to the check address before the real send."

What happens after a HOLD?

A person decides which side is wrong. If it is the email, the agent or the person changes it in the email platform. If the source is out of date, someone updates the source. Okaytosend changes neither.

Then check again. Send the corrected email with revises set to the HOLD's ID, and the answer says what changed. Checking the same email again within 24 hours is free, and so is checking again after a fix. Wording someone only proposed never makes the real email CLEAR, and the new answer goes back to a person.

Is CLEAR · draft enough, or do I need a test send?

CLEAR · draft covers the draft your agent passed. Email tools add links, footers and personal details when they send, so the real email can differ.

For the final check, send a real test from your email tool to the project's check address. It runs every rule an agent's check does, on the email as it arrives, and it also finds images that don't load. An agent with the connector can read the result with get_latest_check, which returns the verdict on the latest test sent to that address in the last hour. Neither answer is a guarantee.

What does it cost to check every email an agent drafts?

Free covers 25 checks a month, with an API key on sign-up and no card. Hobby is $19 a month for 100 checks, Pro is $99 for 750 and Scale is $399 for 4,000. The same email again within 24 hours doesn't count. Every plan is on the pricing page.

What doesn't Okaytosend do?

  • It doesn't send, edit, rewrite, fix or block an email. It has no login to your email tool, and you can still send after a HOLD.
  • It isn't built into any email platform. Your agent passes it the email.
  • It doesn't decide what's worth sending. After a HOLD, a person does.
  • It doesn't promise to catch everything. CLEAR means nothing wrong was found, and claims nothing could settle are listed as unverified.
  • CLEAR · draft doesn't cover edits made after the check.
  • It doesn't check whether an email address is real.
  • Checks from an agent or the API don't yet remember a person's decision on a HOLD, so the same wording can be raised again.

How do I try it on one email?

Sign up, copy the key named Default from Connect your AI, and run the curl call above with your own email. Or connect Claude and ask: "Check this email with Okaytosend before I send it."

Okaytosend checks a marketing email before it goes out. You can ask Claude, call the API or send a test. 25 checks a month are free.

Questions and answers

Can an AI agent check its own marketing email?

It can read it, but it only knows the facts it was given, and it wrote the email, so it tends to agree with it. Okaytosend compares each claim with your own pages and files, opens the links, does the calendar and the sums, and quotes both sides of every problem.

Does Okaytosend send, fix or block the email?

No. It reads the email and answers HOLD, CLEAR or CLEAR · draft. It has no login to your email tool, it never edits or rewrites anything, and after a HOLD a person decides what happens.

What is the difference between CLEAR and CLEAR · draft?

CLEAR · draft means nothing wrong was found in a draft or in text your agent passed; the API returns CLEAR with final set to false. CLEAR means nothing wrong was found in a real test email sent to the project's check address. Neither is a guarantee.

Does checking again after a HOLD use another check?

No. Checking the same email again within 24 hours is free, and so is checking again after a fix. Send the corrected email with revises set to the HOLD's ID.

Which agents can call Okaytosend?

Claude, Claude Code, Cursor, Codex and any other MCP client, through the server at https://mcp.okaytosend.com. Your own code can call POST https://okaytosend.com/api/v1/checks with a workspace key.

What happens when the free checks run out?

The answer says plainly that nothing was checked, with the code free_used, so an agent never takes it for CLEAR. Free checks start again on your monthly reset date.

Sources

  1. Okaytosend API reference (request fields, 201 answer, verdict, final, result.claims, revises, 60 requests a minute), read 2 December 2026
  2. Okaytosend, Connect your agent (MCP server URL, Claude, Claude Code, Cursor, Codex, bearer key, check_email, get_latest_check within the last hour), read 2 December 2026
  3. Okaytosend, Rules and verdicts (marketing rules, 404 or 410, HOLD, CLEAR, CLEAR · draft, unverified never holds, 24-hour repeats free), read 2 December 2026
  4. Okaytosend, Errors and limits (free_used, cap_reached, plan_required: nothing was checked, never CLEAR), read 2 December 2026
  5. Okaytosend, Quickstart (key named Default on Connect your AI), read 2 December 2026
  6. Okaytosend pricing (Free 25 checks a month, no card, Hobby $19 for 100, Pro $99 for 750, Scale $399 for 4,000, same email within 24 hours and re-checks after a fix free), read 2 December 2026
  7. Okaytosend help (why CLEAR · draft, email tools add links and footers, test sends find missing images, agent and API checks don't remember decisions yet, you can send after a HOLD), read 2 December 2026
  8. Okaytosend security (no login to the email tool; can't send, change or block an email), read 2 December 2026

Related posts

  1. Guides

    Email marketing checklist before you hit send

    · 7 min read
  2. For agent builders

    Catch inaccurate claims in AI-written emails

    · 7 min read
  3. Guides

    Event marketing email checklist: facts to verify before you send

    · 7 min read

Cookie settings