Skip to content

The open alternative to Salesforce, designed for AI.

docs(billing): document usage limits (#26457)

Etienne67b39923b9d1
diff --git a/packages/twenty-docs/docs.json b/packages/twenty-docs/docs.json
index 75f3dcaf949..7fa836552af 100644
--- a/packages/twenty-docs/docs.json
+++ b/packages/twenty-docs/docs.json
@@ -328,7 +328,8 @@
"group": "Reference",
"pages": [
"user-guide/billing/capabilities/pricing-plans",
- "user-guide/billing/capabilities/credits"
+ "user-guide/billing/capabilities/credits",
+ "user-guide/billing/capabilities/usage-limits"
]
},
{
diff --git a/packages/twenty-docs/navigation/base-structure.json b/packages/twenty-docs/navigation/base-structure.json
index fea73f70084..83a89cc92bb 100644
--- a/packages/twenty-docs/navigation/base-structure.json
+++ b/packages/twenty-docs/navigation/base-structure.json
@@ -323,7 +323,8 @@
"label": "Reference",
"pages": [
"user-guide/billing/capabilities/pricing-plans",
- "user-guide/billing/capabilities/credits"
+ "user-guide/billing/capabilities/credits",
+ "user-guide/billing/capabilities/usage-limits"
]
},
{
diff --git a/packages/twenty-docs/user-guide/billing/capabilities/usage-limits.mdx b/packages/twenty-docs/user-guide/billing/capabilities/usage-limits.mdx
new file mode 100644
index 00000000000..d709cd11430
--- /dev/null
+++ b/packages/twenty-docs/user-guide/billing/capabilities/usage-limits.mdx
@@ -0,0 +1,75 @@
+---
+title: Usage Limits
+description: Cap what your workspace, members, API keys and apps can spend.
+---
+
+Set caps on AI, workflows, logic functions and email under **Settings → Billing → Limits**. [Credits](/user-guide/billing/capabilities/credits) define how much your workspace can spend in total; a limit defines how much of that a given scope can spend, and how often it resets.
+
+Viewing and changing limits requires the **Workspace** settings permission.
+
+## What You Can Limit
+
+| Usage | Operations | Measured in | Scopes |
+|-------|------------|-------------|--------|
+| **AI** | AI Chat, AI Workflow, Web Search | Credits or operations | Workspace, member, API key, app |
+| **Workflows** | Workflow Execution | Credits or runs | Workspace, app |
+| **Logic functions** | Code Execution | Credits or runs | Workspace, app, logic function |
+| **Email** | Email Send | Credits or emails | Workspace, member |
+
+<Note>
+**All operations** caps everything the usage spends, whichever operation it came from. It is available wherever the usage can be measured in credits.
+</Note>
+
+## Meters and Periods
+
+A limit counts either **credits**, the same unit as your balance, or **operations**, a raw count of messages, searches, runs or emails. Cap credits to control cost, operations to control volume.
+
+| Period | Resets |
+|--------|--------|
+| **Day**, **Week**, **Month** | At the start of the next calendar period |
+| **Billing period** | With your subscription, at the same time your credits renew |
+
+**Billing period** is only available when the workspace has a subscription to follow.
+
+## Plan Requirements
+
+| What you cap | Plan |
+|--------------|------|
+| The whole **workspace** | Any plan |
+| A **member**, **API key**, **app** or **logic function** | Organization (Cloud or Self-Hosted) |
+
+Without the [Organization plan](/user-guide/billing/capabilities/pricing-plans), those scopes cannot be selected, and a limit already stored for one shows as **Deactivated** and is not enforced. It applies again as soon as the workspace is on a plan that covers it, with nothing to recreate.
+
+## Create a Limit
+
+1. Go to **Settings → Billing → Limits**
+2. Click **New limit**
+3. Under **Scope**, pick the usage and who it applies to
+4. Under **Limit**, enter the amount, choose credits or operations, and pick the period
+5. Click **Save**
+
+The limit applies immediately and counts the usage already recorded in the current period.
+
+### Edit or Delete a Limit
+
+Click a limit row to change its amount, period or scope. **Delete limit** sits in the danger zone of the edit page. Deleting a limit never extends your spend: your credit allowance and the other limits still apply.
+
+## When a Limit Is Reached
+
+The work is refused rather than queued, and only in that scope. The rest of the workspace keeps running.
+
+Spending resumes on its own when the period resets. To unblock sooner, raise the limit or delete it.
+
+<Note>
+A limit is checked before an operation starts and debited once it completes, so an operation already in flight can take a counter slightly past its cap. Batched work such as a campaign send can overshoot by one batch.
+</Note>
+
+## Monitoring
+
+The **Limits** table shows what each limit has used in the current period. Overall consumption, including the breakdown by workflow and AI action, stays in **Settings → Billing**.
+
+## Related
+
+- [Credits](/user-guide/billing/capabilities/credits)
+- [Pricing Plans](/user-guide/billing/capabilities/pricing-plans)
+- [Billing FAQ](/user-guide/billing/how-tos/billing-faq)
diff --git a/packages/twenty-docs/user-guide/billing/overview.mdx b/packages/twenty-docs/user-guide/billing/overview.mdx
index 95e3bb91967..451e819879d 100644
--- a/packages/twenty-docs/user-guide/billing/overview.mdx
+++ b/packages/twenty-docs/user-guide/billing/overview.mdx
@@ -11,6 +11,9 @@ Twenty offers flexible pricing plans to fit your team's needs. Manage your subsc
<Card title="Pricing Plans" icon="tags" href="/user-guide/billing/capabilities/pricing-plans">
Learn about Twenty's pricing plans and what's included.
</Card>
+ <Card title="Usage Limits" icon="gauge" href="/user-guide/billing/capabilities/usage-limits">
+ Cap what your workspace, members, API keys and apps can spend.
+ </Card>
<Card title="FAQ" icon="circle-question" href="/user-guide/billing/how-tos/billing-faq">
Frequently asked questions about pricing and billing.
</Card>
diff --git a/packages/twenty-shared/src/constants/DocumentationPaths.ts b/packages/twenty-shared/src/constants/DocumentationPaths.ts
index 5f152ecc3f3..eed9a9fdeee 100644
--- a/packages/twenty-shared/src/constants/DocumentationPaths.ts
+++ b/packages/twenty-shared/src/constants/DocumentationPaths.ts
@@ -181,6 +181,8 @@ export const DOCUMENTATION_PATHS = {
'/user-guide/billing/capabilities/credits',
USER_GUIDE_BILLING_CAPABILITIES_PRICING_PLANS:
'/user-guide/billing/capabilities/pricing-plans',
+ USER_GUIDE_BILLING_CAPABILITIES_USAGE_LIMITS:
+ '/user-guide/billing/capabilities/usage-limits',
USER_GUIDE_BILLING_HOW_TOS_BILLING_FAQ:
'/user-guide/billing/how-tos/billing-faq',
USER_GUIDE_BILLING_OVERVIEW: '/user-guide/billing/overview',