AI agent
AI agent API
Set up dimmi AI agents, knowledge sources, procedures in plain English, backend actions, action connections, provider keys, and usage via REST.
How the dimmi agent worksSee how the dimmi agent answers from docs, follows procedures, and hands over.
Action calls
3 endpointsGETList AI action calls
/ai/action-callsLists the action calls the agents made, newest first, including those waiting for a teammate. Returns a page of calls with their state, action, conversation...GETGet an AI action call/ai/action-calls/{call}Reads one call: what the agent asked to do, who agreed, and how it went. Returns the call with its state, timings and, for those allowed, its input.PATCHApprove or decline an AI action call/ai/action-calls/{call}Decides a call waiting for the team. Approving runs it in the workspace's system at once; declining has the agent tell the customer. Show the person...Action connections
7 endpointsGETList action connections
/ai/action-connectionsLists the connections to the workspace's own systems that AI actions call: an HTTP API or an MCP server, each with its address and credential.POSTAdd an action connection/ai/action-connectionsConnects one of the workspace's own systems so actions can call it. Nothing runs until an action on it is published. Only store a credential the person gave...POSTCheck an action connection/ai/action-connections/{connection}/testsSends one request to the connection to see whether dimmi can reach it and sign in. For an MCP server it lists the tools. Returns how the check went: status...POSTImport MCP tools as actions/ai/action-connections/{connection}/tool-syncsReads an MCP server connection's tools and creates a draft action for each one that has none. Drafts start as writes that ask the customer to confirm...GETGet an action connection/ai/action-connections/{connection}Reads one connection to a workspace system. The secret never comes back, only a hint. Returns the connection with its status, last success and last error.PATCHChange an action connection/ai/action-connections/{connection}Changes a connection's address, credential, headers or status. Every published action on it uses the change at once. A new token, username or password...DELETERemove an action connection/ai/action-connections/{connection}Deletes a connection and its secret. Refused while actions use it unless force is set, which also deletes those actions and cancels their calls still waiting.Actions
8 endpointsGETList AI actions
/ai/actionsLists the actions the agents can take in the workspace's own systems, such as looking up an order or issuing a refund, by name. Returns every action...GETList an action's versions/ai/actions/{action}/versionsLists the published versions of an action, newest first. Each is frozen once published. Returns every version with its number, definition, note and who...POSTDraft an AI action/ai/actionsDrafts an action on a connection: the request it sends, what the model fills in and who must agree. A draft never runs for customers until published.POSTTest an AI action/ai/actions/{action}/testsTries the working copy with sample input and a stand-in customer. mode=dry_run (default) renders the request and sends nothing. mode=live sends it...POSTPublish an AI action/ai/actions/{action}/publicationsFreezes the action's working copy as a new version and makes it live: the agents can take it in customer conversations at once. Test it first and publish...GETGet an AI action/ai/actions/{action}Reads one action's working copy: its request, input schema, response fields and agreement rules. Returns the action with has_unpublished_changes and any...PATCHChange an AI action/ai/actions/{action}Edits the working copy, restores a version with restore_version_id, or switches a published action with status=disabled or published, which changes...DELETEDelete an AI action/ai/actions/{action}Deletes an action so no agent can take it any more. Its past calls stay. To stop it for now, set status=disabled with PATCH /ai/actions/{action} instead.Agent templates
1 endpointAgents
19 endpointsGETList AI agents
/ai/agentsLists the workspace's AI agents: what each handles, whether it is live, and which is default. Returns the agents with their name, description, status...GETList an AI agent's versions/ai/agents/{agent}/versionsLists every published version of an agent, newest first, with who published it and why. Returns the versions with their number, note and publish time.GETList an AI agent's simulations/ai/agents/{agent}/simulationsLists the agent's saved simulations and how each has gone lately: passing, flaky or failing over its recent runs. Returns the simulations...GETList a simulation's past runs/ai/agents/{agent}/simulations/{simulation}/runsLists the latest runs of one simulation, newest first, to see whether it passes steadily or only sometimes. Returns the runs with their verdict, when they...POSTCreate an AI agent/ai/agentsCreates an agent, from a template or empty. It starts switched off, as a draft: customers meet it only once it is published and placed somewhere.POSTPreview an AI agent turn/ai/agents/{agent}/previewSends one customer message to the agent's draft or live version and returns its reply. Nothing reaches a customer, and actions answer with their saved test...POSTSave an AI agent simulation/ai/agents/{agent}/simulationsSaves a conversation the agent must keep getting right: who the customer is, what they write, and the checks that say whether the agent did what it should.POSTPublish an AI agent/ai/agents/{agent}/publicationsMakes the agent's draft live: from now on customers meet the agent as the draft describes it. Run its simulations first. Returns the agent as published...POSTRun an AI agent's simulations/ai/agents/{agent}/simulations/runReplays the agent's saved simulations, all of them or the ones named, against its draft or its live version. A simulated customer plays each one and a judge...POSTRestore an AI agent version/ai/agents/{agent}/versions/{version}/restoreCopies a published version into the agent's draft. Customers see no change until the draft is published again. Returns the agent with the restored draft.POSTSave a conversation as a simulation/ai/agents/{agent}/simulations/from-conversationTurns a real conversation into a simulation of the agent, with a scenario written from what the customer said. Returns the saved simulation.GETGet an AI agent/ai/agents/{agent}Reads one agent: its guidance, tone, channels, models, handover rules, where it is placed, and the draft a teammate is working on beside the version that is...GETGet an AI agent version/ai/agents/{agent}/versions/{version}GET /ai/agents/{agent}/versions/{version}: Reads one published version of an agent as it was. Returns the version with its full definition.GETGet an AI agent simulation/ai/agents/{agent}/simulations/{simulation}Reads one saved simulation of an agent, with its last result turn by turn. Returns the simulation with its scenario, messages, checks and last result.PATCHEdit an AI agent's draft/ai/agents/{agent}Changes the agent's draft: guidance, tone, models, knowledge, handover, transfers or placement. Customers see no change until the draft is published.PATCHEdit an AI agent simulation/ai/agents/{agent}/simulations/{simulation}PATCH /ai/agents/{agent}/simulations/{simulation}: Changes a saved simulation's name, scenario, messages, customer or checks. Returns the simulation as saved.DELETEArchive an AI agent/ai/agents/{agent}Archives an agent that is not the default: it is switched off and leaves the list, while its conversations, versions and history stay. It is refused...DELETESwitch an AI agent off/ai/agents/{agent}/publicationsStops the agent taking conversations. Its draft, versions and simulations are kept, and it can be published again. Returns the agent, now off.DELETEDelete an AI agent simulation/ai/agents/{agent}/simulations/{simulation}DELETE /ai/agents/{agent}/simulations/{simulation}: Deletes a saved simulation and its past runs. Returns nothing. dimmi REST API reference.Conversation attributes
3 endpointsGETList AI conversation attributes
/ai/conversation-attributesGET /ai/conversation-attributes: Lists the facts the AI reads off each conversation, active and archived. Returns the attributes with their key, type...POSTAdd an AI conversation attribute/ai/conversation-attributesAdds a fact the AI reads off each conversation and checks again as the customer writes. Workflows can start when it changes and branch on its value.PATCHEdit an AI conversation attribute/ai/conversation-attributes/{attribute}PATCH /ai/conversation-attributes/{attribute}: Changes an attribute's label, description or options, or archives it. Its key and type stay. Returns...Keys
5 endpointsGETList AI provider keys
/ai/keysLists the AI provider connections the agents answer with. Secrets never come back, only a hint. Returns every key with its provider, status, the models it...POSTAdd an AI provider key/ai/keysConnects an AI provider with the workspace's own API key. dimmi checks the key with the provider as it saves; a key the provider refuses is not kept.POSTCheck an AI provider key/ai/keys/{key}/testChecks a provider key with the provider again and stores the fresh status. Returns the key with its status, a reason when it fails, and the models it offers.PATCHChange an AI provider key/ai/keys/{key}Renames a provider key, moves its endpoint or rotates its secret. A new secret or endpoint is checked again at once, and the agents switch to it...DELETERemove an AI provider key/ai/keys/{key}Deletes a provider key and its secret. Refused while an agent or the shared settings still answer with it: point them at another key with PATCH...Placements
1 endpointSettings
2 endpointsGETGet shared AI settings
/ai/settingsReads what every agent shares: the answer and fallback models an agent uses until it picks its own, the classifier, and the monthly spend cap.PATCHChange shared AI settings/ai/settingsPATCH /ai/settings: Changes the models every agent falls back on, or the workspace's monthly spend cap. Returns the settings as saved. dimmi REST API reference.Usage
1 endpointKnowledge
18 endpointsGETList knowledge sources
/knowledge/sourcesLists the workspace's knowledge sources and how each one's syncing goes. Returns every source with its type, mode, targets, schedule, status, counts...GETList knowledge source types/knowledge/source-typesLists the tools a knowledge source can be added from, with the settings each needs, the modes it supports, what it can feed and how often it may sync.GETList a knowledge source's syncs/knowledge/sources/{source}/syncsGET /knowledge/sources/{source}/syncs: Lists a source's latest syncs and what each read, changed or failed on. Returns the syncs with their trigger, status...GETList a knowledge source's documents/knowledge/sources/{source}/documentsLists the documents a source read, by status or words in the title or path. Returns a page of documents with their title, path, status and error.POSTAdd a knowledge source/knowledge/sourcesConnects a tool as a knowledge source. Its settings are checked against the real service before it is saved, so a wrong key fails at once. Only use...POSTUpload knowledge files/knowledge/uploadsUploads a .zip of Markdown files, or one .md file, of at most 50 MB for a knowledge source to read. It needs a multipart form with the file in the field...POSTSync a knowledge source/knowledge/sources/{source}/syncsPOST /knowledge/sources/{source}/syncs: Starts reading a source again now, so the agents answer from what it holds today. Returns the sync that started.POSTTurn a source into articles/knowledge/sources/{source}/importsTurns a synced source's documents into articles of a help center, published unless the document was a draft. A document imported before updates its article...POSTRead a document again/knowledge/sources/{source}/documents/{document}/syncsPOST /knowledge/sources/{source}/documents/{document}/syncs: Reads one document of a source again now, without walking the whole source. Returns the sync...POSTSet a document aside/knowledge/sources/{source}/documents/{document}/exclusionLeaves one document out of the knowledge for good: the agents stop answering from it, and it stays out through every later sync until let back in.GETGet knowledge usage/knowledge/usageReads what the workspace's knowledge cost this month, per source and kind of work. Returns the month's start, its total cost in micro-dollars and a line per...GETGet knowledge settings/knowledge/settingsReads the embedding model knowledge search uses, and one being built to replace it. Returns the active model, its provider key and the progress of a model...GETGet a knowledge source/knowledge/sources/{source}Reads one source. Secrets are never sent back; secrets_set names the ones stored. Returns the source with its settings, patterns, schedule, status, counts...PATCHChange the embedding model/knowledge/settingsPicks the model knowledge search uses. It is checked with one tiny embedding, then built in the background while searches stay on the old one, and switched...PATCHChange a knowledge source/knowledge/sources/{source}Changes a source's name, settings, patterns, targets or schedule. A change of what it reads starts a sync at once. Type and mode never change.DELETERemove a knowledge source/knowledge/sources/{source}DELETE /knowledge/sources/{source}: Removes a source with every document it read; the agents stop answering from them. Returns nothing once it is removed.DELETECancel a knowledge source sync/knowledge/sources/{source}/syncs/{run}DELETE /knowledge/sources/{source}/syncs/{run}: Stops a running sync. What it already read stays. Returns the sync, now stopped. dimmi REST API reference.DELETELet a document back in/knowledge/sources/{source}/documents/{document}/exclusionDELETE /knowledge/sources/{source}/documents/{document}/exclusion: Lets a set-aside document back into the knowledge and reads it again. Returns the sync...Procedures
18 endpointsGETList procedures
/proceduresLists the procedures, the step-by-step playbooks the AI agent follows for kinds of requests. Returns every procedure with its status and how many...GETList a procedure's versions/procedures/{procedure}/versionsLists every published version of a procedure, newest first, with who published it and why. Returns the versions with their number, note and publish time.GETList a procedure's simulations/procedures/{procedure}/test-casesGET /procedures/{procedure}/test-cases: Lists the saved simulations of a procedure and how each last went. Returns the simulations with their messages...POSTCreate a procedure/proceduresPOST /procedures: Creates an empty draft procedure. The agent does not follow it until published. Returns the draft procedure. dimmi REST API reference.POSTPreview a procedure turn/procedures/{procedure}/simulateSends one customer message to the AI agent as it would follow this procedure, and returns its reply. Nothing reaches a customer and actions answer...POSTSave a procedure simulation/procedures/{procedure}/test-casesSaves a chat as a simulation: an AI-played customer replays it against the procedure, on the date it was saved, and the checks say whether the agent did...POSTPublish a procedure/procedures/{procedure}/publicationsMakes the working copy live: the AI agent follows it with customers from the next message. Every action it takes must exist and be published.POSTRun procedure simulations/procedures/{procedure}/test-cases/runRuns a procedure's saved simulations against its working copy and waits for the verdicts. Each run calls real models for the agent, the customer...POSTRestore a procedure version/procedures/{procedure}/versions/{version}/restoreCopies a published version into the working copy. Customers see no change until it is published again. Returns the procedure with the restored working copy.GETGet a procedure/procedures/{procedure}Reads one procedure's working copy and whether it differs from the live one. Returns the procedure with its definition, status and lock_version.GETGet a procedure's metrics/procedures/{procedure}/metricsReads how a procedure did in real conversations: how often it ran, finished and handed over. Returns the counts, rates, a daily series and where...GETGet a procedure version/procedures/{procedure}/versions/{version}GET /procedures/{procedure}/versions/{version}: Reads one published version of a procedure as it was. Returns the version with its full definition.GETGet a procedure simulation/procedures/{procedure}/test-cases/{test_case}Reads one saved simulation of a procedure and its last result. Returns the simulation with its messages, checks, date and last result turn by turn.PATCHEdit a procedure/procedures/{procedure}Saves the name or the working copy of a procedure. Customers see no change until it is published. Returns the procedure as saved, with its new lock_version.PATCHEdit a procedure simulation/procedures/{procedure}/test-cases/{test_case}PATCH /procedures/{procedure}/test-cases/{test_case}: Changes a saved simulation's name, messages, customer or checks. Returns the simulation as saved.DELETEDelete a procedure/procedures/{procedure}DELETE /procedures/{procedure}: Deletes a procedure. The agent stops following it at once if it was live. dimmi REST API reference.DELETEUnpublish a procedure/procedures/{procedure}/publicationsDELETE /procedures/{procedure}/publications: Takes a procedure out of the AI agent's hands at once. The working copy stays. Returns the procedure, unpublished.DELETEDelete a procedure simulation/procedures/{procedure}/test-cases/{test_case}DELETE /procedures/{procedure}/test-cases/{test_case}: Deletes a saved simulation and its last result. dimmi REST API reference.