Summary
This page lists the limits of the API by area, and says how each limit shows itself when you reach it. It covers request rates, concurrent calls, the runtime limits of a call, and size and count limits. It does not explain rate-limit headers or the error envelope; see Rate limits and Errors.
Facts
Rasen has four kinds of limit. Each kind shows itself in its own way:
| Kind of limit | What it bounds | How you see it |
|---|---|---|
| Request rate | Requests for each key and each workspace in one minute | 429 rate_limited with Retry-After |
| Concurrency | Calls that run at the same time | 429 workspace_concurrency_full, or 503 at_capacity with details.reason workspace_limit, both with Retry-After. 403 workspace_concurrency_unallotted when the workspace share is 0 |
| Runtime limit of a call | Call length, silence, tool calls, transfers | The call ends with an end_reason, or a tool run ends failed or indeterminate |
| Size and count | Bodies, files, lists, fields | 413 payload_too_large, 400 invalid_request with details.field, or a source or discovery with state: failed |
A request that a limit refuses has no effect. Values in the tables are inclusive.
Requests
| Limit | Value | What happens at the limit |
|---|---|---|
| Request rate | Four classes (reads, call starts, authoring writes, ingestion), each with a ceiling for each key and for each workspace in one minute. See Rate limits | 429 rate_limited. details has limit, scope (for example ext_read_key) and window_s. Wait Retry-After seconds |
| JSON body | 1 MiB | 413 payload_too_large, with details.bytes and details.limit_bytes |
| Multipart body | 32 MiB on uploadKnowledgeSource, uploadAgentKnowledgeSource, uploadCampaign and checkCampaignRecipients; 1 MiB on every other operation. The file limits under Knowledge and Campaigns are lower | 413 payload_too_large |
| Page size | limit 1 to 200, 50 by default | 400 invalid_request, details.field limit |
| ID filters on a list | At most 100 values in total across the ID filters of one request. See Filters and limits | 400 invalid_request |
POST /calls/search, POST /usage/query | Body at most 128 KiB; at most 1000 ID and metadata values | 413 payload_too_large for the body |
| Date range | At most 93 days; 30 days by default | 400 invalid_request |
Idempotency-Key | 1 to 255 characters, kept for 24 hours. See Idempotency and replay | After 24 hours Rasen forgets the key. Read the resource before you act again |
Concurrency
| Limit | Value | What happens at the limit |
|---|---|---|
| Concurrent calls of an organization | Set by the organization’s plan | 429 workspace_concurrency_full with details.reason organisation_total. details also has active and limit. Wait Retry-After seconds |
| Concurrent calls of a workspace | The share of the organization total that an organization Owner or Admin allots to the workspace. A workspace with no share has a limit of its own | 429 workspace_concurrency_full with details.reason workspace_share when the share is full. 503 at_capacity with details.reason workspace_limit when the workspace limit is full; details has active and limit. 403 workspace_concurrency_unallotted when the share is 0 |
Campaign max_concurrent_calls | 1 to 1,000, 1 by default. A campaign never runs more calls than the workspace share | planCampaign answers the effective ceiling. A recipient waits for a free slot; the campaign does not fail |
Calls
| Limit | Value | What happens at the limit |
|---|---|---|
| Call length | max_call_duration_seconds accepts 60 to 14400, 1800 by default. A call ends after 30 minutes at most, whatever the setting | The call ends with end_reason timeout |
| Silence | inactivity_timeout_seconds 1 to 3600, 30 by default | The call ends with end_reason timeout. The agent does not prompt the caller first |
| Caller turn | user_turn_timeout_ms 250 to 2000 | A value outside the range: 400 invalid_request |
| Keypad input | dtmf_timeout_seconds 1 to 60, 15 by default; dtmf_digit_limit 1 to 64, 10 by default | A value outside the range: 400 invalid_request |
| Transcript stream connection | 55 minutes for one connection of streamLiveCallTranscript or streamCallTranscript | The stream closes. Open it again with Last-Event-ID |
| Open transcript streams | The API can refuse a new stream while 8 streams of one key, or 64 of one workspace, are open | 429 rate_limited with Retry-After: 20 |
| Recording | OGG Vorbis, 16 kHz, two channels: the caller on the left, the agent on the right | downloadCallRecording returns the stored file. It never converts the audio |
| Share link | 7 days; 100 sessions; 10 sessions in one UTC clock hour | The link stops working. A new publish also makes the old link unusable. Issue a new link with setAgentShareLink or rotateAgentShareLink |
Agents
| Limit | Value | What happens at the limit |
|---|---|---|
Agent name | 1 to 120 characters | 400 invalid_request, details.field names the field |
Agent description | At most 2,000 characters | 400 invalid_request |
settings.purpose, settings.additional_context | At most 4,000 characters each | 400 invalid_request |
settings.goals | At most 8 goals, each 1 to 200 characters | 400 invalid_request |
settings.agent_name | At most 120 characters | 400 invalid_request |
settings.first_message | At most 2,000 characters | 400 invalid_request |
settings.voicemail_message | At most 500 characters | 400 invalid_request |
settings.extraction_fields | At most 32 fields. Each name at most 64 characters, description at most 500, at most 32 choices of at most 120 characters | 400 invalid_request |
| Variable | Key of 1 to 64 characters (^[a-z][a-z0-9_]{0,63}$); value at most 4,096 characters; description at most 2,000 | 400 invalid_request |
| Tools in a published version | 64 webhook and MCP tools together | publishAgent answers 400 invalid_request, details.field tools |
| Toolset size | 256 KiB of tool definitions in a published version | publishAgent answers 400 invalid_request, details.field tools |
| Before-call tools | One for each agent | 409 tool_pre_call_exists |
Tools
| Limit | Value | What happens at the limit |
|---|---|---|
deadline_ms | 100 to 30000, 8000 by default | If Rasen sent the request, the run is indeterminate and Rasen never retries it. If Rasen did not send it, the run is failed |
max_response_bytes | 256 to 65536, 32768 by default | The run is failed. Rasen never cuts a response to fit |
| Retries | At most 2 attempts, only with retry_posture automatic. Rasen retries only when the first attempt failed before Rasen sent the request | Rasen never sends one request twice |
| Redirects | None followed | A 3xx answer refuses the run with the reason outbound_destination_refused |
| Error answers | A 4xx or 5xx answer within the size limit | The run is failed. The model does not see the body; tool call logs keep it |
| Webhook tool definition | At most 64 parameters, 32 headers, a url of at most 2,048 characters | 400 invalid_request |
| Nested tool body | At most 5 levels and 64 values in one tool, and at most 64 fields in a group | The tool write is refused |
| Tool calls in one call | 32 calls of webhook and MCP tools, and 8 calls of end_call and transfer | Rasen refuses further calls of that group in the call and sends nothing. The agent can still end or transfer the call |
| Tool calls in a row | After 8 agent replies in a row that call a tool, the next reply can call only end_call or transfer | The agent answers the caller in words, or ends or transfers the call |
| MCP discovery | At most 64 tools for each server. Each tool schema is at most 64 KiB, with at most 64 parameters. The whole result is at most 64 KiB | discoverMcpTools answers state: failed, failure: invalid_request |
MCP connect_timeout_ms | 100 to 30000, 3000 by default | 400 invalid_request for a value outside the range |
Before-call deadline_ms | 500 to 10000, 3000 by default | 422 tool_pre_call_bounds |
Before-call max_response_bytes | At most 4096, 4096 by default | 422 tool_pre_call_bounds |
A before-call tool also has a cap for each carrier. Rasen uses the lower of deadline_ms and this cap:
Carrier (provider) | Before-call deadline cap |
|---|---|
twilio, plivo | 10 seconds |
exotel, smartflo, vobiz | 3 seconds |
sip_trunk | 2 seconds |
A before-call tool that does not answer in time does not stop the call. The agent answers without the data.
Knowledge
| Limit | Value | What happens at the limit |
|---|---|---|
| Uploaded file | At most 20 MiB | 413 payload_too_large |
| File types | .pdf (application/pdf), .txt (text/plain), .md (text/markdown), .docx. The extension and the declared type MUST match | 415 unsupported_media_type, also for a .doc file |
text source | 1 to 262,144 characters | 400 invalid_request |
url source | One HTTPS page, not a crawl. At most 10 MiB, fetched in 15 seconds, with at most 3 redirects. The page can be HTML or one of the file types above | The source ends state: failed. failure is payload_too_large for a larger page, unavailable for a slow fetch or too many redirects |
Campaigns
| Limit | Value | What happens at the limit |
|---|---|---|
| Recipient file | CSV or XLSX, at most 25 MiB | uploadCampaign answers 413 payload_too_large. checkCampaignRecipients answers 200 with refusal |
| Rows | At most 100,000 | 413 payload_too_large |
| Columns | A phone_number or to_e164 column, and at most 64 variable columns | 400 invalid_request |
| Cell | At most 500 characters | Rasen cuts a longer cell in a file to 500 characters. A longer value in recipient_edits answers 400 invalid_request |
| Inline recipients | createCampaign takes recipients in the JSON body, so the 1 MiB body limit applies | 413 payload_too_large |
recipient_edits | At most 1,000 edits, at most 1 MiB | 400 invalid_request |
| Preview | checkCampaignRecipients returns at most 200 rows; the counts cover the whole file | None |
max_attempts_per_recipient | 1 to 10, 1 by default | The recipient is exhausted |
retry_backoff_ms | 3600000 (1 hour) by default | A recipient waits this long before its next attempt |
| Redial | An answered or voicemail outcome marks the recipient reached. Rasen dials again after other outcomes while attempts remain. Rasen never dials again on its own after a dial whose outcome is unknown | None |
ringing_timeout_seconds | 10 to 30, 30 by default | The dial ends unanswered |
| Calling window | window_start_at and window_end_at; a daily window with daily_opens_minute and daily_closes_minute (0 to 1440) in dialing_time_zone (an IANA name, UTC by default) | Outside the daily window, recipients wait. After window_end_at, the campaign dials no one |
Telephony and SIP
| Limit | Value | What happens at the limit |
|---|---|---|
| Carrier number import | 1 to 50 numbers in one importPhoneNumbers request | 400 invalid_request |
| SIP number import | One number in each importSipNumber request | None |
| Number region | A number that starts with +91 uses the india region; other numbers use global | None |
| Carrier IP addresses | At most 16 for each inbound connection, as IPv4 addresses or IPv4 CIDR ranges | 400 invalid_request for more, or for an IPv6 address or a host name |
enforce_carrier_ips | Works only on a global connection | An india connection refuses true with 400 invalid_request |
india outbound trunk | port 5060 and transport udp | 400 invalid_request for another value |
| SIP REGISTER | Not supported. The carrier MUST send calls to the SIP address of the setup | A carrier that needs registration cannot connect |
| TLS and SRTP | Not offered on the SIP addresses of the setup | Use UDP or TCP |
| Transfer destinations | 1 to 10 for each connection when transfer is on; ring_timeout_s 10 to 60, 30 by default | 400 invalid_request |
| Transfer type | Blind (cold) transfer only | None |
| Transfer attempts | 2 for each call; the second only after the first returned the caller to the agent. On Exotel, 1 | The transfer tool refuses the request, and the agent continues the call |
| Busy or no answer | The caller comes back to the agent. On Smartflo, the carrier takes the call and the caller does not come back | None |
Webhooks
| Limit | Value | What happens at the limit |
|---|---|---|
| Endpoints | At most 10 that are not deleted, for each workspace | 409 conflict, details.reason endpoint_limit_reached |
| Attempt timeout | 10 seconds for each attempt | The attempt fails. The next attempt follows the schedule below |
| Attempts | 8 in one chain. A resend starts a new chain | After the eighth failure, the delivery is failed |
| Retry schedule | Waits of 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours and 10 hours. Each wait has ±10% jitter. The chain lasts about 27.6 hours | None |
| Automatic disable | At least 72 hours and at least 10 failed call-event attempts with no success | The endpoint moves to state: disabled_failing |
| Delivery history | 30 days | Older deliveries are not listed and cannot be resent |
| Call end events | Sent only within 24 hours of the call end. Imported calls send none | No call.completed or call.failed event for that call |
| Request body to your endpoint | At most 1 MiB | None |
Rules
- MUST wait the
Retry-Afterseconds after a429, then resend the same request with the sameIdempotency-Key. - MUST handle both answers of a full workspace on a call start:
429 workspace_concurrency_fulland503 at_capacitywithdetails.reasonworkspace_limit. - MUST NOT create more keys to raise a workspace limit. All keys of a workspace share its rate ceilings.
- MUST NOT retry a
413or a400unchanged. Make the body, the file or the field smaller, then send a new request. - MUST NOT plan a call longer than 30 minutes. The call ends with
end_reasontimeoutat 30 minutes, whatevermax_call_duration_secondssays. - MUST set
deadline_msof a before-call tool at or below the cap of the carrier. A longer deadline is cut to the cap. - MUST answer a webhook request within 10 seconds. Do the slow work after you answer.
- To change the share of concurrent calls of a workspace, an organization Owner or Admin sets it in organization settings.
Errors
| Code | Cause | Fix |
|---|---|---|
rate_limited | The request rate of the key or the workspace is full, or too many transcript streams are open. | Wait Retry-After seconds, then send the same request. |
workspace_concurrency_full | The workspace share of concurrent calls, or the organization total, is full. | Wait Retry-After seconds, then send the same request with the same Idempotency-Key. |
at_capacity | With details.reason workspace_limit: the workspace runs as many calls as its own limit allows. With any other reason: the platform has no free capacity. | Wait Retry-After seconds, then send the identical request with the same Idempotency-Key. |
workspace_concurrency_unallotted | The workspace share of concurrent calls is 0. | An organization Owner or Admin sets the share. Do not retry. |
payload_too_large | A body, an upload, a file or a row count is over its limit. | Make it smaller. Split a recipient list into several campaigns. |
unsupported_media_type | A knowledge upload is not PDF, plain text, Markdown or DOCX, or its extension does not match its type. | Convert the file, and send the type that matches the extension. |
invalid_request | A field, list or setting is outside its range. details.field names it. | Send a value inside the range on this page. |
tool_pre_call_bounds | A before-call tool limit is outside the before-call bounds. | Send a deadline_ms from 500 to 10000 and a max_response_bytes of at most 4096. |
tool_pre_call_exists | The agent already has a before-call tool. | Replace or delete that tool. |