Twilio SourceIpMappings API

The SourceIpMappings API from Twilio — 2 operation(s) for sourceipmappings.

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1/SourceIpMappings Map an IP record to a SIP domain · Create source ip mapping #
Ask an LLM
“How do I tie traffic from a known IP address to one of my SIP domains?”
“Can I route calls from an IP record straight into a specific SIP domain?”
Tell an agent
Map IP record {ip_record} to SIP domain {sip_domain}.
Create a source IP mapping sending {ip_record} traffic to domain {sip_domain}.
GET /v1/SourceIpMappings List source IP mappings · List source ip mapping #
Ask an LLM
“Which IP records are mapped to which SIP domains on my account?”
“What source IP mappings have I set up for inbound SIP traffic?”
Tell an agent
List all my source IP mappings.
Show source IP mappings, {page_size} per page.
GET /v1/SourceIpMappings/{Sid} View a source IP mapping · Fetch source ip mapping #
Ask an LLM
“Which SIP domain does a particular source IP mapping point at?”
“Can I look up one source IP mapping by its SID?”
Tell an agent
Show source IP mapping {mapping}.
Get the IP record and SIP domain for mapping {mapping}.
POST /v1/SourceIpMappings/{Sid} Point a source IP mapping at a new SIP domain · Update source ip mapping #
Ask an LLM
“Can I move an existing IP mapping over to a different SIP domain?”
“What do I change to redirect an already mapped IP to another domain?”
Tell an agent
Point source IP mapping {mapping} at SIP domain {sip_domain}.
Move existing mapping {mapping} to domain {sip_domain}.
DELETE /v1/SourceIpMappings/{Sid} Delete a source IP mapping · Delete source ip mapping #
Ask an LLM
“How do I stop an IP record from being mapped to a SIP domain?”
“Can I remove a source IP mapping I no longer need?”
Tell an agent destructive · confirm first
Delete source IP mapping {mapping}.
Remove the IP-to-domain mapping {mapping}.

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/twilio-sourceipmappings-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

twilio-sourceipmappings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Twilio - Voice Source Ip Mappings API
  description: This is the public Twilio REST API.
  termsOfService: https://www.twilio.com/legal/tos
  contact:
    name: Twilio Support
    url: https://support.twilio.com
    email: support@twilio.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.52.0
servers:
- url: https://voice.twilio.com
tags:
- name: SourceIpMappings
paths:
  /v1/SourceIpMappings:
    servers:
    - url: https://voice.twilio.com
    description: With Source IP Mappings, Twilio can recognize your SIP requests based on where they are sent from. The Request-URI no longer has to have the FQDN (Fully Qualified Domain Name) of your SIP Domain.
    x-twilio:
      defaultOutputProperties:
      - sid
      - ip_record_sid
      - sip_domain_sid
      pathType: list
    post:
      description: ''
      tags:
      - SourceIpMappings
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/voice.v1.source_ip_mapping'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateSourceIpMapping
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateSourceIpMappingRequest'
      summary: Create source ip mapping
      x-summary-source: derived
    get:
      description: ''
      tags:
      - SourceIpMappings
      parameters:
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSourceIpMappingResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListSourceIpMapping
      x-maturity:
      - GA
      summary: List source ip mapping
      x-summary-source: derived
  /v1/SourceIpMappings/{Sid}:
    servers:
    - url: https://voice.twilio.com
    description: With Source IP Mappings, Twilio can recognize your SIP requests based on where they are sent from. The Request-URI no longer has to have the FQDN (Fully Qualified Domain Name) of your SIP Domain.
    x-twilio:
      defaultOutputProperties:
      - sid
      - ip_record_sid
      - sip_domain_sid
      pathType: instance
    get:
      description: ''
      tags:
      - SourceIpMappings
      parameters:
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the IP Record resource to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^IB[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/voice.v1.source_ip_mapping'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchSourceIpMapping
      x-maturity:
      - GA
      summary: Fetch source ip mapping
      x-summary-source: derived
    post:
      description: ''
      tags:
      - SourceIpMappings
      parameters:
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the IP Record resource to update.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^IB[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/voice.v1.source_ip_mapping'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateSourceIpMapping
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateSourceIpMappingRequest'
      summary: Update source ip mapping
      x-summary-source: derived
    delete:
      description: ''
      tags:
      - SourceIpMappings
      parameters:
      - name: Sid
        in: path
        description: The Twilio-provided string that uniquely identifies the IP Record resource to delete.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^IB[0-9a-fA-F]{32}$
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteSourceIpMapping
      x-maturity:
      - GA
      summary: Delete source ip mapping
      x-summary-source: derived
components:
  schemas:
    UpdateSourceIpMappingRequest:
      type: object
      required:
      - SipDomainSid
      properties:
        SipDomainSid:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^SD[0-9a-fA-F]{32}$
          description: The SID of the SIP Domain that the IP Record should be mapped to.
    voice.v1.source_ip_mapping:
      type: object
      properties:
        sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^IB[0-9a-fA-F]{32}$
          description: The unique string that we created to identify the IP Record resource.
        ip_record_sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^IL[0-9a-fA-F]{32}$
          description: The Twilio-provided string that uniquely identifies the IP Record resource to map from.
        sip_domain_sid:
          type:
          - string
          - 'null'
          minLength: 34
          maxLength: 34
          pattern: ^SD[0-9a-fA-F]{32}$
          description: The SID of the SIP Domain that the IP Record is mapped to.
        date_created:
          type:
          - string
          - 'null'
          format: date-time
          description: The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
        date_updated:
          type:
          - string
          - 'null'
          format: date-time
          description: The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
        url:
          type:
          - string
          - 'null'
          format: uri
          description: The absolute URL of the resource.
    ListSourceIpMappingResponse:
      type: object
      properties:
        source_ip_mappings:
          type: array
          items:
            $ref: '#/components/schemas/voice.v1.source_ip_mapping'
        meta:
          type: object
          properties:
            first_page_url:
              type: string
              format: uri
            next_page_url:
              type:
              - string
              - 'null'
              format: uri
            page:
              type: integer
            page_size:
              type: integer
            previous_page_url:
              type:
              - string
              - 'null'
              format: uri
            url:
              type: string
              format: uri
            key:
              type: string
    CreateSourceIpMappingRequest:
      type: object
      required:
      - IpRecordSid
      - SipDomainSid
      properties:
        IpRecordSid:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^IL[0-9a-fA-F]{32}$
          description: The Twilio-provided string that uniquely identifies the IP Record resource to map from.
        SipDomainSid:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^SD[0-9a-fA-F]{32}$
          description: The SID of the SIP Domain that the IP Record should be mapped to.
  securitySchemes:
    accountSid_authToken:
      type: http
      scheme: basic
x-maturity:
- name: GA
  description: This product is Generally Available.
- name: Beta
  description: PLEASE NOTE that this is a Beta product that is subject to change. Use it with caution.
- name: Preview
  description: PLEASE NOTE that this is a Preview product that is subject to change. Use it with caution. If you currently do not have developer preview access, please contact https://www.twilio.com/help/contact.