AI agent
Get an AI agent
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.
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
agentobjectrequiredShow 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.
actions_enabledbooleanrequiredWhether the agent may use the workspace's actions at all.
always_handoff_tag_idsstring[] | nullrequiredIds of the tags that always send a conversation to the team, such as tag_... Empty when none.
answer_key_idstring | nullrequiredId of the provider connection the answer model runs on, such as aik_... Null when none is chosen.
answer_modelstring | nullrequiredId of the model that writes the agent's answers. Null when none is chosen, and then the agent cannot go live.
assigned_behaviorstringrequiredWhat the agent does in a conversation a teammate holds: skip_when_human_active, never_when_assigned or always.
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
default_languagestringrequiredLanguage tag the agent falls back to, such as en.
descriptionstringrequiredWhat the live agent handles. Other agents read it to know when to pass a conversation to this one.
draftobjectrequiredShow 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.
enabledbooleanrequiredWhether the agent is switched on and answers customers.
enabled_channelsstring[] | nullrequiredChannels the agent answers on: any of widget, email, api and slack. With none the agent is not ready.
fallback_key_idstring | nullrequiredId of the provider connection the fallback model runs on, such as aik_... Null when no fallback is set.
fallback_modelstring | nullrequiredId of the model used as a fallback for answers. Null when none is set.
grounding_modestringrequiredHow answers are kept to the sources: citations or verify.
guidancestringrequiredThe team's own instructions to the agent, in plain text up to 2000 characters. Empty when none.
handoff_modestringrequiredThe agent's role in a conversation: full (it answers) or triage_only (it only sorts the conversation and hands it to a person).
handoff_team_idstring | nullrequiredId of the team a conversation goes to when the agent hands off, such as team_... Null when no team is set.
has_unpublished_changesbooleanrequiredtrue when the draft differs from what customers meet, so a publish would change something.
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
include_contact_contextstringrequiredHow much the agent reads about the contact: none, basic or allowlist.
is_defaultbooleanrequiredtrue for the one agent that answers every conversation no other agent takes.
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 set for the agent, such as ["en","de"]. Empty when none are set.
link_allowliststring[] | nullrequiredHost names set as allowed for links in the agent's answers, such as docs.example.com or *.example.com. Empty when none.
live_versionintegerrequiredNumber of the version customers meet now. 0 before the first publish.
Format: int32
lock_versionintegerrequiredCounts the agent's saves. Send it back with an edit to refuse the edit when someone else saved in between.
Format: int32
max_ai_repliesintegerrequiredThe most replies the agent gives in one conversation before it hands off to the team, from 1 to 50. Defaults to 5.
Format: int64
max_output_tokensintegerrequiredThe most tokens the agent may write in one answer. Defaults to 600.
Format: int64
namestringrequiredThe name the agent goes by with customers, 1 to 60 characters.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
pii_redactionbooleanrequiredWhether redaction of personal data is switched on for the agent.
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 name of the product the agent supports, up to 80 characters. Null when not set.
published_atstring | nullrequiredWhen the agent was last published. Null when it never was.
Format: date-time
raise_priority_on_handoffbooleanrequiredWhether a conversation's priority is raised when the agent hands it to the team.
require_citationsbooleanrequiredWhether the agent's answers must cite their sources.
rolestringrequiredThe kind of work the agent was made for, taken from its template, such as support, billing or developer.
schedulestringrequiredWhen the agent may answer: always, outside_office_hours or inside_office_hours.
statusstringrequiredWhere the agent stands: draft (never published), live or paused.
streamingbooleanrequiredWhether answers are streamed to the customer as they are written.
templatestring | nullrequiredKey of the template the agent started from, such as support. Null when it started empty.
tonestringrequiredHow the agent sounds: friendly, professional or concise.
transfer_agent_idsstring[] | nullrequiredIds of the agents the live agent may pass a conversation to, each starting with aia_.
unknown_behaviorstringrequiredWhat the agent does when it cannot answer: offer_handoff, handoff or say_unknown.
updated_atstringrequiredWhen it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
catalogobjectrequiredThe models that can be picked, as lists keyed by provider such as dimmi or chatgpt. Each entry has the model id, display name and prices.
keysobject[] | nullrequiredThe workspace's provider connections, without their secrets.
Show child attributesHide child attributes
auth_typestringrequiredHow the connection signs in to the provider: api_key, aws_iam, bedrock_api_key, none, managed or oauth.
base_urlstring | nullrequiredThe provider's address for this connection, for providers that need one. Null when the provider's default is used.
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
key_hintstring | nullrequiredDots and the last four characters of the stored key, such as ••••a1b2, to tell keys apart. Null when no key is stored.
last_used_atstring | nullrequiredWhen the connection was last used for a model call. Null when never.
Format: date-time
last_validated_atstring | nullrequiredWhen the connection was last checked against the provider. Null when never.
Format: date-time
modelsstring[] | nullrequiredIds of the models the provider offered when the connection last validated. Empty when it listed none.
models_countintegerrequiredHow many models are in the models list.
Format: int64
namestringrequiredThe name the team gave this provider connection.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
providerstringrequiredWhich model provider this connects to, such as dimmi (built in), anthropic, openai, chatgpt or openai_compatible.
regionstring | nullrequiredThe provider region this connection uses, for providers that have regions. Null otherwise.
sourcestringrequiredWhere the connection came from: dashboard, api, env or system.
statusstringrequiredWhether the connection works: unverified (never checked), valid, invalid or error.
status_reasonstring | nullrequiredA short safe explanation of the status, such as "never validated" or "connected". Null when there is none.
updated_atstringrequiredWhen it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
managedbooleanrequiredTrue when the workspace has dimmi's built-in provider connection.
prompt_versionstringrequiredThe version of the prompts the agent's answers use.
providersobject[] | nullrequiredThe model providers the workspace could connect, each with its id, name and how it signs in.
Show child attributesHide child attributes
auth_typestringrequiredHow the AI provider is connected: managed (built in), api_key or oauth.
availablebooleanrequiredTrue when this server can actually serve the provider; false when it is not set up here.
docs_urlstringrequiredWhere to get a key for the provider. Empty when there is no such page.
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
key_requiredbooleanrequiredTrue when connecting the provider needs an API key.
namestringrequiredThe provider's name for the picker, such as Anthropic or OpenAI.
readiness_errorsstring[] | nullrequiredWhy the agent cannot go live, in plain English: "answer model not configured" or "no channels enabled". Empty when ready.
readybooleanrequiredTrue when the agent could go live: it has a usable answer model and at least one channel.
settingsobjectrequiredShow child attributesHide child attributes
answer_key_idstring | nullrequiredId of the provider key every agent answers with until it picks its own (starts with aik_). Null when none is set.
answer_modelstring | nullrequiredThe model every agent answers with until it picks its own. Null when none is set.
classifier_key_idstring | nullrequiredId of the provider key that sorts each customer message before an agent answers (starts with aik_). Null when none is set.
classifier_modelstring | nullrequiredThe model that sorts each customer message. Null when none is set.
fallback_key_idstring | nullrequiredId of the provider key used when an agent's answer key fails (starts with aik_). Null when there is none.
fallback_modelstring | nullrequiredThe model used when an agent's answer model fails. Null when there is none.
monthly_spend_cap_microsinteger | nullrequiredMost the workspace may spend on dimmi in a month, in millionths of a US dollar. Null when there is no cap.
Format: int64
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
tiesobject[] | nullrequiredWhat still relies on the agent: workflows and series that name it, places it answers on and agents that may transfer to it. The agent can be archived only once this is empty.
Show child attributesHide child attributes
idstringrequiredThe id of what relies on the agent, such as wf_..., chn_... or aia_....
kindstringrequiredWhat relies on the agent: workflow, series, connection, room, inbox or agent.
namestringrequiredIts name.
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.