Muster CRMDocs

Permissions reference

Complete reference for the 26 API permissions available in Muster CRM.

Muster CRM uses a bitmask system for API permissions. Each permission is one bit in a uint64, so a single integer can express any combination of the permissions below.

These same permissions are the OAuth scopes, lowercased: READ_EMAILS is the scope read_emails. An OAuth access token carries a bitmask of granted permissions and is checked through the identical gates as an API key.

Permission values

PermissionBitValueCategoryDescription
READ_EMAILS01readView email accounts and settings
READ_CAMPAIGNS12readView campaigns and sequences
READ_CONTACTS24readView contact lists, notes, and activities
READ_UNIBOX38readAccess unified inbox
READ_ANALYTICS416readView analytics and statistics
WRITE_EMAILS532writeModify email account settings
WRITE_CAMPAIGNS664writeCreate and modify campaigns and sequences
WRITE_CONTACTS7128writeCreate and modify contacts, notes, activities
WRITE_UNIBOX8256writeMark emails as read/unread and send replies
BULK_CONTACTS9512bulkBulk import/export/delete contacts
BULK_CAMPAIGNS101024bulkBulk campaign operations
REALTIME_SUBSCRIBE112048specialSubscribe to realtime events
WEBHOOKS124096specialManage webhook endpoints
API_KEYS138192specialCreate and manage API keys
SEND_CAMPAIGNS1416384writeStart and stop campaigns (sends real mail)
READ_TEMPLATES1532768readView reply templates
WRITE_TEMPLATES1665536writeCreate and modify reply templates
READ_CRM17131072readView pipelines, deals, and CRM tasks
WRITE_CRM18262144writeCreate and modify pipelines, deals, CRM tasks
READ_AUDIT_LOGS19524288readView organization audit logs
INTEGRATIONS201048576specialConnect and manage third-party integrations
WARMUP_ROUTING212097152specialManage warmup routing rules
AI_AGENT224194304specialRun the AI assistant and MCP tools
AI_RESEARCH238388608specialRun AI contact research and AI Enrich
READ_ACCOUNTS2416777216readView client accounts, account teams, and stakeholders (Account management add-on)
WRITE_ACCOUNTS2533554432writeModify client accounts, account teams, and stakeholders (Account management add-on)

Bits 26 to 29 (values 67108864, 134217728, 268435456 and 536870912) belonged to the retired scopes READ_MEDIA, WRITE_MEDIA, READ_WIKI and WRITE_WIKI, which covered the built-in media library and SOP wiki. Both moved to the Atlas plugin for Cadence, and Atlas has no API keys. The bits are kept and never reused, nothing checks them, and they are out of both presets. A key saved with one simply loses it.

SEND_CAMPAIGNS is intentionally separate from WRITE_CAMPAIGNS: editing a campaign draft and starting one that actually transmits mail are different blast radii, so a key can be granted the first without the second.

Categories

Read

Read-only data access. Safe for monitoring, reporting, BI sync.

Write

Resource mutation, but no campaign starts. A key with the full write set can edit drafts but cannot turn on a campaign.

Bulk

High-volume operations. These can touch large numbers of rows in a single request, so they're broken out from the per-record write permissions.

Special

Realtime subscriptions, webhooks, integrations, warmup routing, AI assistant / MCP access, AI contact research, and self-service key management. Grant individually.

Preset combinations

Both presets are returned by GET /api-keys/permissions for convenience.

Read only (17465375)

All read permissions combined:

READ_EMAILS | READ_CAMPAIGNS | READ_CONTACTS | READ_UNIBOX | READ_ANALYTICS
  | READ_TEMPLATES | READ_CRM | READ_AUDIT_LOGS | READ_ACCOUNTS
= 1 | 2 | 4 | 8 | 16 | 32768 | 131072 | 524288 | 16777216
= 17465375

Full access (67108863)

All 26 permissions:

(1 << 26) - 1 = 67108863

Working with bitmasks

Combining

const READ_EMAILS = 1;
const READ_CAMPAIGNS = 2;
const SEND_CAMPAIGNS = 16384;

const permissions = READ_EMAILS | READ_CAMPAIGNS | SEND_CAMPAIGNS;
// 16387

Checking

function hasPermission(permissions, required) {
  return (permissions & required) === required;
}

hasPermission(16387, 16384); // true: SEND_CAMPAIGNS granted
hasPermission(16387, 64);    // false: WRITE_CAMPAIGNS missing

Rejecting unknown bits

POST /api-keys rejects any request whose permissions field has bits outside the known set, so a stale client can't accidentally request a future permission. The current mask of valid bits is 67108863.

Capped at the creator's role

An API key or OAuth grant acts for the person who created it, so it can never do more than that person's current role allows. This is checked on every request, on every REST route and every MCP tool. If the creator is moved to a role without a permission, their keys lose it at once (the response is 403); restoring the role restores it. A creator who leaves the workspace stops their keys entirely.

An OAuth-connected MCP client can name another workspace its user belongs to with workspace_id. Each such call is capped by the user's role in that workspace and by the scopes granted to the connection, and an API key can't do it at all. See Workspaces over MCP.

The MCP tools api_read and api_write take no scope of their own. They send your credential to the documented endpoint they name, so that endpoint's scope and your role apply as if you had called it directly, and a key without the scope gets the same 403. An api_write call that changes a campaign also reads the campaign first, so it needs READ_CAMPAIGNS as well. SEND_CAMPAIGNS is still never needed: api_write refuses every endpoint that sends or starts sending. See Docs and the full API.

The same ceiling applies when a key is made or edited. POST /api-keys and PATCH /api-keys/:id return 403 when permissions includes a scope your role cannot grant, and a key that creates another key can grant at most its own scopes.

A member may hold a scope when their role has any of the permissions listed for it:

ScopeRole permission
READ_EMAILSView campaigns, or Manage mailboxes
READ_CAMPAIGNS, READ_TEMPLATESView campaigns, or Manage campaigns
READ_CONTACTS, READ_CRM, READ_ACCOUNTSView contacts, or Manage contacts
READ_UNIBOX, WRITE_UNIBOXUse unified inbox
READ_ANALYTICSView analytics
READ_AUDIT_LOGSView audit log (the audit log itself; every role with Manage team was given it), Manage team, or View analytics for the import-run reads that share the scope
WRITE_EMAILSManage mailboxes
WRITE_CAMPAIGNS, WRITE_TEMPLATES, BULK_CAMPAIGNSManage campaigns
WRITE_CONTACTS, WRITE_CRM, BULK_CONTACTS, WRITE_ACCOUNTSManage contacts
SEND_CAMPAIGNSSend campaigns
REALTIME_SUBSCRIBEAny member
WEBHOOKS, WARMUP_ROUTINGManage settings
INTEGRATIONSManage settings, or Use integrations
API_KEYSManage API keys
AI_AGENT, AI_RESEARCHUse AI

Each route also still needs the same role permission a dashboard user would need for it.

Common permission sets

Monitoring integration

For dashboards and reporting:

const MONITORING =
  READ_EMAILS |     // 1
  READ_CAMPAIGNS |  // 2
  READ_ANALYTICS;   // 16
// 19

CRM sync

const CRM_SYNC =
  READ_CONTACTS |   // 4
  WRITE_CONTACTS |  // 128
  BULK_CONTACTS |   // 512
  READ_CRM |        // 131072
  WRITE_CRM;        // 262144
// 393860

Campaign automation (drafts only, no send)

const CAMPAIGN_DRAFTS =
  READ_CAMPAIGNS |    // 2
  WRITE_CAMPAIGNS |   // 64
  READ_CONTACTS |     // 4
  READ_TEMPLATES |    // 32768
  WRITE_TEMPLATES;    // 65536
// 98374

This set can also run the campaign AI sample preview (POST /campaigns/:id/ai-preview, WRITE_CAMPAIGNS and READ_CONTACTS), which spends AI credits at the normal rate. Its free price check, GET /campaigns/:id/ai-preview/estimate, needs READ_CAMPAIGNS and READ_CONTACTS. Neither needs AI_AGENT or a new bit, so the constants below are unchanged.

Campaign automation (with send)

Same as above, plus SEND_CAMPAIGNS (16384). Grant only when the integration genuinely needs to start campaigns.

Permission constants

export const Permissions = {
  READ_EMAILS: 1,
  READ_CAMPAIGNS: 2,
  READ_CONTACTS: 4,
  READ_UNIBOX: 8,
  READ_ANALYTICS: 16,
  WRITE_EMAILS: 32,
  WRITE_CAMPAIGNS: 64,
  WRITE_CONTACTS: 128,
  WRITE_UNIBOX: 256,
  BULK_CONTACTS: 512,
  BULK_CAMPAIGNS: 1024,
  REALTIME_SUBSCRIBE: 2048,
  WEBHOOKS: 4096,
  API_KEYS: 8192,
  SEND_CAMPAIGNS: 16384,
  READ_TEMPLATES: 32768,
  WRITE_TEMPLATES: 65536,
  READ_CRM: 131072,
  WRITE_CRM: 262144,
  READ_AUDIT_LOGS: 524288,
  INTEGRATIONS: 1048576,
  WARMUP_ROUTING: 2097152,
  AI_AGENT: 4194304,
  AI_RESEARCH: 8388608,
  READ_ACCOUNTS: 16777216,
  WRITE_ACCOUNTS: 33554432,
} as const;
class Permissions:
    READ_EMAILS = 1
    READ_CAMPAIGNS = 2
    READ_CONTACTS = 4
    READ_UNIBOX = 8
    READ_ANALYTICS = 16
    WRITE_EMAILS = 32
    WRITE_CAMPAIGNS = 64
    WRITE_CONTACTS = 128
    WRITE_UNIBOX = 256
    BULK_CONTACTS = 512
    BULK_CAMPAIGNS = 1024
    REALTIME_SUBSCRIBE = 2048
    WEBHOOKS = 4096
    API_KEYS = 8192
    SEND_CAMPAIGNS = 16384
    READ_TEMPLATES = 32768
    WRITE_TEMPLATES = 65536
    READ_CRM = 131072
    WRITE_CRM = 262144
    READ_AUDIT_LOGS = 524288
    INTEGRATIONS = 1048576
    WARMUP_ROUTING = 2097152
    AI_AGENT = 4194304
    AI_RESEARCH = 8388608
    READ_ACCOUNTS = 16777216
    WRITE_ACCOUNTS = 33554432
const (
    APIPermReadEmails        uint64 = 1 << iota // 1
    APIPermReadCampaigns                        // 2
    APIPermReadContacts                         // 4
    APIPermReadUnibox                           // 8
    APIPermReadAnalytics                        // 16
    APIPermWriteEmails                          // 32
    APIPermWriteCampaigns                       // 64
    APIPermWriteContacts                        // 128
    APIPermWriteUnibox                          // 256
    APIPermBulkContacts                         // 512
    APIPermBulkCampaigns                        // 1024
    APIPermRealtimeSubscribe                    // 2048
    APIPermWebhooks                             // 4096
    APIPermAPIKeys                              // 8192
    APIPermSendCampaigns                        // 16384
    APIPermReadTemplates                        // 32768
    APIPermWriteTemplates                       // 65536
    APIPermReadCRM                              // 131072
    APIPermWriteCRM                             // 262144
    APIPermReadAuditLogs                        // 524288
    APIPermIntegrations                         // 1048576
    APIPermWarmupRouting                        // 2097152
    APIPermAIAgent                              // 4194304
    APIPermAIResearch                           // 8388608
    APIPermReadAccounts                         // 16777216
    APIPermWriteAccounts                        // 33554432
)

See also

On this page