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/mcpQuickstart (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.
- Connect. MCP server (Streamable HTTP):
https://agentline.nz/mcp. OAuth 2.1 sign-in, orAuthorization: Bearer al_live_…with an API key. - No account yet? Call
signupon the keyless serverhttps://agentline.nz/public/mcp(orPOST https://agentline.nz/api/v1/signup, oragentline signup --owner-email …) with your human's email. You get an API key, an inbox and an MCP config straight away. - Call
get_my_inboxto learn your email address. - Receive a code: give a service your email address, then call
wait_for_code. - 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_…onhttps://agentline.nz/mcpandhttps://agentline.nz/api/v1/*. Create keys in the dashboard, withcreate_api_key, or withagentline keys create. - Keyless:
https://agentline.nz/public/mcpneeds no credentials. It's read-only plussignup, 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.
| Tool | Scope | What it does |
|---|---|---|
get_my_inbox | read | Your inbox(es), plan, allowances and any sending restriction. Call first. |
get_my_number | read | Legacy name for get_my_inbox; returns the same. |
wait_for_code | read | Wait up to 55s for a one-time code to arrive in your inbox; each code returned once. |
send_email | send | Email from your @agentline.nz address (up to 5 recipients). |
list_emails | read | Recent emails, newest first (filter by direction, unread_only, since). |
read_email | read | Full email text by id. Reading never changes read state. |
mark_read | read | Mark emails read (or unread with read=false), up to 100 ids. |
list_api_keys | read | API keys (prefix, name, last used). |
create_api_key | send | New API key; secret shown once. |
revoke_api_key | send | Revoke a key (destructive). |
list_audit_log | read | Recent account events. |
get_billing | read | Plan, status, trial end, allowances. |
get_checkout_link | send | Stripe Checkout link to start a plan, emailed to the owner and returned. |
get_billing_portal_link | send | Stripe Customer Portal link (card, plan, cancel), also emailed to the owner. |
get_profile | read | Which account is connected. |
send_sms | send | Send a text. Coming soon: texting isn't available yet. |
list_messages | read | List texts. Coming soon: texting isn't available yet. |
read_message | read | Read one text. Coming soon: texting isn't available yet. |
list_calls | read | List calls. Coming soon: calls aren't available yet. |
get_voice_settings | read | Call settings. Coming soon: calls aren't available yet. |
update_voice_settings | send | Change call settings. Coming soon: calls aren't available yet. |
start_owner_phone_verification | send | Verify the owner's mobile. Coming soon: texting isn't available yet. |
verify_owner | send | Confirm the owner's mobile with a code. Coming soon: texting isn't available yet. |
Keyless server (/public/mcp): no tool can send anything.
| Tool | What it does |
|---|---|
get_pricing | Plans, prices (NZD), allowances and trial terms. |
get_docs | These docs by topic: quickstart, auth, tools, rest, codes, coming-soon, signup, pricing, human, errors. |
get_install_instructions | Install steps for an MCP client (claude, chatgpt, cursor, vscode, …). |
signup | Create 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.
| Method | Path | Does |
|---|---|---|
| POST | /signup | Agent self-signup (no auth): {owner_email, agent_name?} → api_key, inbox, mcp config, restrictions |
| GET | /me | Account, inboxes, usage, restrictions |
| GET/POST | /emails | List / 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-read | Mark 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 | /keys | List / create API keys {name} |
| DELETE | /keys/{id} | Revoke a key |
| GET | /audit | Audit log |
| GET | /billing | Plan, 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).
401unauthorized ·402subscription_required / quota_exceeded / trial_limit ·403recipient_not_allowed (Free, trial or owner not yet verified: owner only), recipient_opted_out, account_suspended (every call, not just sends)422content_* (marketing, phishing, shortener…) ·429rate_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
- /llms.txt and /llms-full.txt
- /.well-known/mcp/server-card.json (MCP server card, Smithery-compatible)
- /.well-known/oauth-protected-resource/mcp and /.well-known/oauth-authorization-server
- /.well-known/api-catalog (RFC 9727) and /openapi.json
- /demo.md (a recorded session from a test account, with every request and response)
- Markdown for any page: append
.md, or sendAccept: text/markdown.