For AI agents
An AI agent that texts for a business can check before it texts: is an opt-out on record for this number, and what is the proof? Every answer carries the rule record (dates, the official link, exact quotes, who must comply, when we last checked it), so the agent can cite it.
The answer is do_not_text (with the dated records) or no_opt_out_on_record. It is never “yes”: StopNoted records opt-outs, not consent. The business must still have consent to text.
The API
Make a key in StopNoted (Settings, API keys) and send it as Authorization: Bearer oog_…. A key
is shown once; only its fingerprint is stored.
May I text this number?
POST https://stopnoted-hubspot.tenhatch.com/api/v1/may-text
{ "phone": "+12025550123" } (or { "contactId": "1401" })
200 { "answer": "do_not_text", "optedOut": true, "meaning": "…",
"proof": [ { "proofId": "…", "kind": "opt-out", "receivedAt": "…", "message": "Stop please",
"decidedBy": "the seven words", "covers": "all", "status": "honored", "honorBy": "…" } ],
"rule": { … } }
Is this reply an opt-out?
POST https://stopnoted-hubspot.tenhatch.com/api/v1/check-reply
{ "text": "please remove me from your list", "direction": "from_contact" }
200 { "optOut": "yes" | "no" | "unclear", "decidedBy": "…", "covers": "all", "reason": "…", "rule": { … } }
The seven words are checked on every plan. Other replies are checked in plain language on Plus (they count toward the month’s 2,000 checks). Nothing you send to check-reply is stored.
The rule record
Free, no key: GET /api/v1/rule.
MCP
The same as MCP tools over HTTP at https://stopnoted-hubspot.tenhatch.com/mcp (JSON-RPC 2.0):
may_i_text, check_reply and opt_out_rule. Send the same API key in the
Authorization header; opt_out_rule needs none.
Inside HubSpot
StopNoted also gives HubSpot’s own AI agents a tool, “Check before texting”, for the contact the agent is working on. HubSpot’s agent tools are in beta; the tool appears where HubSpot lets your agents use app tools.
Errors
- 401: no key, or a deleted one.
- 402: the account’s trial ended and no plan was chosen.
- 403: the HubSpot account is no longer connected.
- 400: a number StopNoted cannot read; send it as +12025550123.