---
title: "Retrieve list of shareable calling plans"
method: GET
path: "/v2/partition/{partitionId}/account/{accountId}/siptrunk_2/shared-plan-lookup"
tags: ["SIP Trunk"]
---

# Retrieve list of shareable calling plans

`GET /v2/partition/{partitionId}/account/{accountId}/siptrunk_2/shared-plan-lookup`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/account/{accountId}/siptrunk_2/shared-plan-lookup`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/partition/:partitionId/account/:accountId/siptrunk_2/shared-plan-lookup/get.ts> (a function with typed inputs; its response is checked against the schema)

Use to retrieve calling plans that can be shared between SIP trunks

## Path parameters

- `accountId` string, required
- `partitionId` string, required

## Response `200`

Successful operation

- SipTrunk[]
  - `partitionId` string
  - `accountId` string
  - `trunkName` string
  - `id` string
  - `sipPassword` string
  - `sipUsername` string
  - `callbackNumber` string
  - `concurrentCalls` integer
  - `maxBurstCalls` integer
  - `callingPlans` CallingPlan[]
    - `id` string
    - `referenceId` string
    - `referenceType` string
    - `callingPlanProductId` string
    - `endDate` string, date-time
    - `startDate` string, date-time
    - `planMinutes` integer
    - `secondsRemaining` integer
  - `telephoneNumbers` string[]
  - `sipProxyServer` string
  - `lockedOut` boolean
  - `localServicesEnabled` boolean
  - `primaryTn` string
  - `extensionPatterns` string[]
  - `externalChargeNumber` string
  - `newCppId` string
  - `setupCallingPlan` SetupCallingPlan
    - `referenceId` string
    - `callingPlanType` 'SHARED_CALLING_PLAN' | 'NEW_CALLING_PLAN'
  - `provisioningStatus` string
  - `ipBasedAuthEnabled` boolean
  - `ipAddress` string
  - `portNumber` integer
  - `accessEndpoints` SbcEndpoint[]
    - `site` string
    - `address` string
    - `port` integer
    - `protocol` string
  - `sipTrunkGroupId` string
  - `pbxTnDigits` integer
  - `languageTag` string
  - `stirShakenExpandedCallerIdVerification` boolean

## Other responses

- `400`: Invalid request

---

[API](https://skmtc.dev/alianza/apis/alianza-public-api.md) - [All operations](https://skmtc.dev/alianza/apis/alianza-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alianza/apis/alianza-public-api/revisions/7223246c352c?raw)
