Aveiro Documentation
Monetization
Monetization Overview
Products
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
Ads
Ads Overview
Managing Ad Inventory
Editor
Editor Overview
Media Library
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
Ad Placements
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 Privacy
Custom Domains
Settings Overview
Publishing Settings vs Content
SEO and Social Sharing
Site Name and URL
Visitor Assistant
Site Ad Settings
Integrations
Integrations Overview
Fourthwall Integration
TrademarkTrademark
Ctrl k
Search...
Sign up
Aveiro Documentation
Monetization
Monetization Overview
Products
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
Ads
Ads Overview
Managing Ad Inventory
Editor
Editor Overview
Media Library
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
Ad Placements
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 Privacy
Custom Domains
Settings Overview
Publishing Settings vs Content
SEO and Social Sharing
Site Name and URL
Visitor Assistant
Site Ad Settings
Integrations
Integrations Overview
Fourthwall Integration

API Tokens

Create org-scoped tokens for CI and AI agents — draft content by default, opt-in scopes for publish, delete, social drafts, and site setup.
Updated 13d ago
Members and Permissions
Aveiro MCP server
TrademarkTrademark
AveiroBlogContact
© Aveiro. All rights reserved.
Built with Aveiro
In short
Organization → API tokens creates bearer tokens for automation. Default scopes list sites and read or write draft pages. Opt in to delete, publish, social drafts, create sites, or manage collections when creating the token.

When to use API tokens

Use tokens when you want tools such as Cursor, GitHub Actions, or internal scripts to:
  • List sites and pages in your organization
  • Create or update draft MDX content
  • Optionally create sites, collections, publish, delete, or draft social posts — when you grant those scopes
Tokens are not a replacement for signing into the dashboard. They are for machine access with a narrow scope.

Creating a token

  • Open Organization → API tokens.
  • Click Create token.
  • Enter a name you will recognize later (for example CI docs sync).
  • Choose scopes (see below). Destructive scopes are off by default.
  • Optionally limit to specific sites — required for delete and publish scopes (unless you are an org admin).
  • Copy the secret when shown — it is displayed only once.
Store the token in your password manager or CI secrets (for example AVEIRO_API_TOKEN).

Scopes

Scope
Allows
sites:readList sites the token can access (default)
sites:writeCreate new sites
collections:writeCreate collections (folders)
content:readRead draft page content and metadata (default)
content:writeCreate and update draft pages (default)
content:deleteDelete pages and collections
publish:writePublish or unpublish site content
audience:writeAdd email subscribers via API
social:writeDraft and revise social posts; list accounts and media (no approve/publish)
newsletter:readList past email campaigns and read their content and analytics
newsletter:writeDraft and revise email campaigns (no send/schedule)
Default token: sites:read, content:read, content:write. Delete and publish require limiting the token to specific sites (non-admins).

Who can grant which scopes

When you create a token, Aveiro only lets you select scopes your member permissions allow:
Scope
Requires capability
content:writeDocs update
audience:writeAudience manage
social:writeAudience manage
newsletter:readAudience manage
newsletter:writeCampaign create
Owners and admins can grant every scope. Members without the matching capability see a clear error if they try to include a scope they cannot grant.

API endpoints

All routes live under /api/v1 on your platform host (for example https://help.aveiro.app).
Endpoint
Purpose
GET /api/v1/meToken name, org, scopes, and allowed site IDs
GET /api/v1/sitesList accessible sites
GET /api/v1/templatesList marketplace templates for cloning (sites:read)
POST /api/v1/sitesCreate a site — optional template slug clones marketplace layout (sites:write)
GET /api/v1/sites/{siteId}/collectionsList collections
POST /api/v1/sites/{siteId}/collectionsCreate a collection
DELETE /api/v1/sites/{siteId}/collections/{id}Delete a collection (content:delete)
GET /api/v1/sites/{siteId}/pagesList draft pages
GET /api/v1/sites/{siteId}/pages/by-path?path=...Fetch one page by path
POST /api/v1/sites/{siteId}/pagesCreate a draft page
PATCH /api/v1/sites/{siteId}/pages/{contentId}Update draft content
POST /api/v1/sites/{siteId}/reorderReorder, move, or sort pages (content:write)
DELETE /api/v1/sites/{siteId}/pages/{contentId}Soft-delete a page (content:delete)
POST /api/v1/sites/{siteId}/publishPublish dirty drafts (publish:write)
POST /api/v1/sites/{siteId}/unpublishHide site or unpublish pages (publish:write)
GET /api/v1/sites/{siteId}/mediaList site media images (content:read)
POST /api/v1/sites/{siteId}/media/uploadPrepare a signed upload for site media (content:write)
GET /api/v1/sites/{siteId}/changesList dirty drafts awaiting review
GET /api/v1/social/accountsList connected social accounts (social:write)
GET/POST /api/v1/social/postsList or create social drafts (social:write)
GET/PATCH /api/v1/social/posts/{postId}Read or revise a social draft (social:write)
GET/POST /api/v1/social/mediaList or register social media assets (social:write)
GET /api/v1/social/org-mediaBrowse org media storage — dashboard uploads (social:write)
POST /api/v1/social/media/generateAI-generate social images — up to four aspectRatios per call (social:write)
GET/POST /api/v1/campaignsList or draft email campaigns (newsletter:read / newsletter:write)
GET/PATCH /api/v1/campaigns/{campaignId}Read or revise a draft campaign (newsletter:read / newsletter:write)
GET /api/v1/campaigns/{campaignId}/analyticsSend, open, click, and unsubscribe metrics (newsletter:read)
Social routes are documented in the Social API reference. Platform guide: Social agents and API. Newsletter routes are documented in the Newsletter API reference. Platform guide: Audience agents and API. Send the token as Authorization: Bearer av_live_… on every request. Valid page writes can include an advisory recommendations array when content reads off-dialect — button rows, hand-rolled heroes, or bare internal link lists. The draft still saves; each entry suggests a rewrite toward Aveiro's editorial dialect. Agents connected over MCP should call aveiro_authoring_guide before their first write. See the Site media API for image uploads.

Idempotency

When creating pages with POST, pass an Idempotency-Key header so retries do not create duplicates. Reusing the same key with a different body returns a conflict error.

Revoking tokens

Open the token row menu → Revoke. Revocation is immediate — automations using that token stop working. Admins see every active token in the organization.

Workflow with the editor

  • Automation writes or updates draft content via the API.
  • Open the page in the editor (each API response includes an editor_url) to review, or use publish:write to go live from CI.
  • Check GET …/changes to see which pages still have unpublished edits.

Related guides

  • Members and permissions — who can create tokens
  • Publishing settings vs content — what publish covers
  • Publishing pages — page-level publish