# Sendly — agent brief

## What Sendly is

Sendly is an email platform for product teams: transactional email, campaigns, automated workflows, contacts and lists, sending domains with guided DNS, shared mailboxes, and deliverability monitoring. It is for developers and marketers who want one place for every email their product sends.

## Connect

MCP endpoint: https://app.sendly.now/api/mcp (OAuth). On the consent page every permission group is already ticked; the user unticks what they do not want. Directory listings: https://claude.ai/directory/sendly (Claude) and https://chatgpt.com/plugins/plugin_asdk_app_6aa1f9e289d881919b9e52044c229dec (ChatGPT). Secret API keys work too (https://app.sendly.now).

## What you can do

Everything the Sendly app does is available as a tool. Grouped by the permission each needs:

### Read your data

- `billing_status` — Show this project's plan (free or pay as you go), its subscription state and renewal date, its spending limits, this month's usage, and the user's mobile Pro entitlement (null for an API key).
- `check_domain` — Check the verification status of domains in the active project.
- `compose_mailbox_email` — Write an email for one of this project's hosted mailboxes: draft a new message from a short brief, rewrite a draft you already have (shorten it, change the tone, fix the writing), or suggest subject lines.
- `diagnose_delivery` — Diagnose why mail from one of the project's sending domains is not arriving.
- `export_contacts` — Get a one-time link the user opens to download this project's contacts as CSV.
- `get_activity_count` — Count this project's activity in the last few minutes.
- `get_activity_stats` — Summarise this project's activity by type over a period.
- `get_api_key` — Show one API key on this project: its name, what it may do, when it was last used and whether it is revoked.
- `get_api_usage` — Show this project's API request volume over time.
- `get_audit_log` — Show who changed what in this project, newest first.
- `get_billing_consumption` — Show this billing period's metered usage and the cost so far.
- `get_billing_limits` — Show this project's monthly email caps per stream (workflows, campaigns, transactional, inbound) and how much of each is used.
- `get_campaign` — Get one campaign by id — its content metadata, status, and rollup delivery stats.
- `get_campaign_stats` — Get delivery and engagement stats for one campaign: recipient/sent/delivered/opened/clicked/bounced counts plus the derived open/click/bounce/delivery rates.
- `get_contact` — Get one contact by id, with its custom fields.
- `get_contact_field_usage` — Show which segments, templates and workflows use a custom field.
- `get_contact_topic_preferences` — Everything one contact has said they want, as the send path reads it.
- `get_conversation_contact` — Show the Sendly contact behind a conversation and their recent email and event timeline.
- `get_dmarc_report` — DMARC aggregate reports about your domains: who sends as them and whether it aligns.
- `get_domain` — Show one sending domain: its DNS records, verification state, stream and region.
- `get_domain_connect_status` — Check whether a domain's DNS provider supports one-click setup through DoDomain, and which method it would use.
- `get_domain_logo` — Read a sending domain's sender logo, hosted SVG, BIMI DNS record and live DNS readiness.
- `get_domain_logo_readiness` — Check what each inbox provider still needs before it shows this domain's logo (BIMI record, DMARC policy, certificate).
- `get_domain_warmup` — Show where a new domain is in its warm-up ramp and how much it has sent today.
- `get_email` — Get one email by id — delivery status, engagement counts, the recipient, and its DELIVERY history (queued, sent, delivered, bounced, …) oldest first.
- `get_event_stats` — Count events by name over a period.
- `get_event_usage` — Show which workflows and segments use an event name.
- `get_export_download_link` — Get a one-time link that downloads a READY export in the user's signed-in browser.
- `get_list` — Get one subscriber list by id, with its `member_count` and its double opt-in setting.
- `get_mailbox` — Get one mailbox: its address, whether it is active, its email signature (and whether its owner wants it on new messages and on replies), and the IMAP and SMTP host, port and username for connecting a mail client to it.
- `get_mailbox_attachment_link` — Get a one-time link the person opens to download an attachment from a message.
- `get_mailbox_conversation` — Read one conversation in a hosted mailbox: its newest 50 messages (older ones are counted in `omittedOlderMessages`), oldest first, inbound and outbound, with who sent it, to whom, when, and its text (an HTML-only message is reduced to its visible text; very long messages are cut and marked `truncated`).
- `get_mailbox_project` — Show which of the person's projects a mailbox belongs to.
- `get_notification_prefs` — Show which of Sendly's notification channels the user receives: push on their phones, and the in-app inbox.
- `get_org_inbox_counts` — Unread and open conversation counts per mailbox across an organization.
- `get_org_overview` — Sending volume, delivery rates and inbox load across the organization's projects the person is a member of.
- `get_pro_entitlement` — Show whether the user's mobile Sendly Pro subscription is active, when it renews or expires, and which store sold it.
- `get_profile` — Show the signed-in user's name, email, avatar, billing currency, and whether account deletion is scheduled (with the date it becomes final).
- `get_project` — Get the settings of the project this connection is working in: its name, whether it is disabled, its sending region, link-tracking mode, and its sandbox sender address.
- `get_project_security` — Show this project's sending health and security status, including any suspension.
- `get_project_setup_state` — Show which onboarding steps this project has finished: a verified domain, a first email, contacts.
- `get_referral` — Show the user's Refer & Earn link, its clicks, signups and sales, and what they have earned.
- `get_segment` — Get one segment by id, including its current member_count and condition.
- `get_slack_connection` — Show this project's Slack connection: the workspace, the channel, and which kinds of notice it posts, with every kind it can post.
- `get_snippet` — Show one snippet and its content.
- `get_suppression` — Show whether an address is on this project's suppression list, and why: a bounce, a complaint, or added by hand.
- `get_template` — Get one email template by id, including its full HTML body.
- `get_template_usage` — Show which campaigns and workflows use a template.
- `get_topic` — Show one subscription topic and its subscriber count.
- `get_usage` — Get the active project's email usage against its enforced limits: this month's send count and cap (overall, plus per category — transactional, campaign, workflow, inbound), and today's send count, daily cap, and trust tier.
- `get_validation_run` — How far a `clean_list` run has got and what it found: status, and counts of deliverable, undeliverable and risky addresses.
- `get_webhook` — Show one webhook endpoint: its URL, the events it receives and its status.
- `get_workflow` — Get one workflow's metadata by id — name, trigger type/event, enabled state, reentry and rate-limit settings, and version.
- `get_workflow_execution` — Show one execution: the steps it ran, when, and how it ended.
- `get_workflow_graph` — Get a workflow's whole graph: every step with its config, and the transitions between them.
- `get_workflow_status` — Get one workflow's current state — whether it is enabled, what triggers it, how many steps it has — together with how its runs have gone: the total, and the count now running, waiting, completed, failed and cancelled.
- `list_activity` — List this project's activity feed: sends, opens, bounces, workflow steps and more.
- `list_api_keys` — List the API keys on this project, with what each one is allowed to do and when it was last used.
- `list_api_requests` — List recent API requests made to this project, with their status codes.
- `list_app_passwords` — List the app passwords that let mail clients (IMAP/SMTP) sign in to a mailbox.
- `list_appeals` — List this project's suspension appeals, newest first, with when a response is due.
- `list_brand_logos` — List the verified sending domains of each of the user's projects, with the sender logo uploaded for each.
- `list_campaign_analytics` — Opens, clicks, bounces and unsubscribes per campaign.
- `list_campaign_failures` — List the recipients a campaign failed to reach, with the reason for each.
- `list_campaigns` — List campaigns in the active project, newest first.
- `list_connected_apps` — List the AI apps connected to the user's Sendly account, with the permissions each holds and when it was last used.
- `list_connections` — List what this project is connected to: its Slack workspace and channel, and the domains whose DNS DoDomain manages.
- `list_contact_events` — List the events recorded for one contact, newest first.
- `list_contact_field_values` — List the distinct values stored in a custom field.
- `list_contact_fields` — List the custom contact fields this project uses.
- `list_contacts` — List contacts in the active project, optionally filtered by email or subscription status
- `list_conversion_goals` — List the conversion goals a workflow is measured against.
- `list_deliverability_domains` — Sent, delivered, bounced, complained and opened counts per RECIPIENT domain and day, to spot one provider refusing your mail.
- `list_emails` — List emails sent from the active project, newest first, with delivery status and engagement counts.
- `list_event_names` — List every event name this project has recorded.
- `list_events` — List events recorded for the active project, newest first — both system events (email.*, contact.*, segment.*.entry, …) and custom events recorded via record_event.
- `list_exports` — List the user's recent data exports with their status (PENDING, RUNNING, READY, FAILED, EXPIRED) and expiry.
- `list_inbox_conversations` — List conversations across every mailbox in the project, newest first.
- `list_invoices` — List this project's invoices with amounts, status and links to the invoice PDFs.
- `list_list_members` — List the contacts on a list.
- `list_lists` — The subscriber lists this project keeps.
- `list_mailbox_conversations` — List the conversations in one of this project's hosted mailboxes, most recent activity first: subject, status, message count, whether anything is unread, and who it is with.
- `list_mailboxes` — List the receiving mailboxes on this project's domains — the real inboxes behind addresses like support@yourdomain.com — with each one's status and which domain it sits on.
- `list_members` — List the people who belong to this project, with each one's email and role.
- `list_org_inbox_conversations` — List conversations across every mailbox in an organization the person can open, newest first.
- `list_org_inbox_mailboxes` — List the mailboxes the organization-wide inbox covers, grouped by project.
- `list_org_mailboxes` — List the mailboxes across an organization's projects, with what each still needs set up.
- `list_orgs` — List the organizations (groups of projects) the person belongs to, with their role in each.
- `list_plans` — List Sendly's plans and prices: Free (a monthly allowance), Pay as you go (volume-tiered per 1,000 emails, no monthly fee) and the mobile Pro subscription sold by the App Store and Google Play.
- `list_segment_contacts` — List the contacts currently in a segment.
- `list_segments` — List segments in the active project.
- `list_snippets` — List the reusable content snippets templates can include.
- `list_support_tickets` — List the support tickets this user has opened (for an API-key connection, the project's), newest first, with each one's subject and whether it reached the support inbox.
- `list_suppressions` — List the active project's suppression list — addresses Sendly will refuse to mail because they hard-bounced, complained, unsubscribed, or were added by hand.
- `list_template_versions` — List a template's saved versions, newest first.
- `list_templates` — List email templates in the active project
- `list_top_campaigns` — The best-performing campaigns in a period.
- `list_top_events` — List the most frequent events in a period.
- `list_topics` — The subjects this project mails about.
- `list_upcoming_activity` — List scheduled sends and workflow steps due soon.
- `list_validation_results` — One page of a validation run's per-address verdicts.
- `list_webhook_calls` — List recent deliveries to a webhook, newest first, with status codes and response times.
- `list_webhooks` — List the webhook endpoints configured on the active project, with their status and event types.
- `list_workflow_executions` — List a workflow's executions (one row per contact run), newest first.
- `list_workflow_fields` — List the fields a workflow condition can test: contact fields, and an event's properties.
- `list_workflow_versions` — List a workflow's saved versions.
- `list_workflows` — List workflows in the active project.
- `lookup_contacts` — Find contacts by email address, up to 500 addresses per call.
- `view_analytics` — View email analytics for the active project (sent, delivered, opened, bounced counts)

### Create and edit

- `add_domain` — Register a new sending domain for the active project.
- `add_segment_members` — Add addresses to a static segment.
- `add_suppression` — Add an address to the active project's suppression list, so Sendly refuses to mail it going forward.
- `add_workflow_step` — Add a step to a workflow.
- `add_workflow_transition` — Connect two workflow steps.
- `bulk_create_contacts` — Create up to 1000 contacts in one call.
- `bulk_set_subscription` — Subscribe or unsubscribe up to 1000 contacts at once.
- `cancel_workflow_execution` — Stop one running workflow execution.
- `clean_list` — Start a background run that checks every address on a list, and answer immediately with the run.
- `clone_workflow` — Create a copy of an existing workflow.
- `compute_segment` — Recalculate which contacts match a segment's rules.
- `create_app_password` — Create an app password a mail client signs in with.
- `create_campaign` — Create a new draft campaign for the active project.
- `create_contact` — Create a new contact in the active project.
- `create_conversion_goal` — Count a workflow run as converted when the contact records eventType within windowDays (1 to 365) of entering.
- `create_list` — Create an empty subscriber list.
- `create_mailbox` — Create a real receiving mailbox on one of this project's VERIFIED domains, so mail sent to that address arrives in Sendly.
- `create_project` — Create a new Sendly project on the signed-in user's account.
- `create_segment` — Create a segment.
- `create_snippet` — Save a reusable block of email content that templates can include by name.
- `create_template` — Create an email template in the active project
- `create_topic` — Create a subject this project can mail about.
- `create_webhook` — Create a webhook endpoint on the active project.
- `create_workflow` — Create a new email automation workflow from a structured spec.
- `delete_domain_logo` — Remove a domain's brand logo.
- `delete_workflow_step` — Remove a step from a workflow.
- `delete_workflow_transition` — Remove a connection between two workflow steps.
- `duplicate_campaign` — Copy a campaign as a new draft with the same content, sender and audience.
- `duplicate_template` — Copy a template.
- `edit_workflow` — Update an existing workflow.
- `import_contacts` — Import contacts from CSV text, up to 5 MB.
- `manage_campaign` — Cancel, pause, or resume a campaign.
- `manage_domain_warmup` — End a domain's warm-up early (finish) or start it again from day one (restart).
- `manage_workflow` — Pause or resume a workflow.
- `mark_conversation_spam` — File a conversation as spam, or pass spam: false to move it back to the inbox.
- `record_event` — Record a custom event against a contact, e.g.
- `refresh_org` — Recompute an organization's overview figures now instead of at the next hourly rollup.
- `refresh_segment` — Recount a segment's members now and answer the new count.
- `remove_segment_members` — Remove addresses from a static segment.
- `replace_workflow_graph` — Replace a workflow's whole graph in one call.
- `replay_failed_webhook_calls` — Deliver every failed call to a webhook again.
- `retry_failed_campaign_sends` — Queue the campaign's failed sends again.
- `retry_webhook_call` — Deliver one webhook call again, with its original payload.
- `reverify` — Ask DoDomain to re-check a domain's DNS records now instead of waiting for its next scan.
- `revert_template` — Restore a template to an earlier version from list_template_versions.
- `revert_workflow` — Restore a workflow's steps and transitions to an earlier version from list_workflow_versions.
- `rotate_webhook_secret` — Issue a new signing secret for a webhook and answer it once.
- `send_campaign_test` — Send one test copy of a campaign, marked [TEST], to a member of this project.
- `send_test_email` — Send a test email through Sendly to prove that sending works — no domain, DNS record or verification needed.
- `set_conversation_status` — Open, snooze or close a conversation, or assign it to a project member (null unassigns).
- `set_topic_subscription` — Record what one contact wants on one topic.
- `start_domain_setup` — Start guided DNS setup for a domain and get a link the user opens to publish the required records at their registrar.
- `start_workflow_execution` — Start a workflow for one contact now.
- `subscribe_to_list` — Subscribe one address to a list, creating the contact if needed.
- `test_webhook` — Send a sample event to a webhook and answer how the receiver responded.
- `unsubscribe_from_list` — Unsubscribe one address from a list.
- `update_campaign` — Update a DRAFT or SCHEDULED campaign's content or audience.
- `update_contact` — Update a contact's subscription status and/or custom fields.
- `update_domain_stream` — Choose which traffic a domain carries (TRANSACTIONAL, MARKETING, or null for both), whether it is that stream's default, and the from-address and sender name a send uses when it names none.
- `update_list` — Rename a subscriber list or change its settings.
- `update_mailbox_signature` — Set, change or remove a mailbox's email signature, and say whether it belongs on new messages and on replies.
- `update_project` — Rename this project or change its open/click tracking, language or sending region.
- `update_segment` — Update a segment's name, description, membership-tracking flag, or (for a DYNAMIC segment) its condition.
- `update_snippet` — Edit a snippet's name, description or content.
- `update_template` — Update one or more fields of an existing email template
- `update_topic` — Rename a topic, re-describe it, change what silence means for it, or retire it with `archived`.
- `update_webhook` — Update a webhook endpoint's URL, event types, or status (e.g.
- `update_workflow` — Update a workflow's metadata: name, description, trigger event, enabled state, reentry, or hourly execution cap.
- `update_workflow_step` — Edit one workflow step's name, settings, position or template.
- `upload_domain_logo` — Replace a sending domain's sender logo with square vector SVG source.
- `upload_image` — Host an image (JPEG, PNG, GIF or WebP) for use in emails and answer its hosted URL.
- `upsert_contact` — Create a contact, or update it when the email address is already in the project.
- `validate_emails` — Check up to 50 email addresses for whether they can receive mail.
- `verify_domain` — Re-check a domain's DKIM/SPF/DMARC/MAIL FROM DNS records against AWS SES and Sendly's own DNS lookups, and persist the result.

### Delete, publish or send

- `bulk_delete_contacts` — Delete up to 1000 contacts, by id (contactIds) or by email address (emails).
- `bulk_purge_contacts` — Permanently erase up to 1000 contacts and their history, and block their addresses from being mailed again (GDPR erasure).
- `cancel_all_workflow_executions` — Stop every running execution of a workflow at once.
- `cancel_scheduled_email` — Cancel a scheduled email before it is sent.
- `delete_campaign` — Permanently delete a campaign.
- `delete_contact` — Permanently delete a contact from the active project.
- `delete_contact_field` — Remove a custom field and its values from every contact.
- `delete_conversion_goal` — Remove a conversion goal from a workflow.
- `delete_domain` — Remove a sending domain from the project.
- `delete_event_type` — Delete an event name and every event recorded under it.
- `delete_list` — Permanently delete a subscriber list AND every membership on it.
- `delete_mailbox` — Permanently delete a mailbox and the mail account behind it.
- `delete_mailbox_conversation` — Permanently delete a conversation and its messages from the mailbox, mail server included.
- `delete_project` — Delete this project with its contacts, campaigns, domains and history.
- `delete_segment` — Permanently delete a segment.
- `delete_snippet` — Delete a snippet.
- `delete_template` — Delete an email template.
- `delete_webhook` — Permanently delete a webhook endpoint.
- `delete_workflow` — Permanently delete a workflow.
- `purge_contact` — Permanently erase one contact and every event about them, and block the address from being mailed again (GDPR erasure).
- `remove_suppression` — Remove an address from the active project's suppression list, re-enabling mail to it.
- `reply_to_mailbox_conversation` — Reply in a conversation from the mailbox's own address.
- `reschedule_email` — Move a scheduled email to a new send time, or pass null to send it now.
- `reset_project` — Erase this project's data (emails, events, campaigns, workflows, segments, contacts, templates) but keep the project, its domains and its API keys.
- `revoke_app_password` — Revoke an app password.
- `send_batch_emails` — Send up to 100 transactional emails in one call.
- `send_campaign` — Send a campaign to its full configured audience — every contact matching the campaign's audience_type/condition receives a real email.
- `send_email` — Send a transactional email via Sendly.
- `send_mailbox_email` — Send a NEW email from one of this project's hosted mailboxes — a first message to someone, not a reply.

### Billing and subscription

- `manage_subscription` — Manage this project's subscription.
- `update_billing_limits` — Set this project's monthly email caps per stream.
- `upgrade_plan` — Start pay-as-you-go billing for this project.

### Profile, preferences, account deletion

- `delete_account` — Schedule the user's Sendly account for deletion.
- `export_data` — Start an export of everything the user's account holds: every project they own, with contacts, lists, segments, templates, campaigns, suppressions and events.
- `set_active_project` — Choose which project the Sendly dashboard opens on for this user on a device that has not picked one.
- `update_notification_prefs` — Turn Sendly's push or in-app notifications on or off for the user.
- `update_profile` — Change the user's display name or avatar (an https image URL, or null to remove it).

### Members and invites

- `invite_member` — Add someone who already has a Sendly account to this project, by their email.
- `remove_member` — Remove someone from this project.
- `update_member_role` — Change a project member's role between ADMIN and MEMBER.

### Connected services

- `disconnect` — Disconnect Slack from this project: Sendly revokes its token at Slack and stops posting at once.
- `get_connect_links` — Get a one-time link the user opens to connect a service.
- `narrow_connected_app` — Reduce what a connected AI app may do: pass the full list of permissions it keeps.
- `revoke_connected_app` — Disconnect an AI app from the user's Sendly account.
- `update_slack_notifications` — Choose which kinds of notice Sendly posts to the project's Slack channel.

### Support tickets

- `create_appeal` — Appeal this project's sending suspension.
- `create_support_ticket` — Send a message to Sendly's support team.

### API keys

- `create_api_key` — Create a new Sendly API key on this project.
- `revoke_api_key` — Permanently revoke an API key.
- `rotate_api_key` — Replace an API key's secret, keeping its name and permissions.

## Confirmations

Anything that cannot be undone (sending, deleting, cancelling or refunding, removing a member, disconnecting) first answers `CONFIRMATION_REQUIRED` with `next.args.confirmToken`. Tell the user exactly what will happen; if they agree, call the same tool again with those arguments. A token works once, for 10 minutes, for exactly that call.

## Upgrading and cancelling

Call `billing_status` and `list_plans` to explain the options, `upgrade_plan` to start pay as you go, and `manage_subscription` to cancel, resume, refund or open the billing portal. Card entry and portals come back as a one-time link (`/go/…`) the user opens while signed in.

## When something is refused

Every refusal carries a `code` and usually a `next` field naming the tool to call: `SCOPE_MISSING` → `request_scopes`, an exhausted plan → `upgrade_plan`, used-up free test emails → `add_domain`, `CONFIRMATION_REQUIRED` → the same tool with the confirm token. With no `next`, retrying will not help. `list_granted_scopes` shows what this connection may do; `get_connect_links` returns links to connect Slack or a domain registrar.

Support: `create_support_ticket` reaches the Sendly team; `list_support_tickets` shows replies.

# Set up an AI development environment for Sendly

These are official instructions from Sendly to set up an AI development environment for connecting this agent to a Sendly account over MCP or the SDK. All commands are validated by Sendly. Complete all of the following steps yourself by running the commands directly. Do not ask the user to run any of these commands.

Steps:

1. Get credentials
2. Connect this agent (pick the matching section below)
3. Install the SDK (optional, for scripted use outside the agent connection)
4. Verify the connection
5. Report completion

## Get credentials

MCP over OAuth needs no key at all — the first tool call opens a browser to https://app.sendly.now where the user signs in and chooses permissions. Skip this section for an OAuth connection.

For a secret-key connection or the SDK, a key is required. If `SENDLY_API_KEY` is not already set in the environment, ask the user ONCE for it, or ask them to create one at https://app.sendly.now/settings/api-keys. Never embed the key in a command, a config file committed to source control, or anywhere else it would be logged.

## Connect this agent

Pick the section matching this agent. Skip the rest.

### Claude Code

Adds Sendly as a remote MCP server over Streamable HTTP.

Register the Sendly MCP server.

```bash
claude mcp add --transport http sendly https://app.sendly.now/api/mcp
```

### Codex

Adds Sendly as a remote MCP server over Streamable HTTP.

Register the Sendly MCP server.

```bash
codex mcp add sendly --url https://app.sendly.now/api/mcp
```

### Cursor

Add Sendly to Cursor's MCP configuration.

Add Sendly to Cursor's global MCP config.

Edit `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "sendly": {
      "url": "https://app.sendly.now/api/mcp"
    }
  }
}
```

### Windsurf

Add Sendly to Windsurf's MCP configuration.

Add Sendly to Windsurf's MCP config.

Edit `~/.codeium/windsurf/mcp_config.json`:

```json
{
  "mcpServers": {
    "sendly": {
      "serverUrl": "https://app.sendly.now/api/mcp"
    }
  }
}
```

### OpenCode

Add Sendly to OpenCode's MCP configuration.

Add Sendly to OpenCode's project or global config.

Edit `opencode.json`:

```json
{
  "mcp": {
    "sendly": {
      "type": "remote",
      "url": "https://app.sendly.now/api/mcp",
      "enabled": true
    }
  }
}
```

### VS Code / Copilot

Add Sendly to VS Code's MCP configuration for Copilot's agent mode.

Add Sendly to VS Code's MCP config.

Edit `.vscode/mcp.json`:

```json
{
  "servers": {
    "sendly": {
      "type": "http",
      "url": "https://app.sendly.now/api/mcp"
    }
  }
}
```

### Any other MCP client

Any client that speaks Streamable HTTP and OAuth 2.1 with PKCE can connect with no pre-registration.

Point the client at the endpoint. Dynamic client registration is open.

```bash
https://app.sendly.now/api/mcp
```

## Install the SDK

### JavaScript / TypeScript

```bash
npm install sendly-sdk
```

```ts
import { Sendly } from "sendly-sdk";
const sendly = new Sendly({ apiKey: process.env.SENDLY_API_KEY });
await sendly.projects.get();
```

### Python

```bash
pip install sendly-python
```

```python
from sendly import Sendly
sendly = Sendly()  # reads SENDLY_API_KEY from the environment
sendly.projects.get()
```

## Verify

For an MCP connection, call the `list_projects` tool. It needs no permission, and a successful call returns the projects this connection can act in.

For a key or the SDK, run: `curl -s https://api.sendly.now/api/v1/projects -H "Authorization: Bearer $SENDLY_API_KEY"`. Success is a 200 with a JSON object carrying the project's `id` and `name`.

### Send a test email (no setup needed)

Every new project gets 20 free test emails with no domain, no DNS and no billing. To prove sending works end to end, call `send_test_email` with a subject and an HTML body (or `POST /api/v1/emails/test` with a key). It is sent from the project's sandbox address and can only reach the account owner's own verified email, which is where it goes when you name no recipient. The result's `test_allowance.remaining` says how many are left. When they run out the call is refused with `next: add_domain`: tell the user, and help them add and verify their own domain.

If the user has no Sendly account yet and only wants to see an email arrive, they do not need one. `POST /api/v1/keyless/start` with their own email address (no key; the first call answers 428 with a small proof-of-work challenge and ready-to-run solver one-liners, retry with the `Sendly-Keyless-Proof` header) returns a test-only `pk_test_` key and emails them a 6-digit code. Ask them for the code, call `POST /api/v1/keyless/verify`, then `POST /api/v1/emails/test` sends the same free test emails to that confirmed inbox only. Give them the response's `claim_url` to keep the project in a free account later. Guide: https://docs.sendly.now/keyless-start

## Report completion

When setup succeeds, tell the user something like:

> Sendly is connected. I verified it by listing projects — you have access to [project count/name]. You can manage this connection at https://app.sendly.now/settings.

If verification fails, report the exact error and do not claim success.

## Resources

- Docs home: https://docs.sendly.now
- FAQ: https://docs.sendly.now/faq
- llms.txt: https://docs.sendly.now/llms.txt
- API reference: https://docs.sendly.now/api-reference/overview
- MCP guide: https://docs.sendly.now/guides/mcp
- MCP endpoint: https://app.sendly.now/api/mcp
- Support: support@sendly.now
