Docs

Connect your agent

Use Agentline from ChatGPT or Claude with MCP, or from your own code with the REST API.

Quickstart

  1. Create an account on the Free plan (inbox only, no card), or start a 7-day free trial of Starter or Pro (card required). Your email inbox is live from day one.
  2. Connect ChatGPT, Claude or another MCP client using the URL below (one-click installs for 13 clients), or create an API key under Dashboard → API keys.
  3. Ask your agent: "What's your Agentline email address?" and then "Sign up for … and wait for the code."

MCP server URL (Streamable HTTP):

https://agentline.nz/mcp

Claude connector

  1. In Claude (web or desktop) open Customize → Connectors → + Add → Custom → Web (or use the Add to Claude link, which pre-fills it).
  2. Name it Agentline and paste https://agentline.nz/mcp as the URL. Leave the OAuth client fields empty.
  3. Click Connect. Sign in to Agentline with your email link and approve access.
  4. In a chat, enable the Agentline tools from the tools menu. On Team and Enterprise plans an owner adds the connector for the organisation first.

Claude Code: claude mcp add --transport http agentline https://agentline.nz/mcp, then run /mcp to sign in.

ChatGPT

  1. In ChatGPT go to Plugins, select the + button, then Add custom MCP server.
  2. Name it Agentline. Under Connection, enter https://agentline.nz/mcp and choose OAuth for authentication.
  3. Review the risk warning, select I understand and want to continue, then Create as a plugin.
  4. Sign in to Agentline (or create an account) and approve access. In a chat, type @ and pick Agentline.

ChatGPT asks you to confirm before Agentline sends anything, because the send tools are marked as write actions. Emails appear as compact cards in the conversation. One-time codes are always hidden in ChatGPT (a message that looks like it contains one shows only its sender and time), so read them in your Agentline dashboard; Claude, Cursor and API-key agents get them through wait_for_code.

MCP tools

ToolWhat it doesScope
get_my_inboxYour inbox(es), plan, allowances and any sending restriction. Call first.read
get_my_numberLegacy name for get_my_inbox; returns the same.read
wait_for_codeWait up to 55s for a one-time code to arrive in your inbox; each code returned once.read
send_emailEmail from your @agentline.nz address (up to 5 recipients).send
list_emailsRecent emails, newest first (filter by direction, unread_only, since).read
read_emailFull email text by id. Reading never changes read state.read
mark_readMark emails read (or unread with read=false), up to 100 ids.read
list_api_keysAPI keys (prefix, name, last used).read
create_api_keyNew API key; secret shown once.send
revoke_api_keyRevoke a key (destructive).send
list_audit_logRecent account events.read
get_billingPlan, status, trial end, allowances.read
get_checkout_linkStripe Checkout link to start a plan, emailed to the owner and returned.send
get_billing_portal_linkStripe Customer Portal link (card, plan, cancel), also emailed to the owner.send
get_profileWhich account is connected.read
send_smsSend a text. Coming soon: texting isn't available yet.send
list_messagesList texts. Coming soon: texting isn't available yet.read
read_messageRead one text. Coming soon: texting isn't available yet.read
list_callsList calls. Coming soon: calls aren't available yet.read
get_voice_settingsCall settings. Coming soon: calls aren't available yet.read
update_voice_settingsChange call settings. Coming soon: calls aren't available yet.send
start_owner_phone_verificationVerify the owner's mobile. Coming soon: texting isn't available yet.send
verify_ownerConfirm the owner's mobile with a code. Coming soon: texting isn't available yet.send

Your own agents can use the same MCP endpoint with an API key: send Authorization: Bearer al_live_….

REST API

Base URL https://agentline.nz/api/v1. Authenticate with Authorization: Bearer al_live_…. Requests and responses are JSON. An OpenAPI description is at /api/v1/openapi.json.

MethodPathDescription
GET/api/v1/meYour plan, inboxes and monthly usage
GET/api/v1/emailsList emails (query: direction, unread_only, since_seconds, limit)
POST/api/v1/emailsSend an email: { to, subject, text, html?, from?, reply_to_id? }
GET/api/v1/emails/{id}Read one email (doesn't change read state)
POST/api/v1/mark-readMark emails read, or unread: { ids, read? }
GET/api/v1/emails/{id}/rawDownload the original .eml
POST/api/v1/wait-for-codeWait for a one-time code: { channel?, timeout_seconds?, from_contains?, since_seconds? }
POST/api/v1/signupAgent self-signup, no auth: { owner_email, agent_name? } → api_key, inbox, mcp config
GET/api/v1/keysList API keys
POST/api/v1/keysCreate an API key (shown once): { name }
DELETE/api/v1/keys/{id}Revoke an API key
GET/api/v1/auditRecent account events
GET/api/v1/billingPlan, status, trial and allowances
POST/api/v1/billing/checkoutEmail the owner a Stripe Checkout link (also returned): { plan }
POST/api/v1/billing/portalStripe Customer Portal link, 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.

curl https://agentline.nz/api/v1/emails \
  -H "Authorization: Bearer $AGENTLINE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to":"you@example.nz","subject":"Booking confirmed","text":"Kia ora! Your table for 2 at 7pm is confirmed."}'

One-time codes

Every inbound email is scanned for a one-time code. wait_for_code returns the newest code that hasn't already been handed out, waiting if needed. Use from_contains to match a sender (for example "Google" or "noreply@github.com") when several codes may arrive at once.

curl -X POST https://agentline.nz/api/v1/wait-for-code \
  -H "Authorization: Bearer $AGENTLINE_KEY" -H "Content-Type: application/json" \
  -d '{"channel":"any","timeout_seconds":45}'
# → {"found":true,"code":"482913","channel":"email","from":"noreply@github.com","receivedAt":"…"}

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. Join the waitlist and we'll tell you when it's ready.

Errors and limits

Errors return {"error":{"code":"…","message":"…"}} with an HTTP status:

  • 401 missing or invalid API key · 402 subscription or allowance needed · 403 opted-out recipient or suspended account
  • 422 content blocked by a safety check, including content_marketing for promotional messages (the message explains why) · 429 rate limited (see Retry-After)

Limits per account: 120 API requests a minute per key; 10 emails a minute and 200 a day. Monthly plan allowances apply on top.

API-key responses carry RateLimit-Limit (requests allowed in the window), RateLimit-Remaining (requests left in it) and RateLimit-Reset (seconds until it resets). Every 429 sends Retry-After. A 429 from one of Agentline's own limits also sends the RateLimit headers for the limit you reached.