Skip to content

HighLevel: List Agents — voice Ai get Agents

HighLevel voiceAi.getAgents: arguments, response, policy and SDK examples.

← Voice AI operations · Get started

Operation gohighlevel.get_agents

Provider route: GET /voice-ai/agents. 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["voiceAi"]["getAgents"]>[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.voiceAi.getAgents(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.voice_ai.get_agents(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectRequired within parentAdditional keys: not allowed
query.pagenumberOptionalDefault: 1
Maximum: 5000
Minimum: 1
query.pageSizenumberOptionalDefault: 10
Maximum: 50
Minimum: 1
query.locationIdstringRequired within parent
query.querystringOptional

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

FieldTypePresenceDescription and constraints
$ModelRootExpand List Agents — voice Ai get Agents — response body

Referenced models: List Agents — voice Ai get Agents — response body

13 more schemas are linked from the tables above, on the schema pages.

List Agents — voice Ai get Agents — response body
FieldTypePresenceDescription and constraints
$objectRoot
agentsarrayRequired within parent
agents[]ModelEach itemExpand List Agents — voice Ai get Agents — response body — agents item
pageJSONRequired within parent
page (anyOf 1)numberAlternativePage number starting from 1
page (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pageSizeJSONRequired within parent
pageSize (anyOf 1)numberAlternativeNumber of items per page
pageSize (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
totalJSONRequired within parent
total (anyOf 1)numberAlternativeTotal number of items
total (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: List Agents — voice Ai get Agents — response body — agents item

List Agents — voice Ai get Agents — response body — agents item
FieldTypePresenceDescription and constraints
$objectRoot
actionsarrayRequired within parentRaw actions configured for this agent with complete actionParameters structure
actions[]ModelEach itemExpand List Agents — voice Ai get Agents — response body — agents item actions item
agentNamestringRequired within parentDisplay name of the voice AI agent
agentPromptstringRequired within parentCustom instructions defining the agent's behavior
agentWorkingHoursarrayOptionalTime intervals when the agent accepts calls, organized by day of week
agentWorkingHours[]ModelEach itemExpand Patch Agent — response body — agent Working Hours item
businessNamestringRequired within parentName of the business this agent represents
callEndWorkflowIdsarrayOptionalArray of workflow IDs triggered automatically when calls end
callEndWorkflowIds[]stringEach item
idstringRequired within parentUnique identifier for the created agent
inboundNumberstringOptionalPhone number for receiving inbound calls
isAgentAsBackupDisabledbooleanRequired within parentIndicates whether this agent is excluded from backup scenarios
languagestringRequired within parentLanguage code for the agent's speech and understanding
locationIdstringRequired within parentUnique identifier for the location where this agent operates
maxCallDurationJSONRequired within parent
maxCallDuration (anyOf 1)numberAlternativeMaximum call duration in seconds, between 180-900
Maximum: 900
Minimum: 180
maxCallDuration (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
numberPoolIdstringOptionalIdentifier for the number pool managing this agent's phone allocation
patienceLevelstringRequired within parentCurrent tolerance level for caller response delays
reminderAfterIdleTimeSecondsJSONRequired within parent
reminderAfterIdleTimeSeconds (anyOf 1)numberAlternativeSeconds to wait before sending idle reminders, between 1-20
Maximum: 20
Minimum: 1
reminderAfterIdleTimeSeconds (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
sendPostCallNotificationToJSONOptionalCurrent post-call notification settings including recipient configuration
sendPostCallNotificationTo (allOf 1)ModelAll variants applyExpand Patch Agent — response body — send Post Call Notification To admins, all Users, contact Assigned User, custom Emails, specific Users
sendUserIdleRemindersbooleanRequired within parentIndicates whether automatic idle reminders are enabled
timezonestringRequired within parentIANA timezone identifier for working hours and scheduling
translationJSONOptionalCurrent language translation settings including enablement status and target language
translation (allOf 1)ModelAll variants applyExpand Patch Agent — response body — translation enabled, language
voiceIdstringRequired within parentIdentifier for the speech synthesis voice being used
welcomeMessagestringRequired within parentGreeting message spoken when the agent answers calls

Referenced models: List Agents — voice Ai get Agents — response body — agents item actions item, Patch Agent — response body — agent Working Hours item, Patch Agent — response body — send Post Call Notification To admins, all Users, contact Assigned User, custom Emails, specific Users, Patch Agent — response body — translation enabled, language

List Agents — voice Ai get Agents — response body — agents item actions item
FieldTypePresenceDescription and constraints
$objectRoot
actionParametersJSONRequired within parentAction parameters - structure varies by actionType
actionParameters (anyOf 1)ModelAlternativeExpand List Agents — voiceAi.getAgents — response body — agents / item / actions / item / actionParameters / transferToType: number
actionParameters (anyOf 2)ModelAlternativeExpand List Agents — voice Ai get Agents — response body — agents item actions item action Parameters contact Field Id, description, examples, overwrite Existing Value
actionParameters (anyOf 3)ModelAlternativeExpand List Agents — voice Ai get Agents — response body — agents item actions item action Parameters contact Field Id, description, examples, overwrite Existing Value
actionParameters (anyOf 4)ModelAlternativeExpand List Agents — voice Ai get Agents — response body — agents item actions item action Parameters trigger Message, trigger Prompt, workflow Id
actionParameters (anyOf 5)ModelAlternativeExpand List Agents — voice Ai get Agents — response body — agents item actions item action Parameters message Body, trigger Message, trigger Prompt
actionParameters (anyOf 6)ModelAlternativeExpand List Agents — voice Ai get Agents — response body — agents item actions item action Parameters calendar Id, days Of Offering Dates, hours Between Slots, slots Per Day
actionParameters (anyOf 7)ModelAlternativeExpand List Agents — voice Ai get Agents — response body — agents item actions item action Parameters api Details, selected Paths, trigger Message, trigger Prompt
actionParameters (anyOf 8)ModelAlternativeExpand List Agents — voice Ai get Agents — response body — agents item actions item action Parameters knowledge Base Id, trigger Prompt
actionTypestringRequired within parentType of action
Known values: CALL_TRANSFER, DATA_EXTRACTION, IN_CALL_DATA_EXTRACTION, WORKFLOW_TRIGGER, SMS, APPOINTMENT_BOOKING, CUSTOM_ACTION, KNOWLEDGE_BASE
idstringRequired within parentUnique identifier for this action
namestringRequired within parentHuman-readable name for this action

Referenced models: List Agents — voice Ai get Agents — response body — agents item actions item action Parameters contact Field Id, description, examples, overwrite Existing Value, List Agents — voice Ai get Agents — response body — agents item actions item action Parameters knowledge Base Id, trigger Prompt, List Agents — voice Ai get Agents — response body — agents item actions item action Parameters calendar Id, days Of Offering Dates, hours Between Slots, slots Per Day, List Agents — voiceAi.getAgents — response body — agents / item / actions / item / actionParameters / transferToType: number, List Agents — voice Ai get Agents — response body — agents item actions item action Parameters api Details, selected Paths, trigger Message, trigger Prompt, List Agents — voice Ai get Agents — response body — agents item actions item action Parameters message Body, trigger Message, trigger Prompt, List Agents — voice Ai get Agents — response body — agents item actions item action Parameters trigger Message, trigger Prompt, workflow Id

Patch Agent — response body — agent Working Hours item
FieldTypePresenceDescription and constraints
$objectRoot
dayOfTheWeekJSONRequired within parent
dayOfTheWeek (anyOf 1)numberAlternativeDay of the week for this working hours configuration (Monday=1 to Sunday=7)
Known values: 1, 2, 3, 4, 5, 6, 7
dayOfTheWeek (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
intervalsarrayRequired within parentArray of time intervals when the agent is available on this day
intervals[]ModelEach itemExpand Patch Agent — response body — agent Working Hours item intervals item

Referenced models: Patch Agent — response body — agent Working Hours item intervals item

SDK function policy ID: gohighlevel.get_agents. Catalog operation: get-agents. 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: ["voice-ai-agents.readonly"]

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.