Detailed SIP Trunking API Reference
5 min
This section documents the APIs required to configure and manage SIP Trunking with Exotel.
Use these APIs to:
- Make outbound calls to the PSTN
- Receive inbound calls on your SIP system
- Integrate SIP with Exotel Flows and Voice AI (StreamKit)
Base URL & Authentication
All APIs use HTTP Basic Authentication.
Base URLs
Region | Base URL |
|---|---|
India (Mumbai) | https://api.in.exotel.com |
Singapore | https://api.exotel.com |
All endpoints are prefixed with:
/v2/accounts/{account_sid}
Required Headers
Authorization: Basic <api_key:api_token>
Content-Type: application/json
Rate Limits
Limit Type | Value |
|---|---|
Requests per minute | 200 |
API Workflow Overview
Typical PSTN setup follows this order:
→ Create Trunk
→ Map Phone Number
→ Map ACL (Outbound) or Create Credentials(Digest Auth) for trunk(outbound)
→ Map Destination URI (Inbound)
GETTING STARTED (PSTN Setup)
This section covers the APIs required to set up SIP Trunking for standard PSTN (telephone network) connectivity.
Setup Flow:
Create Trunk → 2. Map Phone Number → 3. Map ACL (for Outbound) → 4. Map Destination URI (for Inbound)