Skip to content

HighLevel: List active numbers

HighLevel phoneSystem.activeNumbers: arguments, response, policy and SDK examples.

← Phone system operations · Get started

Operation gohighlevel.active_numbers

Provider route: GET /phone-system/numbers/location/{locationId}. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/gohighlevel with npm, or alter-sdk-gohighlevel with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { HighLevelIntegration } from "@alter-ai/gohighlevel";
async function execute(input: Parameters<HighLevelIntegration["phoneSystem"]["activeNumbers"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new HighLevelIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.phoneSystem.activeNumbers(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_gohighlevel import HighLevelIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = HighLevelIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.phone_system.active_numbers(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.locationIdstringRequired within parent
queryobjectOptionalAdditional keys: not allowed
query.pageSizenumberOptionalMaximum: 1000
Minimum: 1
query.pagenumberOptionalMinimum: 0
query.searchFilterstringOptional
query.skipNumberPoolbooleanOptionalDefault: true
query.includeRcsSenderIdsbooleanOptional

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand List active numbers — response body

Referenced models: List active numbers — response body

List active numbers — response body
FieldTypePresenceDescription and constraints
$objectRoot
dataJSONRequired within parentV3 list payload: numbers, pagination fields, isUnderLc (renamed from isUnderGhl), etc.
data (allOf 1)ModelAll variants applyExpand List active numbers — response body — data account Status, is Under Lc, numbers, page, page Size, rcs Sender Ids, total
messagestringRequired within parentHuman-readable success message.
statusstringRequired within parentOutcome indicator from the shared success helper.
Known values: success
statusCodeJSONRequired within parent
statusCode (anyOf 1)numberAlternativeHTTP status echoed in the response body.
statusCode (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: List active numbers — response body — data account Status, is Under Lc, numbers, page, page Size, rcs Sender Ids, total

List active numbers — response body — data account Status, is Under Lc, numbers, page, page Size, rcs Sender Ids, total
FieldTypePresenceDescription and constraints
$objectRoot
accountStatusstringOptionalTwilio account status for the location
isUnderLcbooleanOptionalWhether the account is managed under LC. Renamed from isUnderGhl.
numbersarrayRequired within parentActive numbers available for the location
numbers[]ModelEach itemExpand List active numbers — response body — data account Status, is Under Lc, numbers, page, page Size, rcs Sender Ids, total numbers item
pageJSONOptional
page (anyOf 1)numberAlternativeThe zero-based page index requested
page (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pageSizeJSONOptional
pageSize (anyOf 1)numberAlternativeThe page size requested
pageSize (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
rcsSenderIdsarrayOptionalOptional RCS sender IDs returned with the number list
rcsSenderIds[]ModelEach itemExpand List active numbers — response body — data account Status, is Under Lc, numbers, page, page Size, rcs Sender Ids, total rcs Sender Ids item
totalJSONOptional
total (anyOf 1)numberAlternativeTotal number of active numbers when available
total (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: List active numbers — response body — data account Status, is Under Lc, numbers, page, page Size, rcs Sender Ids, total numbers item, List active numbers — response body — data account Status, is Under Lc, numbers, page, page Size, rcs Sender Ids, total rcs Sender Ids item

List active numbers — response body — data account Status, is Under Lc, numbers, page, page Size, rcs Sender Ids, total numbers item
FieldTypePresenceDescription and constraints
$objectRoot
addressSidstringOptionalAddress SID used for regulated number purchases
bundleSidstringOptionalBundle SID used for regulated number purchases
capabilitiesJSONOptionalPhone number capabilities
capabilities (allOf 1)ModelAll variants applyExpand List active numbers — response body — data account Status, is Under Lc, numbers, page, page Size, rcs Sender Ids, total numbers item capabilities fax, mms, sms, voice
countryCodestringOptionalISO country code for the number
dateAddedobjectOptionalDate the number was added
dateCreatedobjectOptionalLegacy created-at field returned by some providers
dateUpdatedobjectOptionalDate the number was last updated
forwardingNumberstringOptionalForwarding number in E.164 format
friendlyNamestringOptionalHuman-friendly label for the number
inboundCallServiceobjectOptionalInbound call service metadata
Additional keys: allowed
isDefaultNumberbooleanOptionalWhether this is the default outbound number
isGroupConversationEnabledbooleanOptionalWhether group conversations are enabled
linkedRingAllUsersarrayOptionalRing-all user IDs linked to the number
linkedRingAllUsers[]stringEach item
linkedUserJSONOptional
linkedUser (anyOf 1)stringAlternativeLinked user ID if the number is assigned
linkedUser (anyOf 2)nullAlternative
originstringOptionalProvider origin for the number
phoneNumberstringRequired within parentPhone number in E.164 format
sidstringOptionalProvider number identifier
typestringOptionalPhone number type

Referenced models: List active numbers — response body — data account Status, is Under Lc, numbers, page, page Size, rcs Sender Ids, total numbers item capabilities fax, mms, sms, voice

List active numbers — response body — data account Status, is Under Lc, numbers, page, page Size, rcs Sender Ids, total rcs Sender Ids item
FieldTypePresenceDescription and constraints
$objectRoot
friendlyNamestringOptionalHuman-friendly label for the sender ID
numberstringRequired within parentRCS sender ID
numberTypestringRequired within parentEntry type
rcsMetaobjectOptionalRCS sender metadata
Additional keys: allowed
List active numbers — response body — data account Status, is Under Lc, numbers, page, page Size, rcs Sender Ids, total numbers item capabilities fax, mms, sms, voice
FieldTypePresenceDescription and constraints
$objectRoot
faxbooleanOptionalWhether the number supports fax
mmsbooleanOptionalWhether the number supports MMS
smsbooleanOptionalWhether the number supports SMS
voicebooleanOptionalWhether the number supports voice calls

SDK function policy ID: gohighlevel.active_numbers. Catalog operation: active-numbers. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["phonenumbers.read"]

Pinned headers: {"Version": "v3"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.