For agents

Agentline, described for agents

Everything an agent needs to connect, sign itself up and use its own @agentline.nz inbox. The same content is at /agents.md, /llms.txt and /llms-full.txt.

To see a whole session first, read the recorded demo: real requests and responses from signup to a code in the inbox.

https://agentline.nz/mcp

Quickstart (for agents)

Agentline gives an AI agent its own @agentline.nz email inbox, through MCP, a REST API and a CLI. It can send and read email and wait for one-time codes. Texting and phone numbers are coming soon.

  1. Connect. MCP server (Streamable HTTP): https://agentline.nz/mcp. OAuth 2.1 sign-in, or Authorization: Bearer al_live_… with an API key.
  2. No account yet? Call signup on the keyless server https://agentline.nz/public/mcp (or POST https://agentline.nz/api/v1/signup, or agentline signup --owner-email …) with your human's email. You get an API key, an inbox and an MCP config straight away.
  3. Call get_my_inbox to learn your email address.
  4. Receive a code: give a service your email address, then call wait_for_code.
  5. Send: send_email. Confirm recipients and wording with your user first.

Until your human verifies (the link we email them) and keeps your API key, you can send only to their email, 5 messages a day. A paid plan needs them to add a card.

To see every request and response of a session first, from signup to a code in the inbox, read the recorded demo: https://agentline.nz/demo.md.

Authentication

  • OAuth 2.1 + PKCE (for ChatGPT, Claude, Cursor, VS Code…): discovery starts from the 401's WWW-Authenticate: Bearer resource_metadata="https://agentline.nz/.well-known/oauth-protected-resource/mcp". Client ID Metadata Documents and Dynamic Client Registration (https://agentline.nz/oauth/register) are supported. Scopes: messages:read (required), messages:send, offline_access.
  • API key: Authorization: Bearer al_live_… on https://agentline.nz/mcp and https://agentline.nz/api/v1/*. Create keys in the dashboard, with create_api_key, or with agentline keys create.
  • Keyless: https://agentline.nz/public/mcp needs no credentials. It's read-only plus signup, can't send anything for you, and is rate limited (60 requests/minute per IP).

MCP tools

Authenticated server (/mcp). Every tool carries readOnlyHint/destructiveHint/openWorldHint annotations.

ToolScopeWhat it does
get_my_inboxreadYour inbox(es), plan, allowances and any sending restriction. Call first.
get_my_numberreadLegacy name for get_my_inbox; returns the same.
wait_for_codereadWait up to 55s for a one-time code to arrive in your inbox; each code returned once.
send_emailsendEmail from your @agentline.nz address (up to 5 recipients).
list_emailsreadRecent emails, newest first (filter by direction, unread_only, since).
read_emailreadFull email text by id. Reading never changes read state.
mark_readreadMark emails read (or unread with read=false), up to 100 ids.
list_api_keysreadAPI keys (prefix, name, last used).
create_api_keysendNew API key; secret shown once.
revoke_api_keysendRevoke a key (destructive).
list_audit_logreadRecent account events.
get_billingreadPlan, status, trial end, allowances.
get_checkout_linksendStripe Checkout link to start a plan, emailed to the owner and returned.
get_billing_portal_linksendStripe Customer Portal link (card, plan, cancel), also emailed to the owner.
get_profilereadWhich account is connected.
send_smssendSend a text. Coming soon: texting isn't available yet.
list_messagesreadList texts. Coming soon: texting isn't available yet.
read_messagereadRead one text. Coming soon: texting isn't available yet.
list_callsreadList calls. Coming soon: calls aren't available yet.
get_voice_settingsreadCall settings. Coming soon: calls aren't available yet.
update_voice_settingssendChange call settings. Coming soon: calls aren't available yet.
start_owner_phone_verificationsendVerify the owner's mobile. Coming soon: texting isn't available yet.
verify_ownersendConfirm the owner's mobile with a code. Coming soon: texting isn't available yet.

Keyless server (/public/mcp): no tool can send anything.

ToolWhat it does
get_pricingPlans, prices (NZD), allowances and trial terms.
get_docsThese docs by topic: quickstart, auth, tools, rest, codes, coming-soon, signup, pricing, human, errors.
get_install_instructionsInstall steps for an MCP client (claude, chatgpt, cursor, vscode, …).
signupCreate your own account in one call with your human's email: returns an API key, inbox and MCP config. Emails your human a verification link.

REST API

Base https://agentline.nz/api/v1, JSON, Authorization: Bearer al_live_…. OpenAPI: https://agentline.nz/openapi.json.

MethodPathDoes
POST/signupAgent self-signup (no auth): {owner_email, agent_name?} → api_key, inbox, mcp config, restrictions
GET/meAccount, inboxes, usage, restrictions
GET/POST/emailsList / send email {to, subject, text, html?, from?, reply_to_id?}
GET/emails/{id}One email (doesn't change read state); /raw for the .eml
POST/mark-readMark emails read or unread {ids, read?}; GET /emails takes unread_only=true
POST/wait-for-code{channel?, timeout_seconds?, from_contains?, since_seconds?}
GET/POST/keysList / create API keys {name}
DELETE/keys/{id}Revoke a key
GET/auditAudit log
GET/billingPlan, status, trial, allowances
POST/billing/checkout{plan: "starter"|"pro"} → emails the owner a Stripe Checkout link; returns {url, sent_to}
POST/billing/portal→ Stripe Customer Portal URL, also emailed to the owner

Texting, calls and owner mobile checks are coming soon. Their endpoints (/sms, /calls, /voice, /owner/phone, /owner/verify) appear in the OpenAPI description but aren't available yet.

CLI: AGENTLINE_API_KEY=al_live_… node cli/agentline.mjs help wraps every endpoint.

One-time codes

Every inbound email is scanned for a one-time code. wait_for_code returns the newest code that hasn't been handed out yet, waiting up to 55 seconds. Use from_contains (e.g. "Google" or "noreply@github.com") when several may arrive. Typical flow: submit the form with your @agentline.nz address, then call wait_for_code, then enter the code.

Texting (coming soon)

Texting and phone numbers are coming soon and aren't available yet. When texting launches, it will be for transactional and assistant messages only (replies, bookings, reminders people asked for, codes), never marketing or bulk. Your human can join the waitlist: https://agentline.nz/pricing#texting.

Agent self-signup

One call, no human step: signup (keyless MCP), POST https://agentline.nz/api/v1/signup or agentline signup with {"owner_email": "…", "agent_name": "…"} (only owner_email is required) creates a Free account and returns an API key, an inbox address (receives mail immediately) and an MCP config you can use straight away.

We email your human a verification link. The email names your API key and when it was made, and opening the link gives that key full use of the account straight away. Until then your key can only check its own account (get_profile, get_my_inbox, GET /api/v1/me) and can't message anyone. Every other tool and endpoint returns key_not_confirmed. After that, Free and trial accounts send only to the owner's verified email; paid plans can email anyone who's agreed to hear from them. To upgrade, get_checkout_link emails your human a Stripe Checkout link.

Limits: 3 signups per IP per hour and 3 per owner email per day. An email that already owns an account can't be used again.

Pricing

  • 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).
  • Free: free forever, no card; 1 @agentline.nz email inbox; 100 outbound emails/month; unlimited inbound email; 1 connected agent.
  • 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.
  • 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.
  • 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.
  • Free plan and trials send only to the account owner's verified email.
  • Inbound email is unlimited on every plan. Inboxes are live from day one.
  • Texting and phone numbers are coming soon. They aren't part of any plan yet. Join the waitlist on the pricing page (/pricing#texting).

Pricing page: https://agentline.nz/pricing

Telling your human

A person has to approve a paid plan. If yours asks what Agentline is or costs, you can pass this on as written (get_pricing returns it too as 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.

>

- Free: an @agentline.nz email inbox, 100 emails a month, no card. - Starter, NZ$29/month: the inbox with 500 outbound emails a month, for up to 10 assistants. - Pro, NZ$79/month: 5 inboxes and 2000 outbound emails a month.

>

Starter 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.

>

Texting and a phone number are coming soon. They aren't available yet, but you can join the waitlist: https://agentline.nz/pricing#texting

>

Until you're on a paid plan I can only email your own verified address, and I'll check with you before emailing anyone else.

>

Sign up: https://agentline.nz/signup?plan=starter (pricing: https://agentline.nz/pricing)

Errors

Errors are {"error":{"code","message"}} (REST) or isError results with code: message text (MCP).

  • 401 unauthorized · 402 subscription_required / quota_exceeded / trial_limit · 403 recipient_not_allowed (Free, trial or owner not yet verified: owner only), recipient_opted_out, account_suspended (every call, not just sends)
  • 422 content_* (marketing, phishing, shortener…) · 429 rate_limited (see Retry-After)

API-key responses on /api/v1 and /mcp carry RateLimit-Limit (requests allowed in the window: 120 a minute per key), RateLimit-Remaining (requests left in it) and RateLimit-Reset (seconds until it resets). The keyless server sends them per IP. Every 429 sends Retry-After. A 429 from one of Agentline's own limits also sends the RateLimit headers for the limit you reached, with RateLimit-Remaining: 0.

Discovery files