Alianza SIP Trunk API

The SIP Trunk API from Alianza — 7 operation(s) for sip trunk.

Operations 12

GET /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/{sipTrunkId} Retrieve SIP trunk #
PUT /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/{sipTrunkId} Update SIP trunk #
DELETE /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/{sipTrunkId} Delete SIP trunk #
PATCH /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/{sipTrunkId} Update SIP trunk #
GET /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/validate Validate IP and port #
GET /v2/partition/{partitionId}/account/{accountId}/siptrunk_2 Retrieve list of SIP trunks #
POST /v2/partition/{partitionId}/account/{accountId}/siptrunk_2 Create a SIP trunk #
GET /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/{sipTrunkId}/forward Get Forward behavior for a SipTrunk #
PUT /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/{sipTrunkId}/forward Update Forward behavior for a SipTrunk #
PUT /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/{sipTrunkId}/unlock Unlock SIP trunk #
GET /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/shared-plan-lookup Retrieve list of shareable calling plans #
GET /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/{sipTrunkId}/registrationstatus Retrieve SIP trunk registration status #

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/alianza-sip-trunk-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

alianza-sip-trunk-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Alianza SIP Trunk API
  version: '2'
  description: 'Operations tagged SIP Trunk across 3 of this provider''s published API definitions: alianza-apidocs-swagger2-original.json, alianza-openapi-original.yml, alianza-sip-trunk-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.d2.alianza.com
  description: Development
- url: https://api.q2.alianza.com
  description: QA
- url: https://api.b2.alianza.com
  description: Beta
- url: https://api.alianza.com
  description: Production
tags:
- name: SIP Trunk
paths:
  /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/{sipTrunkId}:
    get:
      tags:
      - SIP Trunk
      summary: Retrieve SIP trunk
      description: Use to retrieve a SIP trunk
      operationId: retrieveSipTrunk
      parameters:
      - name: X-AUTH-TOKEN
        in: header
        required: false
        schema:
          type: string
      - name: partitionId
        in: path
        description: ID of partition
        required: true
        schema:
          type: string
      - name: accountId
        in: path
        description: ID of account
        required: true
        schema:
          type: string
      - name: sipTrunkId
        in: path
        description: SIP trunk ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          responseSchema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
          content:
            application/json:
              schema:
                originalRef: SipTrunk
                $ref: '#/components/schemas/SipTrunk'
        '400':
          description: Invalid SIP trunk ID supplied
        '404':
          description: Not found
      responsesObject:
        '200':
          description: successful operation
          responseSchema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
          schema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
        '400':
          description: Invalid SIP trunk ID supplied
        '404':
          description: Not found
    put:
      tags:
      - SIP Trunk
      summary: Update SIP trunk
      description: Use to update a SIP trunk
      operationId: updateSipTrunk
      parameters:
      - name: X-AUTH-TOKEN
        in: header
        required: false
        schema:
          type: string
      - name: partitionId
        in: path
        description: ID of partition
        required: true
        schema:
          type: string
      - name: accountId
        in: path
        description: ID of account
        required: true
        schema:
          type: string
      - name: sipTrunkId
        in: path
        description: SIP trunk ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          responseSchema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
          content:
            application/json:
              schema:
                originalRef: SipTrunk
                $ref: '#/components/schemas/SipTrunk'
        '400':
          description: Invalid SIP trunk ID or SIP trunk object supplied
        '404':
          description: Not found
      responsesObject:
        '200':
          description: successful operation
          responseSchema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
          schema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
        '400':
          description: Invalid SIP trunk ID or SIP trunk object supplied
        '404':
          description: Not found
      requestBody:
        content:
          application/json:
            schema:
              originalRef: SipTrunk
              $ref: '#/components/schemas/SipTrunk'
        description: SIP trunk object
        required: true
    delete:
      tags:
      - SIP Trunk
      summary: Delete SIP trunk
      description: Use to delete a SIP trunk
      operationId: deleteSipTrunk
      parameters:
      - name: X-AUTH-TOKEN
        in: header
        required: false
        schema:
          type: string
      - name: partitionId
        in: path
        description: ID of partition
        required: true
        schema:
          type: string
      - name: accountId
        in: path
        description: ID of account
        required: true
        schema:
          type: string
      - name: sipTrunkId
        in: path
        description: SIP trunk ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          responseSchema:
            type: string
          content:
            application/json:
              schema:
                type: string
        '400':
          description: Invalid SIP trunk ID supplied
        '404':
          description: Not found
      responsesObject:
        '200':
          description: successful operation
          responseSchema:
            type: string
          schema:
            type: string
        '400':
          description: Invalid SIP trunk ID supplied
        '404':
          description: Not found
    patch:
      tags:
      - SIP Trunk
      summary: Update SIP trunk
      description: Use to update a SIP trunk
      operationId: patchSipTrunk
      parameters:
      - name: X-AUTH-TOKEN
        in: header
        required: false
        schema:
          type: string
      - name: partitionId
        in: path
        description: ID of partition
        required: true
        schema:
          type: string
      - name: accountId
        in: path
        description: ID of account
        required: true
        schema:
          type: string
      - name: sipTrunkId
        in: path
        description: SIP trunk ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          responseSchema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
          content:
            application/json:
              schema:
                originalRef: SipTrunk
                $ref: '#/components/schemas/SipTrunk'
        '400':
          description: Invalid SIP trunk ID or SIP trunk object supplied
        '404':
          description: Not found
      responsesObject:
        '200':
          description: successful operation
          responseSchema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
          schema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
        '400':
          description: Invalid SIP trunk ID or SIP trunk object supplied
        '404':
          description: Not found
      requestBody:
        content:
          application/json:
            schema:
              originalRef: SipTrunk
              $ref: '#/components/schemas/SipTrunk'
        description: SIP trunk object
        required: true
  /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/validate:
    get:
      tags:
      - SIP Trunk
      summary: Validate IP and port
      description: Use to verify that combination of IP and port is unique
      operationId: validate
      parameters:
      - name: X-AUTH-TOKEN
        in: header
        required: false
        schema:
          type: string
      - name: partitionId
        in: path
        description: ID of partition
        required: true
        schema:
          type: string
      - name: accountId
        in: path
        description: ID of account
        required: true
        schema:
          type: string
      - name: trunkId
        in: query
        description: When the SIP Trunk is already created we need the ID to make sure we skip the trunk itself to validate IP is unique
        required: false
        schema:
          type: string
      - name: ip
        in: query
        description: The IP address to be verified
        required: true
        schema:
          type: string
      - name: port
        in: query
        description: The port number to be verified
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          responseSchema:
            type: boolean
          content:
            application/json:
              schema:
                type: boolean
      responsesObject:
        '200':
          description: successful operation
          responseSchema:
            type: boolean
          schema:
            type: boolean
  /v2/partition/{partitionId}/account/{accountId}/siptrunk_2:
    get:
      tags:
      - SIP Trunk
      summary: Retrieve list of SIP trunks
      description: Use to retrieve a list of all SIP trunks on an account
      operationId: retrieveSipTrunkList
      parameters:
      - name: X-AUTH-TOKEN
        in: header
        required: false
        schema:
          type: string
      - name: partitionId
        in: path
        description: ID of partition
        required: true
        schema:
          type: string
      - name: accountId
        in: path
        description: ID of account
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          responseSchema:
            type: array
            items:
              originalRef: SipTrunk
              $ref: '#/components/schemas/SipTrunk'
          content:
            application/json:
              schema:
                type: array
                items:
                  originalRef: SipTrunk
                  $ref: '#/components/schemas/SipTrunk'
        '400':
          description: Invalid partition or account ID supplied
        '404':
          description: List not found
      responsesObject:
        '200':
          description: successful operation
          responseSchema:
            type: array
            items:
              originalRef: SipTrunk
              $ref: '#/components/schemas/SipTrunk'
          schema:
            type: array
            items:
              originalRef: SipTrunk
              $ref: '#/components/schemas/SipTrunk'
        '400':
          description: Invalid partition or account ID supplied
        '404':
          description: List not found
    post:
      tags:
      - SIP Trunk
      summary: Create a SIP trunk
      description: Use to create a SIP trunk
      operationId: createSipTrunk
      parameters:
      - name: X-AUTH-TOKEN
        in: header
        required: false
        schema:
          type: string
      - name: partitionId
        in: path
        description: ID of partition
        required: true
        schema:
          type: string
      - name: accountId
        in: path
        description: ID of account
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          responseSchema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
          content:
            application/json:
              schema:
                originalRef: SipTrunk
                $ref: '#/components/schemas/SipTrunk'
        '400':
          description: Invalid SIP trunk object supplied
        '404':
          description: Partition or account not found
      responsesObject:
        '200':
          description: successful operation
          responseSchema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
          schema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
        '400':
          description: Invalid SIP trunk object supplied
        '404':
          description: Partition or account not found
      requestBody:
        content:
          application/json:
            schema:
              originalRef: SipTrunk
              $ref: '#/components/schemas/SipTrunk'
  /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/{sipTrunkId}/forward:
    get:
      tags:
      - SIP Trunk
      summary: Get Forward behavior for a SipTrunk
      description: Get Forward behavior for a SipTrunk
      operationId: retrieveSipTrunkForwardBehavior
      parameters:
      - name: X-AUTH-TOKEN
        in: header
        required: false
        schema:
          type: string
      - name: partitionId
        in: path
        description: ID of partition
        required: true
        schema:
          type: string
      - name: accountId
        in: path
        description: ID of account
        required: true
        schema:
          type: string
      - name: sipTrunkId
        in: path
        description: SIP trunk ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          responseSchema:
            originalRef: SipTrunkForwardRules
            $ref: '#/components/schemas/SipTrunkForwardRules'
          content:
            application/json:
              schema:
                originalRef: SipTrunkForwardRules
                $ref: '#/components/schemas/SipTrunkForwardRules'
        '400':
          description: Invalid SIP trunk ID supplied
      responsesObject:
        '200':
          description: successful operation
          responseSchema:
            originalRef: SipTrunkForwardRules
            $ref: '#/components/schemas/SipTrunkForwardRules'
          schema:
            originalRef: SipTrunkForwardRules
            $ref: '#/components/schemas/SipTrunkForwardRules'
        '400':
          description: Invalid SIP trunk ID supplied
    put:
      tags:
      - SIP Trunk
      summary: Update Forward behavior for a SipTrunk
      description: Update Forward behavior for a SipTrunk
      operationId: updateSipTrunkForwardBehavior
      parameters:
      - name: X-AUTH-TOKEN
        in: header
        required: false
        schema:
          type: string
      - name: partitionId
        in: path
        description: ID of partition
        required: true
        schema:
          type: string
      - name: accountId
        in: path
        description: ID of account
        required: true
        schema:
          type: string
      - name: sipTrunkId
        in: path
        description: SIP trunk ID
        required: true
        schema:
          type: string
      responses:
        '400':
          description: Invalid SIP trunk ID supplied
      responsesObject:
        '400':
          description: Invalid SIP trunk ID supplied
      requestBody:
        content:
          application/json:
            schema:
              originalRef: SipTrunkForwardRules
              $ref: '#/components/schemas/SipTrunkForwardRules'
  /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/{sipTrunkId}/unlock:
    put:
      tags:
      - SIP Trunk
      summary: Unlock SIP trunk
      description: Use to unlock a SIP trunk
      operationId: unlockSipTrunk
      parameters:
      - name: X-AUTH-TOKEN
        in: header
        required: false
        schema:
          type: string
      - name: partitionId
        in: path
        description: ID of partition
        required: true
        schema:
          type: string
      - name: accountId
        in: path
        description: ID of account
        required: true
        schema:
          type: string
      - name: sipTrunkId
        in: path
        description: SIP trunk ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          responseSchema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
          content:
            application/json:
              schema:
                originalRef: SipTrunk
                $ref: '#/components/schemas/SipTrunk'
        '400':
          description: Invalid SIP trunk ID supplied
        '404':
          description: Not found
      responsesObject:
        '200':
          description: successful operation
          responseSchema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
          schema:
            originalRef: SipTrunk
            $ref: '#/components/schemas/SipTrunk'
        '400':
          description: Invalid SIP trunk ID supplied
        '404':
          description: Not found
  /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/shared-plan-lookup:
    get:
      tags:
      - SIP Trunk
      summary: Retrieve list of shareable calling plans
      description: Use to retrieve calling plans that can be shared between sip trunks
      operationId: getShareableCallingPlans
      parameters:
      - name: X-AUTH-TOKEN
        in: header
        required: false
        schema:
          type: string
      - name: partitionId
        in: path
        description: ID of partition
        required: true
        schema:
          type: string
      - name: accountId
        in: path
        description: ID of account
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          responseSchema:
            type: array
            items:
              originalRef: SipTrunk
              $ref: '#/components/schemas/SipTrunk'
          content:
            application/json:
              schema:
                type: array
                items:
                  originalRef: SipTrunk
                  $ref: '#/components/schemas/SipTrunk'
      responsesObject:
        '200':
          description: successful operation
          responseSchema:
            type: array
            items:
              originalRef: SipTrunk
              $ref: '#/components/schemas/SipTrunk'
          schema:
            type: array
            items:
              originalRef: SipTrunk
              $ref: '#/components/schemas/SipTrunk'
  /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/{sipTrunkId}/registrationstatus:
    get:
      tags:
      - SIP Trunk
      summary: Retrieve SIP trunk registration status
      description: Use to retrieve SIP trunk registration status
      operationId: getRegistrationStatus
      parameters:
      - name: X-AUTH-TOKEN
        in: header
        required: false
        schema:
          type: string
      - name: partitionId
        in: path
        description: ID of partition
        required: true
        schema:
          type: string
      - name: accountId
        in: path
        description: ID of account
        required: true
        schema:
          type: string
      - name: sipTrunkId
        in: path
        description: SIP trunk ID
        required: true
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          responseSchema:
            originalRef: RegistrationStatus
            $ref: '#/components/schemas/RegistrationStatus'
          content:
            application/json:
              schema:
                originalRef: RegistrationStatus
                $ref: '#/components/schemas/RegistrationStatus'
        '400':
          description: Invalid SIP trunk ID supplied
        '404':
          description: Not found
      responsesObject:
        '200':
          description: successful operation
          responseSchema:
            originalRef: RegistrationStatus
            $ref: '#/components/schemas/RegistrationStatus'
          schema:
            originalRef: RegistrationStatus
            $ref: '#/components/schemas/RegistrationStatus'
        '400':
          description: Invalid SIP trunk ID supplied
        '404':
          description: Not found
components:
  schemas:
    CallingPlan:
      type: object
      properties:
        id:
          type: string
        referenceId:
          type: string
        referenceType:
          type: string
        callingPlanProductId:
          type: string
        endDate:
          type: string
          format: date-time
        startDate:
          type: string
          format: date-time
        planMinutes:
          type: integer
          format: int32
        secondsRemaining:
          type: integer
          format: int64
    SipTrunkForwardRules:
      type: object
      properties:
        partitionId:
          type: string
        accountId:
          type: string
        sipTrunkId:
          type: string
        forwardAlways:
          originalRef: ForwardAlwaysReference
          $ref: '#/components/schemas/ForwardAlwaysReference'
        forwardOnFailure:
          type: array
          items:
            originalRef: ForwardReference
            $ref: '#/components/schemas/ForwardReference'
        forwardOnCapacityExceeded:
          type: array
          items:
            originalRef: ForwardReference
            $ref: '#/components/schemas/ForwardReference'
    SbcEndpoint:
      type: object
      properties:
        site:
          type: string
        address:
          type: string
        port:
          type: integer
          format: int32
        protocol:
          type: string
    SetupCallingPlan:
      type: object
      properties:
        referenceId:
          type: string
        callingPlanType:
          type: string
          enum:
          - SHARED_CALLING_PLAN
          - NEW_CALLING_PLAN
          - UNSHARED_CALLING_PLAN
    RegistrationStatus:
      type: object
      properties:
        registered:
          type: boolean
        lockedOut:
          type: boolean
    SipTrunk:
      type: object
      properties:
        partitionId:
          type: string
        accountId:
          type: string
        trunkName:
          type: string
        id:
          type: string
        sipPassword:
          type: string
        sipUsername:
          type: string
        callbackNumber:
          type: string
        concurrentCalls:
          type: integer
          format: int32
        maxBurstCalls:
          type: integer
          format: int32
        callingPlans:
          type: array
          items:
            originalRef: CallingPlan
            $ref: '#/components/schemas/CallingPlan'
        telephoneNumbers:
          type: array
          items:
            type: string
        sipProxyServer:
          type: string
        lockedOut:
          type: boolean
        localServicesEnabled:
          type: boolean
        primaryTn:
          type: string
        extensionPatterns:
          type: array
          items:
            type: string
        externalChargeNumber:
          type: string
        newCppId:
          type: string
        setupCallingPlan:
          originalRef: SetupCallingPlan
          $ref: '#/components/schemas/SetupCallingPlan'
        provisioningStatus:
          type: string
        ipBasedAuthEnabled:
          type: boolean
        ipAddress:
          type: string
        portNumber:
          type: integer
          format: int32
        accessEndpoints:
          type: array
          items:
            originalRef: SbcEndpoint
            $ref: '#/components/schemas/SbcEndpoint'
        sipTrunkGroupId:
          type: string
        pbxTnDigits:
          type: integer
          format: int32
        languageTag:
          type: string
    ForwardAlwaysReference:
      type: object
      properties:
        referenceType:
          type: string
          enum:
          - BUSY
          - END_USER
          - IVR
          - AUTO_ATTENDANT
          - SIP_TRUNK
          - TELEPHONE
          - VOICE_MAIL
        referenceId:
          type: string
        enabled:
          type: boolean
    ForwardReference:
      type: object
      properties:
        referenceType:
          type: string
          enum:
          - BUSY
          - END_USER
          - IVR
          - AUTO_ATTENDANT
          - SIP_TRUNK
          - TELEPHONE
          - VOICE_MAIL
        referenceId:
          type: string
  securitySchemes:
    X-Auth-Token:
      type: apiKey
      in: header
      name: X-AUTH-TOKEN
x-refined-from:
- alianza-apidocs-swagger2-original.json
- alianza-openapi-original.yml
- alianza-sip-trunk-api-openapi.yml