AI agent
Get an AI agent version
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the ai:read ability
Path parameters
agentstringrequiredId of the AI agent, starting with aia_, such as aia_01jx2m8k4t. Find it with GET /ai/agents.
versionintegerrequiredThe version's number, such as 3. Find it with GET /ai/agents/{agent}/versions.
Format: int32 · Minimum: 1
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
agent_idstringrequiredId of the agent this is a version of (starts with aia_).
change_notestring | nullrequiredThe publisher's note on what changed in this version. Null when none was given.
definitionobjectrequiredShow child attributesHide child attributes
action_scopeobjectrequiredShow child attributesHide child attributes
idsstring[] | nullrequiredWith mode selected: ids of the procedures or actions the agent may use.
modestringrequiredall when the agent may use every one; selected when only the ones in ids.
always_handoff_tag_idsstring[] | nullrequiredIds of the tags that always send a conversation to a person, each starting with tag_.
answer_key_idstring | nullrequiredId of the provider key the agent answers with (starts with aik_). Null when it uses the key every agent shares.
answer_modelstring | nullrequiredThe model the agent answers with. Null when it uses the shared model.
assigned_behaviorstringrequiredWhat the agent does in a conversation a teammate holds: skip_when_human_active, never_when_assigned or always.
default_languagestringrequiredLanguage tag the agent answers in when the customer's language is unknown, such as en.
descriptionstringrequiredWhat the agent handles. Other agents read it to know when to pass a conversation to this one.
enabled_channelsstring[] | nullrequiredThe kinds of channel the agent answers on, such as widget, email and api.
fallback_key_idstring | nullrequiredId of the provider key used when the answer key fails (starts with aik_). Null when there is none.
fallback_modelstring | nullrequiredThe model used when the answer model fails. Null when there is none.
guidancestringrequiredHow the agent talks and what it does, in the team's own words.
handoff_modestringrequiredfull when the agent answers from the knowledge; triage_only when it only sorts the conversation and hands it to a person.
handoff_team_idstring | nullrequiredId of the team a handed-over conversation goes to (starts with team_). Null when it goes to no team.
include_contact_contextstringrequiredHow much of the customer's record the agent reads: none or basic.
knowledge_scopeobjectrequiredShow child attributesHide child attributes
help_center_idsstring[] | nullrequiredWith mode selected: ids of the help centers the agent may search, each starting with hc_.
modestringrequiredall when the agent may search every help center and knowledge source; selected when only the ones listed.
source_idsstring[] | nullrequiredWith mode selected: ids of the knowledge sources the agent may search, each starting with ks_.
languagesstring[] | nullrequiredLanguage tags the agent answers in, such as en or pt-BR.
link_allowliststring[] | nullrequiredHosts the agent may link to, such as example.com or *.example.com.
max_ai_repliesintegerrequiredMost replies the agent sends in one conversation before it hands over.
Format: int64
namestringrequiredWhat the team calls the agent.
pii_redactionbooleanrequiredtrue when personal data is masked in text before it is sent to the model provider.
placementobjectrequiredShow child attributesHide child attributes
channel_connection_idsstring[] | nullrequiredIds of the channel connections whose new conversations the agent takes, each starting with chn_.
channel_room_idsstring[] | nullrequiredIds of the Slack channels whose new conversations the agent takes, each starting with chr_.
inbox_idsstring[] | nullrequiredIds of the inboxes whose new conversations the agent takes, each starting with inbox_.
procedure_scopeobjectrequiredShow child attributesHide child attributes
idsstring[] | nullrequiredWith mode selected: ids of the procedures or actions the agent may use.
modestringrequiredall when the agent may use every one; selected when only the ones in ids.
product_namestring | nullrequiredThe product's name as the agent says it. Null when it uses the workspace's name.
raise_priority_on_handoffbooleanrequiredtrue when a conversation becomes high priority as the agent hands it over.
require_citationsbooleanrequiredtrue when the agent answers only with what it can cite from the knowledge.
schedulestringrequiredWhen the agent answers: always, outside_office_hours or inside_office_hours.
streamingbooleanrequiredtrue when the agent's reply appears in the messenger as it is written.
tonestringrequiredHow the agent sounds: friendly, professional or concise.
transfer_agent_idsstring[] | nullrequiredIds of the agents this one may pass a conversation to, each starting with aia_.
unknown_behaviorstringrequiredWhat the agent does when it cannot answer: offer_handoff, handoff or say_unknown.
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
published_atstringrequiredWhen this version was published.
Format: date-time
published_by_member_idstring | nullrequiredId of the teammate who published this version. Null when they are no longer known.
versionintegerrequiredThe version's number, counted from 1 for each agent.
Format: int32
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.