ThunderPhone Sip Endpoints API

The sip-endpoints API from ThunderPhone — 3 operation(s) for sip-endpoints.

GitHub OpenAPI

Operations 6

GET /v1/sip-endpoints Sip endpoints list #
POST /v1/sip-endpoints Sip endpoints create #
GET /v1/sip-endpoints/{endpoint_id} Sip endpoints retrieve #
PATCH /v1/sip-endpoints/{endpoint_id} Sip endpoints partial update #
DELETE /v1/sip-endpoints/{endpoint_id} Sip endpoints delete #
POST /v1/sip-endpoints/{endpoint_id}/rotate-password Sip endpoints rotate password #

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/thunderphone-com:thunderphone-com-sip-endpoints-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

thunderphone-com-sip-endpoints-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThunderPhone Sip Endpoints API
  version: 1.0.0
  description: Programmatic access to the ThunderPhone platform — agents, phone numbers, calls, billing, webhooks, and more. See https://thunderphone.com/docs and https://thunderphone.com/developers for the reference, tutorials and migration guides.
  contact:
    name: ThunderPhone support
    url: https://thunderphone.com/docs
servers:
- url: https://api.thunderphone.com
  description: Production
tags:
- name: sip-endpoints
paths:
  /v1/sip-endpoints:
    get:
      operationId: sip_endpoints_list
      description: Retrieve sip endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      tags:
      - sip-endpoints
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SipEndpointList'
          description: ''
      summary: Sip endpoints list
      x-summary-source: derived
    post:
      operationId: sip_endpoints_create
      description: Create or run sip endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      tags:
      - sip-endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SipEndpointWriteRequest'
        required: true
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SipEndpoint'
          description: ''
      summary: Sip endpoints create
      x-summary-source: derived
  /v1/sip-endpoints/{endpoint_id}:
    get:
      operationId: sip_endpoints_retrieve
      description: Retrieve sip endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: endpoint_id
        schema:
          type: integer
        required: true
      tags:
      - sip-endpoints
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SipEndpoint'
          description: ''
      summary: Sip endpoints retrieve
      x-summary-source: derived
    patch:
      operationId: sip_endpoints_partial_update
      description: Update sip endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: endpoint_id
        schema:
          type: integer
        required: true
      tags:
      - sip-endpoints
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedSipEndpointUpdateRequest'
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SipEndpoint'
          description: ''
      summary: Sip endpoints partial update
      x-summary-source: derived
    delete:
      operationId: sip_endpoints_delete
      description: Delete sip endpoints. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: endpoint_id
        schema:
          type: integer
        required: true
      tags:
      - sip-endpoints
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '204':
          description: No response body
      summary: Sip endpoints delete
      x-summary-source: derived
  /v1/sip-endpoints/{endpoint_id}/rotate-password:
    post:
      operationId: sip_endpoints_rotate_password
      description: Create or run sip endpoints / rotate password. Parameters and returned fields are described below; organization-scoped resources use the organization associated with the authenticated credential. See https://thunderphone.com/docs for usage and access requirements.
      parameters:
      - in: path
        name: endpoint_id
        schema:
          type: integer
        required: true
      tags:
      - sip-endpoints
      security:
      - bearerAuth: []
      - bearerAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SipEndpoint'
          description: ''
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
      summary: Sip endpoints rotate password
      x-summary-source: derived
components:
  schemas:
    SipEndpointSrtpEnum:
      enum:
      - disabled
      - optional
      - required
      type: string
      description: '* `disabled` - No media encryption

        * `optional` - SRTP when the caller offers it

        * `required` - SRTP required'
    SipEndpoint:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        agent_id:
          type:
          - integer
          - 'null'
        sip_uri:
          type: string
          description: The SIP address; masked (…) with secret_address auth.
        secret_sip_uri:
          type: string
          description: 'secret_address auth only, and only on create and rotate-password: the full SIP address. It is the credential: store it like a password.'
        auth:
          allOf:
          - $ref: '#/components/schemas/SipEndpointAuthEnum'
          description: 'digest: callers authenticate with username and password (SIP digest). ip_allowlist: no password; only calls from allowed_source_cidrs over TCP or TLS are accepted. For platforms that authenticate by source IP only. Switching to digest returns a new password once. secret_address: no password; the address itself is long and random and is the credential, for providers that can only forward to an address. Its full address is in secret_sip_uri, returned once on create and on rotate-password (which gives it a new address); sip_uri shows it masked. It takes at most a set number of calls a day. A secret_address endpoint can''t switch to another auth, or another endpoint to it.


            * `digest` - SIP digest username and password

            * `ip_allowlist` - Source IP allowlist only

            * `secret_address` - Secret address only, no password'
          default: digest
        username:
          type:
          - string
          - 'null'
          description: SIP digest username; null without digest auth.
        password:
          type: string
          description: 'Only on responses that issue one: create and rotate-password with digest auth, and an update that switches auth to digest.'
        allowed_source_cidrs:
          type: array
          items:
            type: string
          description: 'Source IPv4/IPv6 CIDRs allowed to call this endpoint; with digest auth, empty allows any source. Required with ip_allowlist auth: at least one public range, IPv4 /16 or narrower, IPv6 /48 or narrower. Checked for calls over TCP or TLS only: a UDP source address can be forged, so an endpoint with an allowlist refuses UDP calls.'
        dial_in_numbers:
          type: array
          items:
            type: string
          description: 'Phone numbers a contact-center platform dials to reach this endpoint (Five9, NICE CXone, Zoom Contact Center), written exactly as the platform dials them: 6 to 15 digits with an optional leading +; spaces, dashes and parentheses are removed. At most 5. Only with ip_allowlist auth. Each must not be in use on another SIP endpoint or as a ThunderPhone phone number. Calls to them need the same allowed source as calls to sip_uri.'
          default: []
        srtp:
          allOf:
          - $ref: '#/components/schemas/SipEndpointSrtpEnum'
          description: 'Media encryption: disabled (default), optional (SRTP when the caller offers it) or required (calls without SRTP are refused). optional and required need ip_allowlist auth. Use with TLS.


            * `disabled` - No media encryption

            * `optional` - SRTP when the caller offers it

            * `required` - SRTP required'
          default: disabled
        call_direction:
          allOf:
          - $ref: '#/components/schemas/SipCallDirectionEnum'
          description: 'outbound when a dialer calls people and bridges them to this address: its calls are handled as outbound calls (voicemail, phone menus, call screeners, hold, the agent''s outbound speak order, do-not-call requests). Each call''s callee is read from the X-Original-To or Diversion header; a call without one is handled as inbound. Default inbound. Our calling-hours, opt-out list and outbound-permission checks run only on calls ThunderPhone places; on a call your dialer places, those stay your dialer''s job. The call''s direction in call history stays inbound, with marked_outbound true.


            * `inbound` - Inbound

            * `outbound` - Outbound (your dialer)'
          default: inbound
        call_pickup:
          allOf:
          - $ref: '#/components/schemas/SipCallPickupEnum'
          description: 'Applies to the calls this endpoint handles as outbound (call_direction outbound). answered (default): your dialer connects the call once the callee answers. may_ring: it may connect while the callee''s phone still rings; the agent then waits to hear the callee pick up (a voice, a voicemail greeting, or the ringing stopping; ringing, busy tones and steady noise don''t count) before the notice, greeting and listening start, and ends the call as no answer (end_reason outbound_no_answer) if nobody picks up within 60 seconds. Early media that is speech or music, not a ringing tone, counts as a pickup.


            * `answered` - After the callee answers

            * `may_ring` - May connect while ringing'
          default: answered
        status:
          $ref: '#/components/schemas/SipEndpointStatusEnum'
        created_at:
          type: string
          format: date-time
      required:
      - agent_id
      - allowed_source_cidrs
      - created_at
      - id
      - name
      - sip_uri
      - status
      - username
    PatchedSipEndpointUpdateRequest:
      type: object
      properties:
        agent_id:
          type: integer
        name:
          type: string
          maxLength: 120
        auth:
          allOf:
          - $ref: '#/components/schemas/SipEndpointAuthEnum'
          description: 'digest: callers authenticate with username and password (SIP digest). ip_allowlist: no password; only calls from allowed_source_cidrs over TCP or TLS are accepted. For platforms that authenticate by source IP only. Switching to digest returns a new password once. secret_address: no password; the address itself is long and random and is the credential, for providers that can only forward to an address. Its full address is in secret_sip_uri, returned once on create and on rotate-password (which gives it a new address); sip_uri shows it masked. It takes at most a set number of calls a day. A secret_address endpoint can''t switch to another auth, or another endpoint to it.


            * `digest` - SIP digest username and password

            * `ip_allowlist` - Source IP allowlist only

            * `secret_address` - Secret address only, no password'
        allowed_source_cidrs:
          type: array
          items:
            type: string
            minLength: 1
          description: 'Source IPv4/IPv6 CIDRs allowed to call this endpoint; with digest auth, empty allows any source. Required with ip_allowlist auth: at least one public range, IPv4 /16 or narrower, IPv6 /48 or narrower. Checked for calls over TCP or TLS only: a UDP source address can be forged, so an endpoint with an allowlist refuses UDP calls.'
        dial_in_numbers:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 32
          description: 'Phone numbers a contact-center platform dials to reach this endpoint (Five9, NICE CXone, Zoom Contact Center), written exactly as the platform dials them: 6 to 15 digits with an optional leading +; spaces, dashes and parentheses are removed. At most 5. Only with ip_allowlist auth. Each must not be in use on another SIP endpoint or as a ThunderPhone phone number. Calls to them need the same allowed source as calls to sip_uri.'
        srtp:
          allOf:
          - $ref: '#/components/schemas/SipEndpointSrtpEnum'
          description: 'Media encryption: disabled (default), optional (SRTP when the caller offers it) or required (calls without SRTP are refused). optional and required need ip_allowlist auth. Use with TLS.


            * `disabled` - No media encryption

            * `optional` - SRTP when the caller offers it

            * `required` - SRTP required'
        call_direction:
          allOf:
          - $ref: '#/components/schemas/SipCallDirectionEnum'
          description: 'outbound when a dialer calls people and bridges them to this address: its calls are handled as outbound calls (voicemail, phone menus, call screeners, hold, the agent''s outbound speak order, do-not-call requests). Each call''s callee is read from the X-Original-To or Diversion header; a call without one is handled as inbound. Default inbound. Our calling-hours, opt-out list and outbound-permission checks run only on calls ThunderPhone places; on a call your dialer places, those stay your dialer''s job. The call''s direction in call history stays inbound, with marked_outbound true.


            * `inbound` - Inbound

            * `outbound` - Outbound (your dialer)'
        call_pickup:
          allOf:
          - $ref: '#/components/schemas/SipCallPickupEnum'
          description: 'Applies to the calls this endpoint handles as outbound (call_direction outbound). answered (default): your dialer connects the call once the callee answers. may_ring: it may connect while the callee''s phone still rings; the agent then waits to hear the callee pick up (a voice, a voicemail greeting, or the ringing stopping; ringing, busy tones and steady noise don''t count) before the notice, greeting and listening start, and ends the call as no answer (end_reason outbound_no_answer) if nobody picks up within 60 seconds. Early media that is speech or music, not a ringing tone, counts as a pickup.


            * `answered` - After the callee answers

            * `may_ring` - May connect while ringing'
        status:
          $ref: '#/components/schemas/SipEndpointUpdateStatusEnum'
    SipEndpointWriteRequest:
      type: object
      properties:
        agent_id:
          type: integer
        name:
          type: string
          default: ''
          maxLength: 120
        auth:
          allOf:
          - $ref: '#/components/schemas/SipEndpointAuthEnum'
          default: digest
          description: 'digest: callers authenticate with username and password (SIP digest). ip_allowlist: no password; only calls from allowed_source_cidrs over TCP or TLS are accepted. For platforms that authenticate by source IP only. Switching to digest returns a new password once. secret_address: no password; the address itself is long and random and is the credential, for providers that can only forward to an address. Its full address is in secret_sip_uri, returned once on create and on rotate-password (which gives it a new address); sip_uri shows it masked. It takes at most a set number of calls a day. A secret_address endpoint can''t switch to another auth, or another endpoint to it.


            * `digest` - SIP digest username and password

            * `ip_allowlist` - Source IP allowlist only

            * `secret_address` - Secret address only, no password'
        allowed_source_cidrs:
          type: array
          items:
            type: string
            minLength: 1
          description: 'Source IPv4/IPv6 CIDRs allowed to call this endpoint; with digest auth, empty allows any source. Required with ip_allowlist auth: at least one public range, IPv4 /16 or narrower, IPv6 /48 or narrower. Checked for calls over TCP or TLS only: a UDP source address can be forged, so an endpoint with an allowlist refuses UDP calls.'
        dial_in_numbers:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 32
          description: 'Phone numbers a contact-center platform dials to reach this endpoint (Five9, NICE CXone, Zoom Contact Center), written exactly as the platform dials them: 6 to 15 digits with an optional leading +; spaces, dashes and parentheses are removed. At most 5. Only with ip_allowlist auth. Each must not be in use on another SIP endpoint or as a ThunderPhone phone number. Calls to them need the same allowed source as calls to sip_uri.'
        srtp:
          allOf:
          - $ref: '#/components/schemas/SipEndpointSrtpEnum'
          default: disabled
          description: 'Media encryption: disabled (default), optional (SRTP when the caller offers it) or required (calls without SRTP are refused). optional and required need ip_allowlist auth. Use with TLS.


            * `disabled` - No media encryption

            * `optional` - SRTP when the caller offers it

            * `required` - SRTP required'
        call_direction:
          allOf:
          - $ref: '#/components/schemas/SipCallDirectionEnum'
          default: inbound
          description: 'outbound when a dialer calls people and bridges them to this address: its calls are handled as outbound calls (voicemail, phone menus, call screeners, hold, the agent''s outbound speak order, do-not-call requests). Each call''s callee is read from the X-Original-To or Diversion header; a call without one is handled as inbound. Default inbound. Our calling-hours, opt-out list and outbound-permission checks run only on calls ThunderPhone places; on a call your dialer places, those stay your dialer''s job. The call''s direction in call history stays inbound, with marked_outbound true.


            * `inbound` - Inbound

            * `outbound` - Outbound (your dialer)'
        call_pickup:
          allOf:
          - $ref: '#/components/schemas/SipCallPickupEnum'
          default: answered
          description: 'Applies to the calls this endpoint handles as outbound (call_direction outbound). answered (default): your dialer connects the call once the callee answers. may_ring: it may connect while the callee''s phone still rings; the agent then waits to hear the callee pick up (a voice, a voicemail greeting, or the ringing stopping; ringing, busy tones and steady noise don''t count) before the notice, greeting and listening start, and ends the call as no answer (end_reason outbound_no_answer) if nobody picks up within 60 seconds. Early media that is speech or music, not a ringing tone, counts as a pickup.


            * `answered` - After the callee answers

            * `may_ring` - May connect while ringing'
      required:
      - agent_id
    SipCallPickupEnum:
      enum:
      - answered
      - may_ring
      type: string
      description: '* `answered` - After the callee answers

        * `may_ring` - May connect while ringing'
    SipEndpointAuthEnum:
      enum:
      - digest
      - ip_allowlist
      - secret_address
      type: string
      description: '* `digest` - SIP digest username and password

        * `ip_allowlist` - Source IP allowlist only

        * `secret_address` - Secret address only, no password'
    SipCallDirectionEnum:
      enum:
      - inbound
      - outbound
      type: string
      description: '* `inbound` - Inbound

        * `outbound` - Outbound (your dialer)'
    SipEndpointStatusEnum:
      enum:
      - provisioning
      - active
      - disabled
      type: string
      description: '* `provisioning` - provisioning

        * `active` - active

        * `disabled` - disabled'
    SipEndpointUpdateStatusEnum:
      enum:
      - active
      - disabled
      type: string
      description: '* `active` - active

        * `disabled` - disabled'
    SipEndpointList:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/SipEndpoint'
      required:
      - results
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sk_live_…
      description: 'Organization API key. Send Authorization: Bearer sk_live_…; create a key in the dashboard.'
    humanToken:
      type: apiKey
      in: header
      name: Authorization
      description: 'Human session token: Authorization: Token <session-token>. Organization API keys are rejected by key-management and account-control operations.'
x-mcp-server: https://api.thunderphone.com/v1/mcp