Aveiro Documentation
Getting Started
What Is Aveiro?
Create Your Account
Create Your First Site
Dashboard Tour
Key Concepts
Members and Permissions
API Tokens
Aveiro MCP server
Sites
Sites Overview
Choosing a Template
Managing Sites
Preview and Live URLs
Social
Social Publishing Overview
Connecting Social Accounts
Social Approval Workflow
Social Agents and API
Audience
Audience Overview
Campaigns
Automation
Segments
Deliverability
Sending Domains
Embed Forms
Subscribers
Audience Agents and API
Messaging
Messaging Overview
Visitor Support Chat
Inbox
Analytics
Analytics Overview
Events
Live Visitors
Page Analytics
Editor
Pages
Pages Overview
File Tree and Collections
Creating and Organizing Pages
Page Settings
Publishing Pages
Version History
Ai
AI Overview
Chat and Suggestions
Working with AI Changes
Translations
Translations Overview
Layout
Layout Overview
Site Layouts
Collection Layouts
Header, Footer, and Sidebars
Components
Components Overview
Adding and Editing Components
Component Categories
Writing with MDX
Editing
Keyboard Shortcuts
Preview, Visual, and Source
Styles
Styles Overview
Block Styles
Site Theme and Branding
Settings
Visitor Login
Analytics and Consent
Custom Domains
Settings Overview
Publishing Settings vs Content
SEO and Social Sharing
Site Name and URL
Visitor Assistant
Integrations
Integrations Overview
Fourthwall Integration
Editor Overview
Media Library
TrademarkTrademark
Ctrl k
Search...
Sign up
Aveiro Documentation
Getting Started
What Is Aveiro?
Create Your Account
Create Your First Site
Dashboard Tour
Key Concepts
Members and Permissions
API Tokens
Aveiro MCP server
Sites
Sites Overview
Choosing a Template
Managing Sites
Preview and Live URLs
Social
Social Publishing Overview
Connecting Social Accounts
Social Approval Workflow
Social Agents and API
Audience
Audience Overview
Campaigns
Automation
Segments
Deliverability
Sending Domains
Embed Forms
Subscribers
Audience Agents and API
Messaging
Messaging Overview
Visitor Support Chat
Inbox
Analytics
Analytics Overview
Events
Live Visitors
Page Analytics
Editor
Pages
Pages Overview
File Tree and Collections
Creating and Organizing Pages
Page Settings
Publishing Pages
Version History
Ai
AI Overview
Chat and Suggestions
Working with AI Changes
Translations
Translations Overview
Layout
Layout Overview
Site Layouts
Collection Layouts
Header, Footer, and Sidebars
Components
Components Overview
Adding and Editing Components
Component Categories
Writing with MDX
Editing
Keyboard Shortcuts
Preview, Visual, and Source
Styles
Styles Overview
Block Styles
Site Theme and Branding
Settings
Visitor Login
Analytics and Consent
Custom Domains
Settings Overview
Publishing Settings vs Content
SEO and Social Sharing
Site Name and URL
Visitor Assistant
Integrations
Integrations Overview
Fourthwall Integration
Editor Overview
Media Library
TrademarkTrademark
AveiroBlogContact
© Aveiro. All rights reserved.
Built with Aveiro
Audience

Audience Agents and API

Let AI agents draft email campaigns via /api/v1/campaigns and aveiro_newsletter_* MCP tools. Requires newsletter:read / newsletter:write — send and schedule stay in the dashboard.
Updated 7d ago
Subscribers
In short
Grant newsletter:read and newsletter:write on an API token or MCP OAuth connection. Agents list campaigns, draft and revise copy, and read analytics. Send, schedule, and test sends remain dashboard-only — there is no scope that grants them.

What agents can and cannot do

Action
Agent (API / MCP)
Human (dashboard)
List campaignsYesYes
Read campaign content and analyticsYes — newsletter:readYes
Create and revise draftsYes — draft onlyYes
Send, schedule, or test sendNo — not exposedYes
Send autonomouslyNo — structural guardrailNo without human action
Email goes to real inboxes — Aveiro keeps send and schedule in session-authenticated dashboard actions only.

Token setup

  • Complete Audience setup — verified sender domain or email provider (see Sending domains)
  • Open Organization → API tokens → Create token
  • Add newsletter:read to list campaigns and read analytics (requires Audience manage)
  • Add newsletter:write to draft and revise campaigns (requires Campaign create)
  • Copy the av_live_… secret — shown once
For MCP in Cursor or Claude, connect via the hosted MCP server at https://www.aveiro.app/api/mcp/mcp. OAuth grants include newsletter:read and newsletter:write when newsletter tools are authorized. Default content tokens (sites:read, content:read, content:write) do not include newsletter access — add newsletter scopes explicitly. See API tokens for the full scope list.

REST API

All routes live under /api/v1/campaigns on your platform host. Full reference: Newsletter API overview.
Method
Route
Purpose
GET/api/v1/campaignsList campaigns — optional status filter
POST/api/v1/campaignsCreate a draft campaign
GET/api/v1/campaigns/{campaignId}One campaign with full HTML content
PATCH/api/v1/campaigns/{campaignId}Revise a draft campaign
GET/api/v1/campaigns/{campaignId}/analyticsSends, opens, clicks, top links, unsubscribes
Send Authorization: Bearer av_live_… on every request.

Typical agent loop

  • GET /api/v1/campaigns?status=sent — review a past send before drafting a follow-up
  • GET /api/v1/campaigns/{id}/analytics — note open rate and top clicked links
  • POST /api/v1/campaigns with subject, fromName, fromEmail, and htmlContent
  • Human opens Audience → Campaigns — reviews the draft in the campaign editor
  • Human chooses audience, sends or schedules from the dashboard
  • After send, agent can GET …/analytics again for reporting scripts
Agents may only PATCH campaigns in draft status. Sending, sent, and failed campaigns are immutable over the API — duplicate in the dashboard or create a new draft via POST.
Full field reference: Newsletter campaigns API.

MCP tools

The Aveiro MCP server exposes thin wrappers around the same routes:
Tool
REST equivalent
aveiro_newsletter_list_campaignsGET /api/v1/campaigns
aveiro_newsletter_get_campaignGET /api/v1/campaigns/{id}
aveiro_newsletter_get_analyticsGET /api/v1/campaigns/{id}/analytics
aveiro_newsletter_create_draftPOST /api/v1/campaigns
aveiro_newsletter_update_draftPATCH /api/v1/campaigns/{id}
Tools are available on the hosted MCP server and the stdio server in mcp/aveiro. See the Aveiro MCP README in the repo for local setup.

Related

  • Campaigns
  • Audience overview
  • API tokens
  • Newsletter API reference