Skip to content
A2PCheck

A2PCheck for AI agents & coding harnesses

Check an A2P 10DLC campaign draft before a human submits it through their messaging provider. Start with anonymous Basic, or use an authorized API key for credit-backed scans. Public skill files require no repository access.

Guidance only — A2PCheck is independent and not affiliated with Twilio, The Campaign Registry, or any carrier, and we can't guarantee approval.

1. Try one anonymous Basic request

No key is needed for Basic within usage limits. It checks campaign text, does not fetch website or policy pages, and may lock exact fixes. This complete fictional example illustrates the request shape—not an approved campaign or proof that the example URLs exist.

curl --fail-with-body --max-time 75 -sS -X POST https://www.a2pcheck.com/api/agent/validate \
  -H "Content-Type: application/json" \
  -d '{
  "tier": "basic",
  "campaign": {
    "useCaseType": "MARKETING",
    "businessName": "Acme Coffee Co.",
    "campaignDescription": "Acme Coffee Co. sends weekly promotional offers and new-product announcements to customers who opt in at checkout or on our website. Messages link to acme.example.com and always include opt-out instructions.",
    "sampleMessages": [
      "Acme Coffee: 20% off all beans this week. Shop acme.example.com/sale. Msg&data rates may apply. Reply STOP to opt out, HELP for help.",
      "Acme Coffee: New single-origin just dropped. Browse acme.example.com/new. Reply STOP to unsubscribe."
    ],
    "messageFlow": "Customers opt in by checking an unchecked SMS-consent box at checkout on acme.example.com or by texting START to our number. Consent is not a condition of purchase.",
    "privacyPolicyUrl": "https://acme.example.com/privacy",
    "websiteUrl": "https://acme.example.com",
    "termsOfServiceUrl": "https://acme.example.com/terms",
    "optInKeywords": [
      "START"
    ],
    "optOutKeywords": [
      "STOP"
    ],
    "helpKeywords": [
      "HELP"
    ],
    "optInMessage": "Acme Coffee: You'"'"'re subscribed to weekly offers. Reply STOP to opt out, HELP for help. Msg&data rates may apply.",
    "optOutMessage": "Acme Coffee: You'"'"'re unsubscribed and won'"'"'t receive more messages. Reply START to rejoin.",
    "helpMessage": "Acme Coffee: For help, email [email protected]. Reply STOP to opt out.",
    "embeddedLinks": true,
    "embeddedPhoneNumbers": false
  }
}'

Read result.overallTier, result.criticalIssues, and result.fieldResults. The response wraps the report under result; it also includes scanId, reused and creditsSpent.

2. Authorize a credit-backed Full scan

  1. A human signs in, verifies the account, and checks pricing and credits.
  2. Create a self-serve key in the developer dashboard. Save it securely; the complete key is shown once.
  3. Approve the tier, cost, and total budget before using the key. Authenticated Basic costs one credit; Full costs two.

Full checks supplied public URLs. Explicit Full without authentication returns 401 AUTH_REQUIRED—it does not downgrade to Basic. Replace fictional campaign details and URLs with verified real facts before approving a paid request. Supply A2PCHECK_API_KEYfrom your secret manager/environment; never commit or log it. Set A2PCHECK_REQUEST_ID to a unique ID for this exact campaign version/tier (1–128 letters, digits, hyphens or underscores); retain it only for retries of that same request.

: "${A2PCHECK_API_KEY:?Set your API key securely before running a paid scan}"
: "${A2PCHECK_REQUEST_ID:?Set a unique ID for this exact campaign version; retain it only for retries}"
case "$A2PCHECK_REQUEST_ID" in
  *[!A-Za-z0-9_-]*) printf '%s\n' "Request ID must contain only letters, digits, underscores or hyphens." >&2; exit 1 ;;
esac
if [ "${#A2PCHECK_REQUEST_ID}" -gt 128 ]; then
  printf '%s\n' "Request ID must be at most 128 characters." >&2
  exit 1
fi
curl --fail-with-body --max-time 75 -sS -X POST https://www.a2pcheck.com/api/agent/validate \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $A2PCHECK_API_KEY" \
  -d '{
  "tier": "full",
  "campaign": {
    "useCaseType": "MARKETING",
    "businessName": "Acme Coffee Co.",
    "campaignDescription": "Acme Coffee Co. sends weekly promotional offers and new-product announcements to customers who opt in at checkout or on our website. Messages link to acme.example.com and always include opt-out instructions.",
    "sampleMessages": [
      "Acme Coffee: 20% off all beans this week. Shop acme.example.com/sale. Msg&data rates may apply. Reply STOP to opt out, HELP for help.",
      "Acme Coffee: New single-origin just dropped. Browse acme.example.com/new. Reply STOP to unsubscribe."
    ],
    "messageFlow": "Customers opt in by checking an unchecked SMS-consent box at checkout on acme.example.com or by texting START to our number. Consent is not a condition of purchase.",
    "privacyPolicyUrl": "https://acme.example.com/privacy",
    "websiteUrl": "https://acme.example.com",
    "termsOfServiceUrl": "https://acme.example.com/terms",
    "optInKeywords": [
      "START"
    ],
    "optOutKeywords": [
      "STOP"
    ],
    "helpKeywords": [
      "HELP"
    ],
    "optInMessage": "Acme Coffee: You'"'"'re subscribed to weekly offers. Reply STOP to opt out, HELP for help. Msg&data rates may apply.",
    "optOutMessage": "Acme Coffee: You'"'"'re unsubscribed and won'"'"'t receive more messages. Reply START to rejoin.",
    "helpMessage": "Acme Coffee: For help, email [email protected]. Reply STOP to opt out.",
    "embeddedLinks": true,
    "embeddedPhoneNumbers": false
  },
  "idempotencyKey": "'"$A2PCHECK_REQUEST_ID"'"
}'

3. Install the public skill

Download the generic skill and its three references directly from this site. The command refuses to overwrite an existing directory. Review the downloaded instructions before enabling them in your harness.

set -eu
skill_dir="${SKILL_DIR:-$HOME/.agents/skills/a2pcheck}"
if [ -e "$skill_dir" ]; then
  printf '%s\n' "Choose an empty SKILL_DIR; the destination already exists." >&2
  exit 1
fi
mkdir -p "$(dirname "$skill_dir")"
mkdir "$skill_dir"
mkdir "$skill_dir/references"
for file in SKILL.md references/campaign-schema.md references/example-campaign.json references/remediation-workflow.md; do
  curl --fail --max-time 30 -sS -L "https://www.a2pcheck.com/skill/$file" -o "$skill_dir/$file"
done
printf '%s\n' "Downloaded to $skill_dir. Review the files before enabling the skill."

The default destination is a generic/Codex-style skill folder. For Claude Code, set SKILL_DIR="$HOME/.claude/skills/a2pcheck"before the command. For other harnesses, choose their documented skills location. No private repository or registry account is needed. We are not claiming a skills-registry listing, hosted MCP server, or CLI.

4. Keep the human in control

  • Default to one anonymous Basic request. Before an authenticated call, get explicit approval for the tier, credit cost and total budget. Default to one paid request; another paid scan needs renewed approval.
  • Do not chase GREEN with an automatic scan/edit loop. Review proposed edits against actual business facts, present remaining findings, and stop if consent or policy evidence is missing.
  • For authenticated calls, use an idempotencyKey for the exact campaign version/tier. Successful same-key replays within 24 hours spend zero additional credits. Changed input needs a new key and approval. A failed/refunded scan can be billed again on retry.
  • Stop on validation, authentication, insufficient-credit or rate-limit errors. On an ambiguous timeout, retain the same key and confirm status/budget before retrying. Never rotate identities or keys to evade limits or enable automatic curl retries for paid calls.
  • Send campaign metadata and public URLs only—no subscriber records, real phone numbers, secrets, or signed/internal URLs.

These are client instructions, not a new server-enforced spending cap. A2PCheck is independent of Twilio, TCR and carriers. It does not submit campaigns or guarantee approval, and its output is not legal advice.

Machine-readable discovery

Start at /llms.txt, use /llms-full.txt for the complete reference, and load /openapi.json for the API contract. See the generic harness guide or Claude Code guide. These discovery surfaces help agents understand the service; they do not guarantee indexing or recommendations by any AI platform.

Read the public skillAPI docs