Skip to navigation

Limits and quotas

Every limit of the API in one place, and what happens when you reach it.

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 limitWhat it boundsHow you see it
Request rateRequests for each key and each workspace in one minute429 rate_limited with Retry-After
ConcurrencyCalls that run at the same time429 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 callCall length, silence, tool calls, transfersThe call ends with an end_reason, or a tool run ends failed or indeterminate
Size and countBodies, files, lists, fields413 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

LimitValueWhat happens at the limit
Request rateFour classes (reads, call starts, authoring writes, ingestion), each with a ceiling for each key and for each workspace in one minute. See Rate limits429 rate_limited. details has limit, scope (for example ext_read_key) and window_s. Wait Retry-After seconds
JSON body1 MiB413 payload_too_large, with details.bytes and details.limit_bytes
Multipart body32 MiB on uploadKnowledgeSource, uploadAgentKnowledgeSource, uploadCampaign and checkCampaignRecipients; 1 MiB on every other operation. The file limits under Knowledge and Campaigns are lower413 payload_too_large
Page sizelimit 1 to 200, 50 by default400 invalid_request, details.field limit
ID filters on a listAt most 100 values in total across the ID filters of one request. See Filters and limits400 invalid_request
POST /calls/search, POST /usage/queryBody at most 128 KiB; at most 1000 ID and metadata values413 payload_too_large for the body
Date rangeAt most 93 days; 30 days by default400 invalid_request
Idempotency-Key1 to 255 characters, kept for 24 hours. See Idempotency and replayAfter 24 hours Rasen forgets the key. Read the resource before you act again

Concurrency

LimitValueWhat happens at the limit
Concurrent calls of an organizationSet by the organization’s plan429 workspace_concurrency_full with details.reason organisation_total. details also has active and limit. Wait Retry-After seconds
Concurrent calls of a workspaceThe 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 own429 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_calls1 to 1,000, 1 by default. A campaign never runs more calls than the workspace shareplanCampaign answers the effective ceiling. A recipient waits for a free slot; the campaign does not fail

Calls

LimitValueWhat happens at the limit
Call lengthmax_call_duration_seconds accepts 60 to 14400, 1800 by default. A call ends after 30 minutes at most, whatever the settingThe call ends with end_reason timeout
Silenceinactivity_timeout_seconds 1 to 3600, 30 by defaultThe call ends with end_reason timeout. The agent does not prompt the caller first
Caller turnuser_turn_timeout_ms 250 to 2000A value outside the range: 400 invalid_request
Keypad inputdtmf_timeout_seconds 1 to 60, 15 by default; dtmf_digit_limit 1 to 64, 10 by defaultA value outside the range: 400 invalid_request
Transcript stream connection55 minutes for one connection of streamLiveCallTranscript or streamCallTranscriptThe stream closes. Open it again with Last-Event-ID
Open transcript streamsThe API can refuse a new stream while 8 streams of one key, or 64 of one workspace, are open429 rate_limited with Retry-After: 20
RecordingOGG Vorbis, 16 kHz, two channels: the caller on the left, the agent on the rightdownloadCallRecording returns the stored file. It never converts the audio
Share link7 days; 100 sessions; 10 sessions in one UTC clock hourThe link stops working. A new publish also makes the old link unusable. Issue a new link with setAgentShareLink or rotateAgentShareLink

Agents

LimitValueWhat happens at the limit
Agent name1 to 120 characters400 invalid_request, details.field names the field
Agent descriptionAt most 2,000 characters400 invalid_request
settings.purpose, settings.additional_contextAt most 4,000 characters each400 invalid_request
settings.goalsAt most 8 goals, each 1 to 200 characters400 invalid_request
settings.agent_nameAt most 120 characters400 invalid_request
settings.first_messageAt most 2,000 characters400 invalid_request
settings.voicemail_messageAt most 500 characters400 invalid_request
settings.extraction_fieldsAt most 32 fields. Each name at most 64 characters, description at most 500, at most 32 choices of at most 120 characters400 invalid_request
VariableKey of 1 to 64 characters (^[a-z][a-z0-9_]{0,63}$); value at most 4,096 characters; description at most 2,000400 invalid_request
Tools in a published version64 webhook and MCP tools togetherpublishAgent answers 400 invalid_request, details.field tools
Toolset size256 KiB of tool definitions in a published versionpublishAgent answers 400 invalid_request, details.field tools
Before-call toolsOne for each agent409 tool_pre_call_exists

Tools

LimitValueWhat happens at the limit
deadline_ms100 to 30000, 8000 by defaultIf 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_bytes256 to 65536, 32768 by defaultThe run is failed. Rasen never cuts a response to fit
RetriesAt most 2 attempts, only with retry_posture automatic. Rasen retries only when the first attempt failed before Rasen sent the requestRasen never sends one request twice
RedirectsNone followedA 3xx answer refuses the run with the reason outbound_destination_refused
Error answersA 4xx or 5xx answer within the size limitThe run is failed. The model does not see the body; tool call logs keep it
Webhook tool definitionAt most 64 parameters, 32 headers, a url of at most 2,048 characters400 invalid_request
Nested tool bodyAt most 5 levels and 64 values in one tool, and at most 64 fields in a groupThe tool write is refused
Tool calls in one call32 calls of webhook and MCP tools, and 8 calls of end_call and transferRasen 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 rowAfter 8 agent replies in a row that call a tool, the next reply can call only end_call or transferThe agent answers the caller in words, or ends or transfers the call
MCP discoveryAt 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 KiBdiscoverMcpTools answers state: failed, failure: invalid_request
MCP connect_timeout_ms100 to 30000, 3000 by default400 invalid_request for a value outside the range
Before-call deadline_ms500 to 10000, 3000 by default422 tool_pre_call_bounds
Before-call max_response_bytesAt most 4096, 4096 by default422 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, plivo10 seconds
exotel, smartflo, vobiz3 seconds
sip_trunk2 seconds

A before-call tool that does not answer in time does not stop the call. The agent answers without the data.

Knowledge

LimitValueWhat happens at the limit
Uploaded fileAt most 20 MiB413 payload_too_large
File types.pdf (application/pdf), .txt (text/plain), .md (text/markdown), .docx. The extension and the declared type MUST match415 unsupported_media_type, also for a .doc file
text source1 to 262,144 characters400 invalid_request
url sourceOne 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 aboveThe source ends state: failed. failure is payload_too_large for a larger page, unavailable for a slow fetch or too many redirects

Campaigns

LimitValueWhat happens at the limit
Recipient fileCSV or XLSX, at most 25 MiBuploadCampaign answers 413 payload_too_large. checkCampaignRecipients answers 200 with refusal
RowsAt most 100,000413 payload_too_large
ColumnsA phone_number or to_e164 column, and at most 64 variable columns400 invalid_request
CellAt most 500 charactersRasen cuts a longer cell in a file to 500 characters. A longer value in recipient_edits answers 400 invalid_request
Inline recipientscreateCampaign takes recipients in the JSON body, so the 1 MiB body limit applies413 payload_too_large
recipient_editsAt most 1,000 edits, at most 1 MiB400 invalid_request
PreviewcheckCampaignRecipients returns at most 200 rows; the counts cover the whole fileNone
max_attempts_per_recipient1 to 10, 1 by defaultThe recipient is exhausted
retry_backoff_ms3600000 (1 hour) by defaultA recipient waits this long before its next attempt
RedialAn 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 unknownNone
ringing_timeout_seconds10 to 30, 30 by defaultThe dial ends unanswered
Calling windowwindow_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

LimitValueWhat happens at the limit
Carrier number import1 to 50 numbers in one importPhoneNumbers request400 invalid_request
SIP number importOne number in each importSipNumber requestNone
Number regionA number that starts with +91 uses the india region; other numbers use globalNone
Carrier IP addressesAt most 16 for each inbound connection, as IPv4 addresses or IPv4 CIDR ranges400 invalid_request for more, or for an IPv6 address or a host name
enforce_carrier_ipsWorks only on a global connectionAn india connection refuses true with 400 invalid_request
india outbound trunkport 5060 and transport udp400 invalid_request for another value
SIP REGISTERNot supported. The carrier MUST send calls to the SIP address of the setupA carrier that needs registration cannot connect
TLS and SRTPNot offered on the SIP addresses of the setupUse UDP or TCP
Transfer destinations1 to 10 for each connection when transfer is on; ring_timeout_s 10 to 60, 30 by default400 invalid_request
Transfer typeBlind (cold) transfer onlyNone
Transfer attempts2 for each call; the second only after the first returned the caller to the agent. On Exotel, 1The transfer tool refuses the request, and the agent continues the call
Busy or no answerThe caller comes back to the agent. On Smartflo, the carrier takes the call and the caller does not come backNone

Webhooks

LimitValueWhat happens at the limit
EndpointsAt most 10 that are not deleted, for each workspace409 conflict, details.reason endpoint_limit_reached
Attempt timeout10 seconds for each attemptThe attempt fails. The next attempt follows the schedule below
Attempts8 in one chain. A resend starts a new chainAfter the eighth failure, the delivery is failed
Retry scheduleWaits 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 hoursNone
Automatic disableAt least 72 hours and at least 10 failed call-event attempts with no successThe endpoint moves to state: disabled_failing
Delivery history30 daysOlder deliveries are not listed and cannot be resent
Call end eventsSent only within 24 hours of the call end. Imported calls send noneNo call.completed or call.failed event for that call
Request body to your endpointAt most 1 MiBNone

Rules

  • MUST wait the Retry-After seconds after a 429, then resend the same request with the same Idempotency-Key.
  • MUST handle both answers of a full workspace on a call start: 429 workspace_concurrency_full and 503 at_capacity with details.reason workspace_limit.
  • MUST NOT create more keys to raise a workspace limit. All keys of a workspace share its rate ceilings.
  • MUST NOT retry a 413 or a 400 unchanged. 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_reason timeout at 30 minutes, whatever max_call_duration_seconds says.
  • MUST set deadline_ms of 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

CodeCauseFix
rate_limitedThe 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_fullThe 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_capacityWith 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_unallottedThe workspace share of concurrent calls is 0.An organization Owner or Admin sets the share. Do not retry.
payload_too_largeA 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_typeA 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_requestA field, list or setting is outside its range. details.field names it.Send a value inside the range on this page.
tool_pre_call_boundsA 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_existsThe agent already has a before-call tool.Replace or delete that tool.