> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.jelliu.co/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.jelliu.co/_mcp/server.

# Retrieve plan limits

GET https://api.jelliu.co/api/billing/limits

The caps that are actually enforced for the workspace right now: plan limits plus
purchased agent add-ons (added to `maxAgents`). Creating a resource past a cap answers
403 `BILLING_ERROR` with `metadata: { limit, current, tier }`. This is the endpoint to
read before doing that work in bulk.

Values of `9999`, `99999` or `-1` mean effectively unlimited. With no active subscription
`tier` is `none` and every cap is 0, except `audioRetentionDays` (7) and `features`
(Starter's flags). The per-plan general API rate limit (Starter 120, Growth 200,
Business 300, Enterprise 600 requests/min) is not part of this response.

**Consistency.** Cached server-side for 5 minutes (30 seconds when there is no
subscription), and the response carries `Cache-Control: private, max-age=300`. Plan
changes and payment-processor events clear the server cache.

**Access**

* **Required scope:** `full`. Signed-in users need the `owner`, `admin` or `billing` role.
* **Rate limit:** Billing — 15 requests/min per workspace, shared by every `/api/billing` route. See [Rate limits](/rate-limits).
* **Plan:** Available on every plan.

Reference: https://developer.jelliu.co/api-reference/billing/get-billing-limits

## Authentication

- `Authorization` header (bearer token, required) — Workspace API key: `jl_` followed by 64 lowercase hex characters, created by the workspace owner in the dashboard (**Settings → API Keys**) and sent as `Authorization: Bearer jl_...`. The plaintext is shown once, at creation; Jelliu stores only a SHA-256 hash. A workspace can hold up to 25 active keys. | Scope | GET / HEAD | POST / PUT / PATCH / DELETE | Admin-only routes | | --- | --- | --- | --- | | `read` | Yes | No | No | | `write` | Yes | Yes | No | | `full` | Yes | Yes | Yes | Operations restricted to admins or owners reject keys without the `full` scope with `403`, and say so in their description. No key, whatever its scope, can mint or revoke API keys or rotate a webhook secret — that requires a signed-in owner session. A revoked key stops authenticating within about 10 seconds. See [Authentication](/authentication).

## Response

### 200

Effective limits.

- `data` (object, required)
  - `tier` (enum, optional) — Plan in effect. `none` means no active subscription.
    - Allowed values: `none`, `starter`, `growth`, `business`, `enterprise`
  - `maxAgents` (integer, optional) — Agent cap: plan value (2 / 5 / 12 / 9999) plus active agent add-on seats.
  - `maxConcurrentCalls` (integer, optional) — Simultaneous calls (3 / 10 / 25 / 9999).
  - `includedMinutes` (integer, optional) — Monthly voice minutes of the plan (200 / 620 / 1,400 / 99999). Not reduced during a trial.
  - `maxContacts` (integer, optional) — Contacts importable per month (500 / 2,000 / 20,000 / 999999).
  - `maxCampaigns` (integer, optional) — Campaigns (1 / 3 / 9999 / 9999).
  - `maxKnowledgeFiles` (integer, optional) — Knowledge-base files (5 / 25 / 100 / 9999).
  - `maxKnowledgeBytes` (integer, optional) — Total knowledge-base size in bytes (10 MB / 50 MB / 200 MB). -1 means unlimited.
  - `maxTeamMembers` (integer, optional) — Members plus pending invitations (5 / 10 / 20 / 20).
  - `maxConnectors` (integer, optional) — Connected apps (2 / 5 / 10). -1 means unlimited.
  - `maxMcpServersPerAgent` (integer, optional) — MCP servers assignable to one agent (1 / 3 / 10). -1 means unlimited.
  - `audioRetentionDays` (integer, optional) — Days call audio is kept (7 / 30 / 90). -1 keeps it until deleted.
  - `maxIntegrations` (integer, optional) — CRM integrations. 9999 on every plan (not a practical limit).
  - `maxPhoneNumbers` (integer, optional) — Voice phone numbers in total, including the one the plan includes (1 / 3 / 10 / 9999). WhatsApp lines do not count.
  - `includedChatMessages` (integer, optional) — Monthly AI replies on the metered text channels (1,200 / 4,000 / 9,000). -1 means unlimited.
  - `channels` (list of enum, optional) — Channels the plan includes. Empty with no subscription.
    - Allowed values: `voice`, `whatsapp`, `webchat`, `email`
  - `features` (map from string to boolean or integer, optional) — Feature flags of the plan: booleans, plus `transcriptRetentionDays` as a number (7 / 30 / 90; -1 unlimited). Every product capability is `true` on every plan. Only `voiceCloning`, `securityReview`, `onPremise` and `slaGuaranteed` are Enterprise-only.

## Errors

### 401 Unauthorized Error

No usable credential. Either the `Authorization` header is missing or is not a well-formed `Bearer jl_…` key, or the key is unknown, revoked or expired. Do not retry with the same key. See [Authentication](/authentication#401-unauthorized).

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 403 Forbidden Error

The API key lacks the `full` scope, the user's role is not `owner`, `admin` or `billing`, or the workspace is suspended.

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 429 Too Many Requests Error

Billing rate limit exceeded (15 requests per minute per workspace).

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

## Examples

### Growth plan with two agent add-on seats

**Response**

```json
{
  "data": {
    "tier": "growth",
    "maxAgents": 7,
    "maxConcurrentCalls": 10,
    "includedMinutes": 620,
    "maxContacts": 2000,
    "maxCampaigns": 3,
    "maxKnowledgeFiles": 25,
    "maxKnowledgeBytes": 52428800,
    "maxTeamMembers": 10,
    "maxConnectors": 5,
    "maxMcpServersPerAgent": 3,
    "audioRetentionDays": 30,
    "maxIntegrations": 9999,
    "maxPhoneNumbers": 3,
    "includedChatMessages": 4000,
    "channels": [
      "voice",
      "whatsapp",
      "webchat",
      "email"
    ],
    "features": {
      "abTesting": true,
      "advancedDashboard": true,
      "auditLogs": true,
      "autoSummary": true,
      "basicDashboard": true,
      "callRecording": true,
      "crmSync": true,
      "customReports": true,
      "dncDetection": true,
      "encryption": true,
      "escalationRules": true,
      "gdprErasure": true,
      "liveMonitor": true,
      "mcpGateway": true,
      "mcpToolsMidCall": true,
      "objectionHandlers": true,
      "onPremise": false,
      "outcomeDetection": true,
      "postCallAi": true,
      "reportExport": true,
      "restApi": true,
      "retryWithBackoff": true,
      "securityReview": false,
      "sentimentScore": true,
      "slaGuaranteed": false,
      "smartScheduling": true,
      "transcriptRetentionDays": 30,
      "voiceCloning": false,
      "voiceInbound": true,
      "voiceOutbound": true,
      "webhook": true,
      "whiteLabel": true
    }
  }
}
```

**SDK Code**

```python Growth plan with two agent add-on seats
import requests

url = "https://api.jelliu.co/api/billing/limits"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Growth plan with two agent add-on seats
const url = 'https://api.jelliu.co/api/billing/limits';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Growth plan with two agent add-on seats
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.jelliu.co/api/billing/limits"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Growth plan with two agent add-on seats
require 'uri'
require 'net/http'

url = URI("https://api.jelliu.co/api/billing/limits")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Growth plan with two agent add-on seats
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.jelliu.co/api/billing/limits")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Growth plan with two agent add-on seats
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.jelliu.co/api/billing/limits', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Growth plan with two agent add-on seats
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/billing/limits");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Growth plan with two agent add-on seats
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/billing/limits")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### No active subscription

**Response**

```json
{
  "data": {
    "tier": "none",
    "maxAgents": 0,
    "maxConcurrentCalls": 0,
    "includedMinutes": 0,
    "maxContacts": 0,
    "maxCampaigns": 0,
    "maxKnowledgeFiles": 0,
    "maxKnowledgeBytes": 0,
    "maxTeamMembers": 0,
    "maxConnectors": 0,
    "maxMcpServersPerAgent": 0,
    "audioRetentionDays": 7,
    "maxIntegrations": 0,
    "maxPhoneNumbers": 0,
    "includedChatMessages": 0,
    "channels": [],
    "features": {
      "abTesting": true,
      "advancedDashboard": true,
      "auditLogs": true,
      "autoSummary": true,
      "basicDashboard": true,
      "callRecording": true,
      "crmSync": true,
      "customReports": true,
      "dncDetection": true,
      "encryption": true,
      "escalationRules": true,
      "gdprErasure": true,
      "liveMonitor": true,
      "mcpGateway": true,
      "mcpToolsMidCall": true,
      "objectionHandlers": true,
      "onPremise": false,
      "outcomeDetection": true,
      "postCallAi": true,
      "reportExport": true,
      "restApi": true,
      "retryWithBackoff": true,
      "securityReview": false,
      "sentimentScore": true,
      "slaGuaranteed": false,
      "smartScheduling": true,
      "transcriptRetentionDays": 7,
      "voiceCloning": false,
      "voiceInbound": true,
      "voiceOutbound": true,
      "webhook": true,
      "whiteLabel": true
    }
  }
}
```

**SDK Code**

```python No active subscription
import requests

url = "https://api.jelliu.co/api/billing/limits"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript No active subscription
const url = 'https://api.jelliu.co/api/billing/limits';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go No active subscription
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.jelliu.co/api/billing/limits"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby No active subscription
require 'uri'
require 'net/http'

url = URI("https://api.jelliu.co/api/billing/limits")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java No active subscription
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.jelliu.co/api/billing/limits")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php No active subscription
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.jelliu.co/api/billing/limits', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp No active subscription
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/billing/limits");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift No active subscription
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/billing/limits")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```