API and definition limits

What caps apply to definitions, batches, requests and retention, and where the code enforces each one.

Edit on GitHub
WhatLimitWhere it is enforced
Definition size10 MBINVALID_DEFINITION on save and publish
Nodes per definition200INVALID_DEFINITION
Node id^[a-z][a-z0-9_]*$, 1 to 64 charactersschema
Rules per condition1 to 20schema
SMS body1000 characters; a warning (TOO_LONG) above 320schema and validator
Email subject300 charactersschema
Email body100,000 characters as text, 5,000,000 as htmlschema
Embedded (base64) image in an html email1 MB decoded per image (IMAGE_TOO_LARGE); a warning (HEAVY_EMAIL) above 400 KB per bodyexecutor and validator
Email message10 MB with its images (MESSAGE_TOO_LARGE)executor
Sender signature1 MB of HTML, 4,000 characters of textAPI
Task title, body, link, kind200, 4000, 2000 and 32 charactersschema
Logic steps per advance25 before the enrollment is handed back to the plannerengine
Contacts per batch upsert, per :status, per :events500 (BATCH_TOO_LARGE)API
Contacts per enroll call5,000 (BATCH_TOO_LARGE)API
Enrollments per POST /v1/enrollments:exit by sequence200 per callAPI
List page size1 to 200, default 50API
Request body11 MB on the routes that carry a definition (create a sequence, save a draft, validate), 2 MB elsewhereAPI (413)
Requests600 per minute per key (429 with Retry-After)API
Timeline and journeythe last 200 messages and signals, 100 tasksAPI
Email send retries5 reads of the queue message, then failedexecutor
SMS send retriesnone without a provider confirmation: an unknown outcome is needs_reviewexecutor
Webhook delivery attempts9, over about 3 days (0 s, 5 s, 5 min, 30 min, 2 h, 5 h, 10 h, 10 h, 10 h); 10 s timeout per attemptdelivery
Endpoint disabled afterevery delivery failing for 3 daysdelivery
Webhook timestamp tolerance5 minutesreceivers (SDK default)
Opt-out link90 daysopt-out token
Planner claim50 per sender, 500 per tick, released after 10 minutes if not advancedplanner
Poll scopethreads started in the last 30 days, 500 channels per tickpoll job
Default channel capsemail 30 a day with a 60 s gap, SMS 100 a daynew channels
Idempotency keys kept1 dayretention
Dead-letter queue rows and delivered deliveries kept30 daysretention
retention_days settingaccepted (7 to 3650, default 365) but not enforced yet: runs, messages and signals are keptsee Data retention