{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/functions/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["partial"]},"type":"markdown"},"seo":{"title":"Developer Documentation","siteUrl":"https://developers.sinch.com","llmstxt":{"title":"Sinch Developer Documentation","description":"LLMs.txt containing a map of all the documentation files for Sinch.","sections":[{"title":"SMS API","description":"The SMS API allows you to send and receive SMS messages with a few easy steps. You can also send bulk SMS messages to multiple customers using the Sinch SMS service.","includeFiles":["docs/sms/**/*.md","docs/sms/**/*.yaml"],"excludeFiles":["docs/sms/index.md"]},{"title":"Numbers API","description":"The Numbers API enables you to search for, view, and activate numbers. It's considered a precursor to other APIs in the Sinch product family. The numbers API can be used in tandem with any of our APIs that perform messaging or calling.","includeFiles":["docs/numbers/**/*.md","docs/numbers/**/*.yaml"],"excludeFiles":["docs/numbers/index.md"]},{"title":"Conversation API","description":"Send and receive messages globally on many popular channels with ease and confidence when using Sinch's Conversation API. Conversation API is the preferred API for sending mobile messages on SMS and other social channels with Sinch. It is a simple API with unified error messages, consistent request payloads, and common webhook payloads that are channel-agnostic.","includeFiles":["docs/conversation/**/*.md","docs/conversation/**/*.yaml"],"excludeFiles":["docs/conversation/index.md"]},{"title":"Voice API","description":"The Voice API works as a big telephony switch. The Voice API handles incoming phone calls (also known as incoming call “legs”), sets up outgoing phone calls (or outgoing call “legs”), and bridges the two. The incoming call leg may come in over a data connection (from a smartphone or web application using the Sinch SDKs) or through a local phone number (from the PSTN network). Similarly, the outgoing call leg can be over data (to another smartphone or web application using the Sinch SDKs) or the PSTN network.","includeFiles":["docs/voice/**/*.md","docs/voice/**/*.yaml"],"excludeFiles":["docs/voice/index.md"]},{"title":"Verification API","description":"The Verification API is a platform for phone number verification. It consists of the API and different software development kits (the Sinch SDKs) that you integrate with your smartphone or web application and cloud based back-end services. Together they enable SMS, Flashcall, Phone Call and Data verification in your application.","includeFiles":["docs/verification/**/*.md","docs/verification/**/*.yaml"],"excludeFiles":["docs/verification/index.md"]},{"title":"Provisioning API","description":"Provisioning API allows you to programmatically set up your senders, accounts and templates on your favorite messaging platforms on the Conversation API. For now, you can create your first WhatsApp channel through Meta's Embedded sign up, you can configure your first SMS App and configure your webhooks. As development continues, we will be adding the most commonly used channels.","includeFiles":["docs/provisioning-api/**/*.md","docs/provisioning-api/**/*.json"],"excludeFiles":["docs/provisioning-api/index.md"]},{"title":"Elastic SIP Trunking API","description":"With Elastic SIP Trunking you can create and manage your SIP trunks and phone numbers programmatically.","includeFiles":["docs/est/**/*.md","docs/est/**/*.yaml"],"excludeFiles":["docs/est/index.md"]},{"title":"Fax API","description":"Send and receive HIPAA compliant faxes on our modern fax platform using our developer-friendly API.","includeFiles":["docs/fax/**/*.md","docs/fax/**/*.yaml"],"excludeFiles":["docs/fax/index.md"]},{"title":"In-app Voice and Video SDK","description":"The In-app Voice and Video SDK enables you to add voice and video calling capabilities directly into your mobile or web application using the Sinch SDKs.","includeFiles":["docs/in-app-calling/**/*.md"],"excludeFiles":["docs/in-app-calling/index.md"]}],"hide":false,"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"limits-and-constraints","__idx":0},"children":["Limits and Constraints"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"function-deployment","__idx":1},"children":["Function Deployment"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Limit"},"children":["Limit"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Notes"},"children":["Notes"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Max source package size (uncompressed)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["25 MB"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Enforced at upload time"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Max files in source package"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["500"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Enforced at upload time"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Build timeout"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["10 minutes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Build is polled at 5-second intervals"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Supported runtimes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["node"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["csharp"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"runtime-execution","__idx":2},"children":["Runtime Execution"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Limit"},"children":["Limit"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Notes"},"children":["Notes"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Execution timeout"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No hard limit enforced"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Subject to change"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Memory allocation"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1 Gi"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Per function, subject to change"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Security restrictions (production only):"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Outbound HTTP requests must use HTTPS. Plain HTTP to external hosts is blocked."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Direct IP addresses are blocked (prevents access to cloud metadata endpoints)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Internal service DNS names are blocked."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Localhost traffic is allowed for internal cache/secrets communication only."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cache","__idx":3},"children":["Cache"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Limit"},"children":["Limit"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Notes"},"children":["Notes"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Default TTL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["3600 seconds (1 hour)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Applied when no TTL is passed to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cache.set()"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Minimum TTL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No enforced minimum"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Maximum TTL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No enforced maximum"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Subject to change"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Key size"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No enforced limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Subject to change"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Value size"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No enforced limit"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Values are JSON-serialized before storage"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"menu-builder","__idx":4},"children":["Menu Builder"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Limit"},"children":["Limit"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Source"},"children":["Source"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["timeout"]}," (milliseconds)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1000-30000"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Enforced in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MenuBuilder.timeout()"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["maxDigits"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1-20"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Enforced in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MenuBuilder.maxDigits()"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["repeats"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["0-5"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Enforced in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MenuBuilder.repeats()"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Default timeout"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["8000 ms"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Applied when not explicitly set"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Default repeats"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Applied when not explicitly set"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Default maxDigits"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Applied when not explicitly set"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["These limits are validated at build time and throw immediately if violated."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"webhooks-tunnel","__idx":5},"children":["Webhooks (Tunnel)"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Limit"},"children":["Limit"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Notes"},"children":["Notes"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Inbound request forwarding timeout"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["30 seconds"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Per-request; returns HTTP 504 on timeout"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tunnel idle timeout"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["15 minutes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Idle tunnels are cleaned up automatically"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tunnel connection timeout"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["60 minutes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Maximum tunnel session duration"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The tunnel gateway disconnects after 15 minutes of inactivity regardless of the overall session timeout."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"api-rate-limits","__idx":6},"children":["API Rate Limits"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Rate limits are applied per project using a sliding window. They can be overridden on a per-project basis by platform operators."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Endpoint group"},"children":["Endpoint group"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Default limit"},"children":["Default limit"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Window"},"children":["Window"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Function CRUD"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["100 requests"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["60 seconds"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Deployments"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["10 requests"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["60 seconds"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Configuration reads"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["200 requests"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["60 seconds"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Secret value reads"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["10 requests"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["60 seconds"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Log streaming (concurrent connections)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["5 concurrent"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Operations endpoints"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["20 requests"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["60 seconds"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All limits are subject to change."]}]},"headings":[{"value":"Limits and Constraints","id":"limits-and-constraints","depth":1},{"value":"Function Deployment","id":"function-deployment","depth":2},{"value":"Runtime Execution","id":"runtime-execution","depth":2},{"value":"Cache","id":"cache","depth":2},{"value":"Menu Builder","id":"menu-builder","depth":2},{"value":"Webhooks (Tunnel)","id":"webhooks-tunnel","depth":2},{"value":"API Rate Limits","id":"api-rate-limits","depth":2}],"frontmatter":{"seo":{"title":""}},"lastModified":"2026-02-22T19:51:31.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/functions/reference/limits","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}