Skip to content
1Confirmed Developers
Dashboard
Documentation AI assistants

Use 1confirmed from your AI assistant

Connect an AI assistant such as Claude, ChatGPT, OpenAI Codex, Cursor or VS Code to your 1confirmed account. Then ask in your own words: check your balance, prepare and send WhatsApp messages and SMS, follow deliveries and more. Your assistant always shows you what it will send and what it will cost before anything goes out.

What you can ask

Type requests like these, in any language your assistant speaks:

  • What is my credit balance, and how many credits did I spend this month?
  • Send the "order ready" message to +212 6 12 34 56 78 for my customer Sara.
  • Send the appointment reminder to these 20 customers tomorrow at 9:00.
  • How did yesterday's campaign do? Show me how many were delivered and read.
  • Cancel the broadcast that is scheduled for tomorrow.
  • Did +212 6 12 34 56 78 ask to stop receiving our messages?
  • Send an SMS to +212 6 12 34 56 78 saying their order is ready.
  • Which of these phone numbers are not valid?

Before you start

Sign in with a 1Confirmed account that has API access. Customers need a verified phone number.

In the portal, open Developer tools, then AI assistants, and create a key. Copy it straight away: it is shown only once.

Choose what the key may do. A new key can only read. Tick "Allow sending" if the assistant may also send messages, and set how many people it may reach per day and per broadcast.

Connect your assistant with the key, as shown below.

Open AI assistants in the portal

Connect your assistant

Every assistant needs the same two things: the server address below, and your key sent as "Authorization: Bearer" followed by the key. Replace YOUR_AI_ASSISTANT_KEY in the examples with your own key.

Server address
https://1confirmed.com/mcp

Treat the key like a password: do not share it, and do not commit a file that contains it.

Claude Code

Anthropic's assistant in your terminal.

  1. Open a terminal (not a Claude Code chat).
  2. Run the command below, with your key in place of YOUR_AI_ASSISTANT_KEY. "--scope user" makes it work in every folder.
  3. Start a new Claude Code session: servers are read when a session starts.
Terminal
claude mcp add --transport http --scope user 1confirmed https://1confirmed.com/mcp --header "Authorization: Bearer YOUR_AI_ASSISTANT_KEY"

Check that it works: Run "claude mcp list": 1confirmed shows "Connected". Inside Claude Code, type /mcp to see its tools.

Claude Desktop

The Claude app for Mac and Windows. It reaches 1confirmed through mcp-remote, a small free connector that needs Node.js.

  1. Install Node.js (the current LTS version, 22 or newer) from nodejs.org.
  2. In Claude Desktop, open Settings, then Developer, then Edit Config (in the newer layout: Settings, Desktop app, then Manage next to Extensions). This opens claude_desktop_config.json.
  3. Paste the text below (keep any servers already in the file), save, then quit Claude Desktop completely and reopen it.
claude_desktop_config.json
{
    "mcpServers": {
        "1confirmed": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-remote",
                "https://1confirmed.com/mcp",
                "--header",
                "Authorization:${AUTH_HEADER}"
            ],
            "env": {
                "AUTH_HEADER": "Bearer YOUR_AI_ASSISTANT_KEY"
            }
        }
    }
}

Check that it works: Settings, then Developer, lists 1confirmed as running. In a chat, the + button, then Connectors, shows it with its tools.

If your organization's "Add custom connector" dialog has a "Request headers" section, you can instead add the server address there: choose "No sign-in", and add the header authorization with the value Bearer followed by your key.

Cursor

The AI code editor. It connects directly: nothing else to install.

  1. Open the file mcp.json in the .cursor folder of your home folder (on Windows: %USERPROFILE%\.cursor\mcp.json). Create it if it is not there.
  2. Paste the text below. If the file already lists servers, add the 1confirmed entry inside the existing "mcpServers" instead.
  3. Save, then quit Cursor completely and reopen it.
~/.cursor/mcp.json
{
    "mcpServers": {
        "1confirmed": {
            "url": "https://1confirmed.com/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_AI_ASSISTANT_KEY"
            }
        }
    }
}

Check that it works: Open Customize, then MCPs: 1confirmed is switched on and shows its tools.

VS Code

Visual Studio Code with GitHub Copilot. Use version 1.143 or newer, where Copilot chats read the file below.

  1. Update VS Code to its latest version.
  2. Open the file mcp-config.json in the .copilot folder of your home folder (on Windows: %USERPROFILE%\.copilot\mcp-config.json). Create it if it is not there.
  3. Paste the text below. If the file already lists servers, add the 1confirmed entry inside the existing "mcpServers" instead.
  4. Save, then quit VS Code completely and reopen it.
~/.copilot/mcp-config.json
{
    "mcpServers": {
        "1confirmed": {
            "type": "http",
            "url": "https://1confirmed.com/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_AI_ASSISTANT_KEY"
            },
            "tools": [
                "*"
            ]
        }
    }
}

Check that it works: In a Copilot chat, type /mcp show 1confirmed: it is running and lists its tools.

ChatGPT

On chatgpt.com and in the phone apps, ChatGPT connects to MCP servers only through an OAuth sign-in, so it cannot use a 1confirmed key yet. The ChatGPT desktop app can: it shares its MCP settings with OpenAI Codex.

  1. Install the ChatGPT desktop app.
  2. Follow the OpenAI Codex steps below: the desktop app's Settings, then MCP servers, use the same settings file. Then quit the app completely and reopen it.
  3. On a Business, Enterprise or Edu workspace, an admin must first allow members to use Codex locally.

Check that it works: Settings, then MCP servers, lists oneconfirmed. Type /mcp in the message box: it shows as connected.

A server set up this way works in the tasks the desktop app runs on your computer, not in chats on chatgpt.com.

OpenAI Codex

OpenAI's agent, in your terminal, in your code editor and in the ChatGPT desktop app. All three read the same settings file.

  1. Open the file config.toml in the .codex folder of your home folder (on Windows: %USERPROFILE%\.codex\config.toml). Create it if it is not there.
  2. Paste the text below at the end of the file, with your key in place of YOUR_AI_ASSISTANT_KEY, and save.
  3. Start a new Codex session, or restart the editor extension or the ChatGPT desktop app.
~/.codex/config.toml
[mcp_servers.oneconfirmed]
url = "https://1confirmed.com/mcp"
http_headers = { "Authorization" = "Bearer YOUR_AI_ASSISTANT_KEY" }

Check that it works: Inside Codex, type /mcp: oneconfirmed shows as connected, with its tools. "codex mcp list" only shows the settings, not whether the key works.

If Codex says the server is "not logged in", the key is wrong or revoked: check it, or create a new one. On a Business, Enterprise or Edu workspace, an admin must allow members to use Codex locally.

OpenAI API (GPT models)

For developers building their own app on GPT models: the Responses API connects to 1confirmed from OpenAI's servers, with your key.

  1. Each request carries two keys: your OpenAI API key in its own Authorization header, and your 1confirmed key in the headers of the 1confirmed tool. OpenAI does not keep the 1confirmed key, so send it with every request, approval replies included.
  2. Keep "require_approval" on "always": the first answer then holds approval requests instead of results, and your app answers each one with an mcp_approval_response. Approve a send only after a person has read its preview.
  3. If your OpenAI organization allows remote MCP servers only in some projects, use an API key from one of them.
curl
curl https://api.openai.com/v1/responses \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "model": "gpt-6.2-sol",
      "tools": [
          {
              "type": "mcp",
              "server_label": "oneconfirmed",
              "server_url": "https://1confirmed.com/mcp",
              "headers": {
                  "Authorization": "Bearer YOUR_AI_ASSISTANT_KEY"
              },
              "require_approval": "always"
          }
      ],
      "input": "What is my 1confirmed credit balance?"
  }'

Check that it works: The answer's output holds an mcp_list_tools item for oneconfirmed that lists the tools, with no error.

With the OpenAI Agents SDK, MCPServerStreamableHttp takes the same Authorization header in params["headers"], and connects from your own computer instead of OpenAI's servers.

Another app? Any assistant that connects to MCP servers over HTTP and lets you add an "Authorization" header works the same way.

How sending works

  • For WhatsApp, choose a single message or broadcast, the language, a template available for sending, and the sending number.
  • Fill recipient values, such as names, for each person. Fill global values, such as an address shared by everyone, once.
  • Your assistant shows the text, recipients, sender, cost and remaining balance before confirmation. A scheduled preview also shows the date, time and time zone.
  • Only when you agree does your assistant confirm the send. A preview expires after 10 minutes; after that, ask for a new one.
  • Confirming the same preview twice never sends twice.
  • Once WhatsApp or the SMS gateway accepts a message, it is charged, even if it is later not delivered.
  • Numbers that asked not to receive your WhatsApp messages are removed from the send automatically. SMS does not check them.
  • Only approved WhatsApp templates can be sent. Templates with a file, carousels, booking and form templates are sent from the portal.
  • Send a WhatsApp message now or schedule it once at least 30 minutes ahead. Cancelling a scheduled send returns the credits for messages that are still unsent.
  • Limits per key: 200 people per day and 100 per broadcast by default (you can change them), 60 requests and 10 sends a minute. Large campaigns belong in the portal.

What your assistant can do

Your assistant picks these by itself when you ask. Keys that can only read do not get the ones that send or change anything.

get_account
Your account, credit balance, whether SMS is available, and what this key may do.
list_languages
The languages your WhatsApp templates are written in.
list_templates
WhatsApp template previews by language and send type, with the option to show only templates available for assistant sending.
get_template
One template’s text, buttons, recipient and global variables, and price.
list_sender_numbers
Your WhatsApp numbers that can send a template.
list_sms_senders
The SMS sender names you may use, and the price of one SMS.
check_recipients
Checks phone numbers before a send, and which ones asked not to receive your messages.
list_recent_sends
Your recent WhatsApp sends with how many were sent, delivered and read.
get_send_status
The delivery of one send, person by person.
list_sms
Your sent SMS.
get_sms_status
The status of one SMS.
list_opt_outs
The people who asked not to receive your WhatsApp messages.
get_usage
Where your credits went over a period: spent, added, refunded and expired.
prepare_whatsapp_message
Prepares one WhatsApp message and shows you the preview and the cost.
prepare_sms
Prepares one SMS and shows you the preview and the cost.
prepare_broadcast
Prepares one WhatsApp template for several people and shows you the preview and the cost.
confirm_send · sends messages
Sends exactly what was previewed, once, after you agree.
cancel_scheduled_send · changes your account
Cancels a send scheduled for later and returns the credits of messages not sent.

Ready-made requests

Some assistants also offer these as ready-made commands. In Claude Code, type / and look for 1confirmed.

send_whatsapp_message
Walks you through sending one WhatsApp message safely, step by step.
delivery_report
A delivery report of your recent sends, or of one send.
credit_review
Your balance and where your credits went over the last days.

If something goes wrong

When something cannot be done, your assistant receives a code and a sentence, and tells you. The most common ones:

CodeWhat it meansWhat to do
insufficient_creditsYour balance is too low for this send.Add credits in the portal, then ask again.
daily_limit_reachedThis key has reached the number of people it may reach today.Wait until tomorrow, or raise the limit in Developer tools.
too_many_recipientsMore people than this key may reach in one broadcast.Split the list, raise the limit, or send it from the portal.
read_only_keyThis key may only read.Tick "Allow sending" for the key in Developer tools.
recipient_opted_outThis person asked not to receive these messages.Do not send to them.
invalid_phoneThe number is not in international format.Write it with the country code, for example +212612345678.
confirmation_expiredThe preview is more than 10 minutes old.Ask your assistant to prepare the send again.
send_in_progressThe send is still being handled.Wait a moment, then ask your assistant to confirm again: it never sends twice.
outcome_unknownThe send may have gone out, but its answer did not come back.Do not send it again. Ask for its status instead.
sms_requires_purchaseSMS opens once your account has bought credits.Buy credits in the portal.
template_not_sendableThis template needs a file, a carousel, a calendar or a form.Send it from the portal.
rate_limitedToo many requests in a short time.Wait a minute and try again.

If your assistant cannot connect

CodeWhat it meansWhat to do
401The key is missing, wrong, expired or revoked.Check the Authorization header, or create a new key.
403 ai_assistant_not_enabledThe account cannot use the API.Check your API access and verify your phone number in the portal.
403 ai_assistant_key_requiredThis is an API token, not an AI assistant key.Create a key under Developer tools, then AI assistants.

Keep your account safe

  • Your key is shown once and never stored in a form anyone can read back. If you lose it, revoke it and create a new one.
  • A new key can only read. Allow sending only for an assistant you trust.
  • The key reads your account’s broadcasts, recipient details, SMS history and credit activity. Private templates and sender names require access on your account, and access is checked again when you confirm.
  • Each key has its own limits and can be revoked at any time. Developer tools shows when each key was last used.
  • "Sent by assistants" in Developer tools lists every send an assistant made.
  • An AI assistant key works only for the assistant connection, never for the REST API.
  • Your assistant never sees your inbox conversations.
  • AI assistants can make mistakes. Always read the preview before you agree to a send.

Questions

Which AI apps can I use?

Claude Code, Claude Desktop, Cursor, VS Code, OpenAI Codex, the ChatGPT desktop app and the OpenAI API, as shown above, and any other app that connects to MCP servers over HTTP with an Authorization header.

Does it cost anything extra?

No. Messages are charged exactly as when you send them from the portal or the API. Reading your account is free.

Can my assistant send without asking me?

Sending always takes a preview first, and assistant apps ask you before the final step. To be sure, keep "Allow sending" off for that key: it can then only read.

Can I use it on chatgpt.com or claude.ai?

Not on those websites yet: they connect to servers through an OAuth sign-in, which 1confirmed does not offer yet. The ChatGPT desktop app, Claude Desktop, OpenAI Codex and the OpenAI API work today.