Recorded session from a test account, 1 November 2026. Every request and response below is real output from Agentline NZ running locally with test providers: no real phone network, mailbox or payment was used. API keys, link tokens and the code email's message ID are replaced with placeholders such as
al_live_REDACTED. The owner and code sender are example.com addresses, and the agent's inbox, demo-agent-0000@agentline.nz, is a reserved demo address that no account can be given. Local URLs are shown as https://agentline.nz.
Agentline NZ gives an AI agent its own @agentline.nz email inbox, over MCP and a REST API. Texting and phone numbers are coming soon. This page shows one session from start to finish, so you can see what your agent sends and gets back before you sign up.
For the steps in plain words, see How it works. This page is the raw view.
1. The agent connects and signs up
The agent uses the keyless MCP server at https://agentline.nz/public/mcp. It needs no account or key. It can read pricing and docs and call signup, but nothing on it can send an email.
Connect
The agent's MCP client opens the connection. The server says what it's for.
Request
POST https://agentline.nz/public/mcp
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-06-18
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-06-18",
"capabilities": {},
"clientInfo": {
"name": "demo-agent",
"version": "1.0.0"
}
}
}
Response
HTTP/1.1 200 OK
content-type: application/json
{
"result": {
"protocolVersion": "2025-06-18",
"capabilities": {
"tools": {
"listChanged": true
}
},
"serverInfo": {
"name": "agentline-public",
"title": "Agentline (keyless)",
"version": "1.2.1",
"websiteUrl": "https://agentline.nz"
},
"instructions": "This is the keyless Agentline NZ MCP server. It has read-only information plus self-signup, and nothing here can send email for you. Use get_pricing, get_docs and get_install_instructions. To get your own @agentline.nz email inbox, call signup with your human's email, then connect to the authenticated server at /mcp with the returned API key. There you can send and read email, and wait_for_code catches one-time codes sent to your inbox. Then ask your human to open the email from login@agentline.nz and click Confirm. Until they do, your key can only check its own account and can't message anyone. Texting is coming soon, with a waitlist at https://agentline.nz/pricing#texting."
},
"jsonrpc": "2.0",
"id": 1
}
List the tools
Four tools: three read-only ones and signup. The current list, with what each tool does, is on For agents.
Request
POST https://agentline.nz/public/mcp
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-06-18
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/list"
}
Response
HTTP/1.1 200 OK
content-type: application/json
{
"result": {
"tools": [
{
"name": "get_pricing",
"title": "Get Agentline plans and pricing",
"description": "Plans, monthly prices in NZD, allowances and free-trial terms, plus pitchForHuman, a plain summary to pass to the person who'd pay. Information only. Every plan includes an @agentline.nz email inbox.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"destructiveHint": false,
"openWorldHint": false,
"idempotentHint": true
},
"execution": {
"taskSupport": "forbidden"
},
"_meta": {
"securitySchemes": [
{
"type": "noauth"
}
]
},
"securitySchemes": [
{
"type": "noauth"
}
]
},
{
"name": "get_docs",
"title": "Read Agentline docs",
"description": "Agentline documentation as Markdown. Topics: quickstart, auth, tools, rest, codes, coming-soon, signup, pricing, human, errors. Omit topic for all of it.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"topic": {
"type": "string",
"enum": [
"quickstart",
"auth",
"tools",
"rest",
"codes",
"coming-soon",
"signup",
"pricing",
"human",
"errors"
]
}
}
},
"annotations": {
"readOnlyHint": true,
"destructiveHint": false,
"openWorldHint": false,
"idempotentHint": true
},
"execution": {
"taskSupport": "forbidden"
},
"_meta": {
"securitySchemes": [
{
"type": "noauth"
}
]
},
"securitySchemes": [
{
"type": "noauth"
}
]
},
{
"name": "get_install_instructions",
"title": "Get install instructions for an MCP client",
"description": "How to add Agentline to a specific client. Clients: claude, chatgpt, claude-code, cursor, vscode, windsurf, cline, goose, zed, codex, gemini, n8n, generic.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"client": {
"type": "string",
"enum": [
"claude",
"chatgpt",
"claude-code",
"cursor",
"vscode",
"windsurf",
"cline",
"goose",
"zed",
"codex",
"gemini",
"n8n",
"generic"
]
}
},
"required": [
"client"
]
},
"annotations": {
"readOnlyHint": true,
"destructiveHint": false,
"openWorldHint": false,
"idempotentHint": true
},
"execution": {
"taskSupport": "forbidden"
},
"_meta": {
"securitySchemes": [
{
"type": "noauth"
}
]
},
"securitySchemes": [
{
"type": "noauth"
}
]
},
{
"name": "signup",
"title": "Sign up for Agentline (no human step)",
"description": "Create your own Agentline account in one call. No credit card needed. Give your human's email. Returns an API key (shown once) and an MCP config to connect to /mcp straight away; your @agentline.nz inbox is live from day one. With it you can send and read email and wait for one-time codes sent to your inbox. We email your human a verification link. Opening that link gives your key full use of the account. Until then you can only check your account and can't message anyone. Limits: 3 signups per IP per hour, 3 per owner email per day.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"owner_email": {
"type": "string",
"maxLength": 200,
"description": "Your human's own email address. We email them a verification link."
},
"agent_name": {
"description": "A name for you, e.g. \"Aroha's booking assistant\"",
"type": "string",
"maxLength": 60
}
},
"required": [
"owner_email"
]
},
"annotations": {
"readOnlyHint": false,
"destructiveHint": false,
"openWorldHint": true,
"idempotentHint": false
},
"execution": {
"taskSupport": "forbidden"
},
"_meta": {
"securitySchemes": [
{
"type": "noauth"
}
]
},
"securitySchemes": [
{
"type": "noauth"
}
]
}
]
},
"jsonrpc": "2.0",
"id": 2
}
Read the plans
get_pricing returns the plans and pitchForHuman, a plain summary the agent can pass to the person who'd pay. Prices are as recorded; Pricing is always current.
Request
POST https://agentline.nz/public/mcp
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-06-18
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "get_pricing",
"arguments": {}
}
}
Response
HTTP/1.1 200 OK
content-type: application/json
{
"result": {
"content": [
{
"type": "text",
"text": "- **No credit card needed to sign up.** Every account starts on Free: the email inbox, the dashboard and API keys. A card is asked for only when you start Starter or Pro (or their free trial).\n- **Free**: free forever, no card; 1 @agentline.nz email inbox; 100 outbound emails/month; unlimited inbound email; 1 connected agent.\n- **Starter**: NZ$29/month (no GST: Agentline isn't GST-registered); 1 @agentline.nz email inbox; 500 outbound emails/month; unlimited inbound email; 10 connected agents.\n- **Pro**: NZ$79/month (no GST: Agentline isn't GST-registered); 5 @agentline.nz email inboxes; 2000 outbound emails/month; unlimited inbound email; 10 connected agents.\n- **Free trial**: 7 days on Starter and Pro. We ask for a card when you start the 7-day free trial. Nothing is charged until the trial ends. It converts automatically unless cancelled, with a reminder email 2 days before. During the trial: 1 email inbox and 50 outbound emails. One free trial per person. We check this using the email address and the card used to start it, so a new account with the same email address or card won't get another trial.\n- **Free plan and trials** send only to the account owner's verified email.\n- Inbound email is unlimited on every plan. Inboxes are live from day one.\n- **Texting and phone numbers are coming soon.** They aren't part of any plan yet. Join the waitlist on the pricing page (/pricing#texting)."
}
],
"structuredContent": {
"freePlanEnabled": true,
"cardRequiredToSignUp": false,
"plans": [
{
"id": "free",
"name": "Free",
"priceNzdPerMonth": 0,
"gst": "not charged (Agentline isn't GST-registered)",
"inboxes": 1,
"emailsPerMonth": 100,
"agents": 1,
"cardRequired": false
},
{
"id": "starter",
"name": "Starter",
"priceNzdPerMonth": 29,
"gst": "not charged (Agentline isn't GST-registered)",
"inboxes": 1,
"emailsPerMonth": 500,
"agents": 10,
"cardRequired": true
},
{
"id": "pro",
"name": "Pro",
"priceNzdPerMonth": 79,
"gst": "not charged (Agentline isn't GST-registered)",
"inboxes": 5,
"emailsPerMonth": 2000,
"agents": 10,
"cardRequired": true
}
],
"trial": {
"days": 7,
"appliesTo": [
"starter",
"pro"
],
"cardRequired": true,
"inboxes": 1,
"emails": 50,
"reminderDaysBefore": 2,
"onePerPerson": "One free trial per person. We check this using the email address and the card used to start it, so a new account with the same email address or card won't get another trial."
},
"pricingPage": "https://agentline.nz/pricing",
"texting": "Texting, phone numbers and calls are coming soon. Join the waitlist at https://agentline.nz/pricing#texting.",
"pitchForHuman": "I'd like my own email inbox through Agentline, so I can sign up for things on your behalf, receive the one-time codes services email me, and send and read email for you.\n\n- Free: an @agentline.nz email inbox, 100 emails a month, no card.\n- Starter, NZ$29/month: the inbox with 500 outbound emails a month, for up to 10 assistants.\n- Pro, NZ$79/month: 5 inboxes and 2000 outbound emails a month.\n\nStarter and Pro start with a 7-day free trial. It asks for a card when you start it, but cancelling before it ends costs nothing, and Agentline emails you 2 days before it converts. The inbox works from day one. Prices are in NZD with no GST.\n\nTexting and a phone number are coming soon. They aren't available yet, but you can join the waitlist: https://agentline.nz/pricing#texting\n\nUntil you're on a paid plan I can only email your own verified address, and I'll check with you before emailing anyone else.\n\nSign up: https://agentline.nz/signup?plan=starter (pricing: https://agentline.nz/pricing)"
}
},
"jsonrpc": "2.0",
"id": 3
}
Sign up with the owner's email
One call with the human's email. The agent gets an API key (shown once), an inbox and an MCP config. Until the owner confirms, the key can only check its own account. More in How an AI agent can sign itself up.
Request
POST https://agentline.nz/public/mcp
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-06-18
{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "signup",
"arguments": {
"owner_email": "owner@example.com",
"agent_name": "Demo assistant"
}
}
}
Response
HTTP/1.1 200 OK
content-type: application/json
{
"result": {
"content": [
{
"type": "text",
"text": "Account created. API key (shown once): al_live_REDACTED\nInbox: demo-agent-0000@agentline.nz\nMCP: https://agentline.nz/mcp with Authorization: Bearer <apiKey>\nUntil your owner opens the email from login@agentline.nz sent to owner@example.com and clicks Confirm, this key can only check its own account (GET /me, get_profile, get_my_inbox). It can't message anyone, except your owner (up to 5 a day) if they've already signed in at agentline.nz/login. Confirming makes them the owner and gives this key full use of the account. After that, Free and trial accounts send only to the owner's verified email."
}
],
"structuredContent": {
"accountId": "acct_fecehfcsgkikyrsg",
"apiKey": "al_live_REDACTED",
"inbox": "demo-agent-0000@agentline.nz",
"plan": "free",
"agentName": "Demo assistant",
"owner": {
"email": "owner@example.com",
"verified": false
},
"verification": {
"email": "sent",
"expiresAt": "2026-11-07T20:06:11.168Z"
},
"restrictions": "Until your owner opens the email from login@agentline.nz sent to owner@example.com and clicks Confirm, this key can only check its own account (GET /me, get_profile, get_my_inbox). It can't message anyone, except your owner (up to 5 a day) if they've already signed in at agentline.nz/login. Confirming makes them the owner and gives this key full use of the account. After that, Free and trial accounts send only to the owner's verified email.",
"mcp": {
"url": "https://agentline.nz/mcp",
"headers": {
"Authorization": "Bearer al_live_REDACTED"
},
"config": {
"mcpServers": {
"agentline": {
"url": "https://agentline.nz/mcp",
"headers": {
"Authorization": "Bearer al_live_REDACTED"
}
}
}
}
},
"upgrade": "Once your owner has opened the link we emailed them, call POST /api/v1/billing/checkout (or the get_checkout_link tool) to upgrade. The Stripe Checkout link is emailed to owner@example.com. Signing up didn't need a card. Your owner adds a card at that checkout; they start with a 7-day free trial and nothing is charged until it ends.",
"timingsMs": {
"validate": 0,
"rate_limit": 5,
"create_account": 2,
"verify_email": 8,
"total": 15
},
"mcpUrl": "https://agentline.nz/mcp",
"next": "Connect to mcp.url with mcp.headers. Ask your human to open the email from login@agentline.nz and click Confirm, then call get_my_inbox."
}
},
"jsonrpc": "2.0",
"id": 4
}
2. The owner confirms by email
The verification email
The owner gets this email. It names the agent, its inbox and its key, and says what clicking allows.
From: login@agentline.nz
To: owner@example.com
Subject: Your AI agent set up an Agentline account for you
Kia ora,
An AI agent called "Demo assistant" created an Agentline account and named you (owner@example.com) as its owner. Agentline gives AI agents their own email inbox.
Its inbox: demo-agent-0000@agentline.nz
Clicking the link below confirms you're the owner and gives this agent full use of your account. Its API key "Demo assistant", created 1 Nov 2026, 9:06 am (New Zealand time), can then read the inbox, receive one-time codes, send email, and ask you to choose a paid plan. Until you click, the agent can't read anything that arrives. It can't message anyone, except you (up to 5 a day) if you've already signed in at agentline.nz/login.
Confirm and give this agent access:
https://agentline.nz/auth/verify?token=REDACTED_TOKEN
This link works once and expires in 7 days. You can revoke the agent's key any time under API keys at https://agentline.nz/app/keys. If the link expires, sign in at https://agentline.nz/login, ask for a new one, and keep or revoke the key there.
Not you, or didn't expect this? Don't click. Ignore this email and the agent can't message anyone. To report it: https://agentline.nz/report
— Agentline, Aotearoa New Zealand
Open the link
Opening the link only shows a confirm button (an HTML page; the heading and form are shown here). Mail scanners that open every link can't confirm the account.
Request
GET https://agentline.nz/auth/verify?token=REDACTED_TOKEN
Response
HTTP/1.1 200 OK
content-type: text/html; charset=UTF-8
<h1>Confirm your Agentline account</h1>
…
<form method="post" action="/auth/verify" class="form"><input type="hidden" name="token" value="REDACTED_TOKEN"/><button class="btn btn-primary">Confirm and sign in</button></form>
Confirm
The owner presses the button. The account is verified, the agent's key gets full use, and the owner is signed in to the dashboard.
Request
POST https://agentline.nz/auth/verify
Content-Type: application/x-www-form-urlencoded
token=REDACTED_TOKEN
Response
HTTP/1.1 302 Found
location: /app
3. The agent uses its inbox
Now the agent connects to the authenticated MCP server at https://agentline.nz/mcp with its API key.
Check the account
get_my_inbox returns the inbox, plan and allowance. This is a Free account. Sending is limited to the owner.
Request
POST https://agentline.nz/mcp
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-06-18
Authorization: Bearer al_live_REDACTED
{
"jsonrpc": "2.0",
"id": 5,
"method": "tools/call",
"params": {
"name": "get_my_inbox",
"arguments": {}
}
}
Response
HTTP/1.1 200 OK
content-type: application/json
{
"result": {
"content": [
{
"type": "text",
"text": "Plan: free (active)\nEmail: demo-agent-0000@agentline.nz (active)\nTexting and calls are coming soon and aren't available on this account. Email works in the meantime.\nSending is limited to the account owner's verified contacts (owner@example.com)."
}
],
"structuredContent": {
"accountId": "acct_fecehfcsgkikyrsg",
"plan": "free",
"status": "active",
"createdBy": "agent",
"ownerVerified": true,
"sendingRestriction": "Sending is limited to the account owner's verified contacts (owner@example.com).",
"inboxes": [
{
"id": "ibx_9f9bk3kj9xx3r7v1",
"address": "demo-agent-0000@agentline.nz",
"status": "active",
"graceUntil": null
}
],
"texting": "none",
"trial": null,
"usageThisMonth": {
"emailsSent": 0,
"emailsIncluded": 100
}
}
},
"jsonrpc": "2.0",
"id": 5
}
Read the inbox
list_emails shows the inbox. It's a new account, so it's empty.
Request
POST https://agentline.nz/mcp
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-06-18
Authorization: Bearer al_live_REDACTED
{
"jsonrpc": "2.0",
"id": 6,
"method": "tools/call",
"params": {
"name": "list_emails",
"arguments": {
"direction": "in"
}
}
}
Response
HTTP/1.1 200 OK
content-type: application/json
{
"result": {
"content": [
{
"type": "text",
"text": "Inbox is empty."
}
],
"structuredContent": {
"emails": []
}
},
"jsonrpc": "2.0",
"id": 6
}
A code arrives
The agent enters its inbox address on a sign-up form at Example Service, a stand-in sender for this demo, and starts waiting. A few seconds later Example Service emails a code. Locally it's delivered through Agentline NZ's email handler, the same entry point Cloudflare Email Routing uses in production.
From: Example Service <no-reply@example.com>
To: demo-agent-0000@agentline.nz
Subject: Your Example Service sign-in code
Message-ID: <REDACTED_MESSAGE_ID>
Date: Sat, 31 Oct 2026 20:06:15 GMT
Content-Type: text/plain; charset=utf-8
Your Example Service code is 731904. It expires in 10 minutes.
If you didn't ask for this, you can ignore this email.
Wait for the code
wait_for_code was called before the email arrived. It returns as soon as the code lands, and each code is returned once. How it matches codes: How wait_for_code works.
Request
POST https://agentline.nz/mcp
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-06-18
Authorization: Bearer al_live_REDACTED
{
"jsonrpc": "2.0",
"id": 7,
"method": "tools/call",
"params": {
"name": "wait_for_code",
"arguments": {
"channel": "email",
"from_contains": "Example Service",
"timeout_seconds": 30
}
}
}
Response
HTTP/1.1 200 OK
content-type: application/json
{
"result": {
"content": [
{
"type": "text",
"text": "Code 731904 (email from no-reply@example.com at 2026-10-31T20:06:15.430Z)."
}
],
"structuredContent": {
"found": true,
"code": "731904",
"channel": "email",
"messageId": "eml_w4ebqxfvvg9dq8wr",
"from": "no-reply@example.com",
"receivedAt": "2026-10-31T20:06:15.430Z",
"preview": "Your Example Service sign-in code"
}
},
"jsonrpc": "2.0",
"id": 7
}
Tell the owner
The agent emails its owner from its own address.
Request
POST https://agentline.nz/mcp
Content-Type: application/json
Accept: application/json, text/event-stream
MCP-Protocol-Version: 2025-06-18
Authorization: Bearer al_live_REDACTED
{
"jsonrpc": "2.0",
"id": 8,
"method": "tools/call",
"params": {
"name": "send_email",
"arguments": {
"to": "owner@example.com",
"subject": "Signed in to Example Service",
"text": "Kia ora,\n\nI've signed in to Example Service with my inbox demo-agent-0000@agentline.nz. The code arrived in my inbox and I used it to finish signing in.\n\nDemo assistant"
}
}
}
Response
HTTP/1.1 200 OK
content-type: application/json
{
"result": {
"content": [
{
"type": "text",
"text": "Email sent to owner@example.com (id eml_7a9dfwwzzkh3meaq)."
}
],
"structuredContent": {
"email": {
"id": "eml_7a9dfwwzzkh3meaq",
"direction": "out",
"from": "demo-agent-0000@agentline.nz",
"to": "owner@example.com",
"subject": "Signed in to Example Service",
"snippet": "Kia ora,\n\nI've signed in to Example Service with my inbox demo-agent-0000@agentline.nz. The code arrived in my inbox and I used it to finish signing in.\n\nDemo assistant",
"code": null,
"status": "sent",
"read": false,
"hasAttachments": false,
"createdAt": "2026-10-31T20:06:16.470Z"
}
}
},
"jsonrpc": "2.0",
"id": 8
}
What the owner gets
The owner's copy, with the footer Agentline NZ adds to every email an agent sends.
From: demo-agent-0000@agentline.nz
To: owner@example.com
Subject: Signed in to Example Service
Kia ora,
I've signed in to Example Service with my inbox demo-agent-0000@agentline.nz. The code arrived in my inbox and I used it to finish signing in.
Demo assistant
--
Sent by an AI agent using Agentline (https://agentline.nz). Report abuse: https://agentline.nz/report
What this account can and can't do
- Until you're on a paid plan, your agent can only email your own verified email address. Paid plans can email anyone who's agreed to hear from them, within the acceptable use rules.
- The inbox is live from day one.
- Texting and phone numbers are coming soon. Join the waitlist.
Try it yourself
Add the keyless server to any MCP client that supports Streamable HTTP, then ask your agent to sign up with your email:
{
"mcpServers": {
"agentline-public": {
"type": "http",
"url": "https://agentline.nz/public/mcp"
}
}
}
- Per-client setup: Install
- Plans and the free trial: Pricing
- Sign up yourself instead: Create an account
- Everything an agent needs, in one place: For agents