Skip to content
dimmiDocs

AI agent

Switch an AI agent off

DELETE/api/v1/ai/agents/{agent}/publications

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the ai:write ability

Path parameters

agentstringrequired

Id of the AI agent, starting with aia_, such as aia_01jx2m8k4t. Find it with GET /ai/agents.

Response 200

OK
dataobjectrequired
Show child attributes
agentobjectrequired
Show child attributes
action_scopeobjectrequired
Show child attributes
idsstring[] | nullrequired

With mode selected: ids of the procedures or actions the agent may use.

modestringrequired

all when the agent may use every one; selected when only the ones in ids.

actions_enabledbooleanrequired

Whether the agent may use the workspace's actions at all.

always_handoff_tag_idsstring[] | nullrequired

Ids of the tags that always send a conversation to the team, such as tag_... Empty when none.

answer_key_idstring | nullrequired

Id of the provider connection the answer model runs on, such as aik_... Null when none is chosen.

answer_modelstring | nullrequired

Id of the model that writes the agent's answers. Null when none is chosen, and then the agent cannot go live.

assigned_behaviorstringrequired

What the agent does in a conversation a teammate holds: skip_when_human_active, never_when_assigned or always.

created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

default_languagestringrequired

Language tag the agent falls back to, such as en.

descriptionstringrequired

What the live agent handles. Other agents read it to know when to pass a conversation to this one.

draftobjectrequired
Show child attributes
action_scopeobjectrequired
Show child attributes
idsstring[] | nullrequired

With mode selected: ids of the procedures or actions the agent may use.

modestringrequired

all when the agent may use every one; selected when only the ones in ids.

always_handoff_tag_idsstring[] | nullrequired

Ids of the tags that always send a conversation to a person, each starting with tag_.

answer_key_idstring | nullrequired

Id of the provider key the agent answers with (starts with aik_). Null when it uses the key every agent shares.

answer_modelstring | nullrequired

The model the agent answers with. Null when it uses the shared model.

assigned_behaviorstringrequired

What the agent does in a conversation a teammate holds: skip_when_human_active, never_when_assigned or always.

default_languagestringrequired

Language tag the agent answers in when the customer's language is unknown, such as en.

descriptionstringrequired

What the agent handles. Other agents read it to know when to pass a conversation to this one.

enabled_channelsstring[] | nullrequired

The kinds of channel the agent answers on, such as widget, email and api.

fallback_key_idstring | nullrequired

Id of the provider key used when the answer key fails (starts with aik_). Null when there is none.

fallback_modelstring | nullrequired

The model used when the answer model fails. Null when there is none.

guidancestringrequired

How the agent talks and what it does, in the team's own words.

handoff_modestringrequired

full when the agent answers from the knowledge; triage_only when it only sorts the conversation and hands it to a person.

handoff_team_idstring | nullrequired

Id of the team a handed-over conversation goes to (starts with team_). Null when it goes to no team.

include_contact_contextstringrequired

How much of the customer's record the agent reads: none or basic.

knowledge_scopeobjectrequired
Show child attributes
help_center_idsstring[] | nullrequired

With mode selected: ids of the help centers the agent may search, each starting with hc_.

modestringrequired

all when the agent may search every help center and knowledge source; selected when only the ones listed.

source_idsstring[] | nullrequired

With mode selected: ids of the knowledge sources the agent may search, each starting with ks_.

languagesstring[] | nullrequired

Language tags the agent answers in, such as en or pt-BR.

link_allowliststring[] | nullrequired

Hosts the agent may link to, such as example.com or *.example.com.

max_ai_repliesintegerrequired

Most replies the agent sends in one conversation before it hands over.

Format: int64

namestringrequired

What the team calls the agent.

pii_redactionbooleanrequired

true when personal data is masked in text before it is sent to the model provider.

placementobjectrequired
Show child attributes
channel_connection_idsstring[] | nullrequired

Ids of the channel connections whose new conversations the agent takes, each starting with chn_.

channel_room_idsstring[] | nullrequired

Ids of the Slack channels whose new conversations the agent takes, each starting with chr_.

inbox_idsstring[] | nullrequired

Ids of the inboxes whose new conversations the agent takes, each starting with inbox_.

procedure_scopeobjectrequired
Show child attributes
idsstring[] | nullrequired

With mode selected: ids of the procedures or actions the agent may use.

modestringrequired

all when the agent may use every one; selected when only the ones in ids.

product_namestring | nullrequired

The product's name as the agent says it. Null when it uses the workspace's name.

raise_priority_on_handoffbooleanrequired

true when a conversation becomes high priority as the agent hands it over.

require_citationsbooleanrequired

true when the agent answers only with what it can cite from the knowledge.

schedulestringrequired

When the agent answers: always, outside_office_hours or inside_office_hours.

streamingbooleanrequired

true when the agent's reply appears in the messenger as it is written.

tonestringrequired

How the agent sounds: friendly, professional or concise.

transfer_agent_idsstring[] | nullrequired

Ids of the agents this one may pass a conversation to, each starting with aia_.

unknown_behaviorstringrequired

What the agent does when it cannot answer: offer_handoff, handoff or say_unknown.

enabledbooleanrequired

Whether the agent is switched on and answers customers.

enabled_channelsstring[] | nullrequired

Channels the agent answers on: any of widget, email, api and slack. With none the agent is not ready.

fallback_key_idstring | nullrequired

Id of the provider connection the fallback model runs on, such as aik_... Null when no fallback is set.

fallback_modelstring | nullrequired

Id of the model used as a fallback for answers. Null when none is set.

grounding_modestringrequired

How answers are kept to the sources: citations or verify.

guidancestringrequired

The team's own instructions to the agent, in plain text up to 2000 characters. Empty when none.

handoff_modestringrequired

The 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 | nullrequired

Id of the team a conversation goes to when the agent hands off, such as team_... Null when no team is set.

has_unpublished_changesbooleanrequired

true when the draft differs from what customers meet, so a publish would change something.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

include_contact_contextstringrequired

How much the agent reads about the contact: none, basic or allowlist.

is_defaultbooleanrequired

true for the one agent that answers every conversation no other agent takes.

knowledge_scopeobjectrequired
Show child attributes
help_center_idsstring[] | nullrequired

With mode selected: ids of the help centers the agent may search, each starting with hc_.

modestringrequired

all when the agent may search every help center and knowledge source; selected when only the ones listed.

source_idsstring[] | nullrequired

With mode selected: ids of the knowledge sources the agent may search, each starting with ks_.

languagesstring[] | nullrequired

Language tags set for the agent, such as ["en","de"]. Empty when none are set.

link_allowliststring[] | nullrequired

Host names set as allowed for links in the agent's answers, such as docs.example.com or *.example.com. Empty when none.

live_versionintegerrequired

Number of the version customers meet now. 0 before the first publish.

Format: int32

lock_versionintegerrequired

Counts the agent's saves. Send it back with an edit to refuse the edit when someone else saved in between.

Format: int32

max_ai_repliesintegerrequired

The 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_tokensintegerrequired

The most tokens the agent may write in one answer. Defaults to 600.

Format: int64

namestringrequired

The name the agent goes by with customers, 1 to 60 characters.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

pii_redactionbooleanrequired

Whether redaction of personal data is switched on for the agent.

placementobjectrequired
Show child attributes
channel_connection_idsstring[] | nullrequired

Ids of the channel connections whose new conversations the agent takes, each starting with chn_.

channel_room_idsstring[] | nullrequired

Ids of the Slack channels whose new conversations the agent takes, each starting with chr_.

inbox_idsstring[] | nullrequired

Ids of the inboxes whose new conversations the agent takes, each starting with inbox_.

procedure_scopeobjectrequired
Show child attributes
idsstring[] | nullrequired

With mode selected: ids of the procedures or actions the agent may use.

modestringrequired

all when the agent may use every one; selected when only the ones in ids.

product_namestring | nullrequired

The name of the product the agent supports, up to 80 characters. Null when not set.

published_atstring | nullrequired

When the agent was last published. Null when it never was.

Format: date-time

raise_priority_on_handoffbooleanrequired

Whether a conversation's priority is raised when the agent hands it to the team.

require_citationsbooleanrequired

Whether the agent's answers must cite their sources.

rolestringrequired

The kind of work the agent was made for, taken from its template, such as support, billing or developer.

schedulestringrequired

When the agent may answer: always, outside_office_hours or inside_office_hours.

statusstringrequired

Where the agent stands: draft (never published), live or paused.

streamingbooleanrequired

Whether answers are streamed to the customer as they are written.

templatestring | nullrequired

Key of the template the agent started from, such as support. Null when it started empty.

tonestringrequired

How the agent sounds: friendly, professional or concise.

transfer_agent_idsstring[] | nullrequired

Ids of the agents the live agent may pass a conversation to, each starting with aia_.

unknown_behaviorstringrequired

What the agent does when it cannot answer: offer_handoff, handoff or say_unknown.

updated_atstringrequired

When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

catalogobjectrequired

The 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[] | nullrequired

The workspace's provider connections, without their secrets.

Show child attributes
auth_typestringrequired

How the connection signs in to the provider: api_key, aws_iam, bedrock_api_key, none, managed or oauth.

base_urlstring | nullrequired

The provider's address for this connection, for providers that need one. Null when the provider's default is used.

created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

key_hintstring | nullrequired

Dots 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 | nullrequired

When the connection was last used for a model call. Null when never.

Format: date-time

last_validated_atstring | nullrequired

When the connection was last checked against the provider. Null when never.

Format: date-time

modelsstring[] | nullrequired

Ids of the models the provider offered when the connection last validated. Empty when it listed none.

models_countintegerrequired

How many models are in the models list.

Format: int64

namestringrequired

The name the team gave this provider connection.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

providerstringrequired

Which model provider this connects to, such as dimmi (built in), anthropic, openai, chatgpt or openai_compatible.

regionstring | nullrequired

The provider region this connection uses, for providers that have regions. Null otherwise.

sourcestringrequired

Where the connection came from: dashboard, api, env or system.

statusstringrequired

Whether the connection works: unverified (never checked), valid, invalid or error.

status_reasonstring | nullrequired

A short safe explanation of the status, such as "never validated" or "connected". Null when there is none.

updated_atstringrequired

When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

managedbooleanrequired

True when the workspace has dimmi's built-in provider connection.

prompt_versionstringrequired

The version of the prompts the agent's answers use.

providersobject[] | nullrequired

The model providers the workspace could connect, each with its id, name and how it signs in.

Show child attributes
auth_typestringrequired

How the AI provider is connected: managed (built in), api_key or oauth.

availablebooleanrequired

True when this server can actually serve the provider; false when it is not set up here.

docs_urlstringrequired

Where to get a key for the provider. Empty when there is no such page.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

key_requiredbooleanrequired

True when connecting the provider needs an API key.

namestringrequired

The provider's name for the picker, such as Anthropic or OpenAI.

readiness_errorsstring[] | nullrequired

Why the agent cannot go live, in plain English: "answer model not configured" or "no channels enabled". Empty when ready.

readybooleanrequired

True when the agent could go live: it has a usable answer model and at least one channel.

settingsobjectrequired
Show child attributes
answer_key_idstring | nullrequired

Id of the provider key every agent answers with until it picks its own (starts with aik_). Null when none is set.

answer_modelstring | nullrequired

The model every agent answers with until it picks its own. Null when none is set.

classifier_key_idstring | nullrequired

Id of the provider key that sorts each customer message before an agent answers (starts with aik_). Null when none is set.

classifier_modelstring | nullrequired

The model that sorts each customer message. Null when none is set.

fallback_key_idstring | nullrequired

Id of the provider key used when an agent's answer key fails (starts with aik_). Null when there is none.

fallback_modelstring | nullrequired

The model used when an agent's answer model fails. Null when there is none.

monthly_spend_cap_microsinteger | nullrequired

Most the workspace may spend on dimmi in a month, in millionths of a US dollar. Null when there is no cap.

Format: int64

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

tiesobject[] | nullrequired

What 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 attributes
idstringrequired

The id of what relies on the agent, such as wf_..., chn_... or aia_....

kindstringrequired

What relies on the agent: workflow, series, connection, room, inbox or agent.

namestringrequired

Its name.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.