{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "The API key is invalid or has been revoked.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "permission_error",
"code": "plan_feature_unavailable",
"message": "Workflows aren't available for this project yet.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "No workflow with this ID exists, or this API key can't access it.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "invalid_request_error",
"code": "validation_failed",
"message": "The name field is required.",
"param": "name",
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw",
"errors": [
{
"param": "name",
"message": "The name field is required."
}
]
}
}
Retrieves a workflow with its definition: its trigger, its steps, and what each step leads to. By default it’s the published version, which is what runs. With version=draft it’s the draft in the dashboard’s builder, with its revision and what’s left before it can be published.
{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "The API key is invalid or has been revoked.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "permission_error",
"code": "plan_feature_unavailable",
"message": "Workflows aren't available for this project yet.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "No workflow with this ID exists, or this API key can't access it.",
"param": null,
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw"
}
}
{
"error": {
"type": "invalid_request_error",
"code": "validation_failed",
"message": "The name field is required.",
"param": "name",
"request_id": "req_8Fq2kLm9TzX4vB7nC1dR5sYw",
"errors": [
{
"param": "name",
"message": "The name field is required."
}
]
}
}
draft: never turned on. active: runs when its trigger events happen. paused: published but turned off. archived: turned off and archived in the dashboard.
Available options:
draft,
active,
paused,
archived
triggers
object[]
required
The events that start the workflow, from the published version, or from the draft if it was never published.
Show child attributes
published_version
object | null
required
The version that runs while the workflow is active. null if it was never published.
Show child attributes
has_unpublished_changes
boolean
required
Whether the draft in the builder differs from the published version.
last_run_status
enum<string> | null
required
How the latest run went. null if it hasn't run.
Available options:
pending,
running,
waiting,
succeeded,
partially_succeeded,
failed,
cancelled,
null
dashboard_url
string<uri>
required
Where to open the workflow in the dashboard's builder.
Only in Retrieve a workflow: the published version's, or the draft's with version=draft. null if the workflow was never published.
Show child attributes
draft
object | null
Only with version=draft. Changes to the draft send revision, and are refused if it changed since.
Show child attributes
validation
object
Only with version=draft: what's left before the draft can be published.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Chatling Documentation","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/chatling-21192973/28-2rxbvH5ywRTMu/logo/chatling-logo.svg?fit=max\u0026auto=format\u0026n=28-2rxbvH5ywRTMu\u0026q=85\u0026s=b2dff50e5e554f9a1821ad6c4e86b8cd","dark":"https://mintcdn.com/chatling-21192973/28-2rxbvH5ywRTMu/logo/chatling-logo-white.svg?fit=max\u0026auto=format\u0026n=28-2rxbvH5ywRTMu\u0026q=85\u0026s=7139297f08e04dea3d5f04e8ff00e18b"},"favicon":"https://mintcdn.com/chatling-21192973/28-2rxbvH5ywRTMu/favicon.svg?fit=max\u0026auto=format\u0026n=28-2rxbvH5ywRTMu\u0026q=85\u0026s=f0289a5a055de1338da1c4cd5d297893","api":{"playground":{"display":"simple"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.chatling.ai/v3"}},"navbar":{"links":[{"href":"https://app.chatling.ai","label":"Dashboard"}]},"footer":{"socials":{"x":"https://twitter.com/chatlingai","linkedin":"https://www.linkedin.com/company/chatlingai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"chatling-21192973","hasAudioNarration":false,"actualSubdomain":"chatling-21192973","customDomains":["docs.chatling.ai"],"gitSource":{"type":"github","owner":"ahm750","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0cf4ae9508b2d5f2b65fff","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Documentation","count":160},{"language":"default","tag":"API Reference","count":92},{"language":"default","tag":"Reference","count":87},{"language":"default","tag":"Chatbot","count":60},{"language":"default","tag":"Builder","count":50},{"language":"default","tag":"Blocks","count":35},{"language":"default","tag":"AI Agent","count":23},{"language":"default","tag":"Web Widget","count":23},{"language":"default","tag":"Conversations","count":15},{"language":"default","tag":"Live Chat","count":13}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/v3/workflows/get-workflow","slug":"/api-reference/v3/workflows/get-workflow","pageMetadata":{"title":"Retrieve a workflow","description":"**Available for AI agents only.**\n\nRetrieves a workflow with its `definition`: its trigger, its steps, and what each step leads to. By default it's the published version, which is what runs. With `version=draft` it's the draft in the dashboard's builder, with its `revision` and what's left before it can be published.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/{workflow}","href":"/api-reference/v3/workflows/get-workflow","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Available for AI agents only.\"\n })\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Retrieves a workflow with its \", _jsx(_components.code, {\n children: \"definition\"\n }), \": its trigger, its steps, and what each step leads to. By default it’s the published version, which is what runs. With \", _jsx(_components.code, {\n children: \"version=draft\"\n }), \" it’s the draft in the dashboard’s builder, with its \", _jsx(_components.code, {\n children: \"revision\"\n }), \" and what’s left before it can be published.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Retrieve a workflow","description":"**Available for AI agents only.**\n\nRetrieves a workflow with its `definition`: its trigger, its steps, and what each step leads to. By default it's the published version, which is what runs. With `version=draft` it's the draft in the dashboard's builder, with its `revision` and what's left before it can be published.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/{workflow}","href":"/api-reference/v3/workflows/get-workflow","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"getWorkflow","tags":["Workflows"],"summary":"Retrieve a workflow","description":"**Available for AI agents only.**\n\nRetrieves a workflow with its `definition`: its trigger, its steps, and what each step leads to. By default it's the published version, which is what runs. With `version=draft` it's the draft in the dashboard's builder, with its `revision` and what's left before it can be published.","x-chatling-permission":{"group":"workflows","access":"read"},"x-chatling-project-wide":false,"x-chatling-agent-types":["ai_agent"],"parameters":["c23301e4-1a5c-4a75-84a8-c8012dfe9e12"],"responses":{"200":"4bb19d61-a677-4b8f-84fa-f9ea7c03bf26","401":"361dadf8-f28e-4229-a3cc-94bf2ba33c22","403":"eb02f627-8c93-4a55-bf90-69dc9f338687","404":"b56e553e-eb8d-4f8f-bc8c-218751ceaca2","422":"52b48af0-3396-481e-bf47-913ce1a00370","429":"f07d64f9-975f-41a4-97c5-9b514814735a"},"method":"get","type":"path","servers":["16086fde-3c32-456e-b395-21dafcd77092"],"security":["8529c987-60c7-4138-9cff-c6fa1c1f2729"],"path":"/workflows/{workflow}","baseUrlOptions":["https://api.chatling.ai/v3"],"title":"Retrieve a workflow","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"c23301e4-1a5c-4a75-84a8-c8012dfe9e12":{"name":"version","in":"query","required":false,"description":"`published` (the default) or `draft`.","schema":{"type":"string","enum":["published","draft"],"default":"published","isRequired":false,"description":"`published` (the default) or `draft`.","uniqueKey":"","typeLabel":"enum\u003cstring>"}},"ea865198-17dd-4fcf-9ff5-2f72d601d4cd":{"name":"workflow","in":"path","required":true,"description":"ID of the workflow.","schema":{"type":"string","isRequired":true,"description":"ID of the workflow.","uniqueKey":"","typeLabel":"string"},"example":"3f2b8c1e-5d4a-4e7b-9c6f-1a2b3c4d5e6f"}},"responses":{"4bb19d61-a677-4b8f-84fa-f9ea7c03bf26":{"description":"The workflow.","content":{"application/json":{"schema":{"type":"object","required":["object","id","agent","name","description","state","triggers","published_version","has_unpublished_changes","last_run_status","dashboard_url","created_at","updated_at"],"properties":{"object":{"const":"workflow","isRequired":true,"uniqueKey":"object","typeLabel":"any"},"id":{"type":"string","example":"3f2b8c1e-5d4a-4e7b-9c6f-1a2b3c4d5e6f","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"agent":{"type":"object","description":"The agent this belongs to.","required":["id","type","name"],"properties":{"id":{"type":"string","description":"ID of the agent, as passed in `agent_id`.","example":"3132353852","isRequired":true,"uniqueKey":"agent.id","typeLabel":"string"},"type":{"type":"string","enum":["ai_agent","chatbot"],"description":"`ai_agent` for an AI agent, at `/agents`, or `chatbot` for a flow-builder chatbot, at `/chatbots`.","isRequired":true,"uniqueKey":"agent.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","example":"Support agent","isRequired":true,"uniqueKey":"agent.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"agent","typeLabel":"object"},"name":{"type":"string","example":"Welcome new conversations","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"description","typeLabel":"string | null"},"state":{"type":"string","enum":["draft","active","paused","archived"],"description":"`draft`: never turned on. `active`: runs when its trigger events happen. `paused`: published but turned off. `archived`: turned off and archived in the dashboard.","isRequired":true,"uniqueKey":"state","typeLabel":"enum\u003cstring>"},"triggers":{"type":"array","description":"The events that start the workflow, from the published version, or from the draft if it was never published.","items":{"type":"object","required":["type","name"],"properties":{"type":{"type":"string","description":"The trigger event, as listed in the workflow catalog's `triggers`.","example":"conversation.created","isRequired":true,"uniqueKey":"triggers.items.[INDEX].type","typeLabel":"string"},"name":{"type":"string","example":"Conversation created","isRequired":true,"uniqueKey":"triggers.items.[INDEX].name","typeLabel":"string"}},"uniqueKey":"triggers.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"triggers","typeLabel":"object[]"},"published_version":{"oneOf":[{"type":"object","description":"The version that runs while the workflow is `active`. `null` if it was never published.","required":["number","published_at"],"properties":{"number":{"type":"integer","example":3,"isRequired":true,"uniqueKey":"published_version.oneOf.0.number","typeLabel":"integer"},"published_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"published_version.oneOf.0.published_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"published_version.oneOf.0.published_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"published_version.oneOf.0.published_at","typeLabel":"string\u003cdate-time> | null"}},"isRequired":true,"uniqueKey":"published_version.oneOf.0","typeLabel":"object"},{"type":"null","description":"The version that runs while the workflow is `active`. `null` if it was never published.","required":["number","published_at"],"properties":{"number":{"type":"integer","example":3},"published_at":{"oneOf":[{"type":"string","format":"date-time"},{"type":"null","format":"date-time"}]}},"isRequired":true,"uniqueKey":"published_version.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"published_version","typeLabel":"object | null"},"has_unpublished_changes":{"type":"boolean","description":"Whether the draft in the builder differs from the published version.","isRequired":true,"uniqueKey":"has_unpublished_changes","typeLabel":"boolean"},"last_run_status":{"oneOf":[{"type":"string","enum":["pending","running","waiting","succeeded","partially_succeeded","failed","cancelled",null],"description":"How the latest run went. `null` if it hasn't run.","isRequired":true,"uniqueKey":"last_run_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["pending","running","waiting","succeeded","partially_succeeded","failed","cancelled",null],"description":"How the latest run went. `null` if it hasn't run.","isRequired":true,"uniqueKey":"last_run_status.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"last_run_status","typeLabel":"enum\u003cstring> | null"},"dashboard_url":{"type":"string","format":"uri","description":"Where to open the workflow in the dashboard's builder.","example":"https://app.chatling.ai/projects/a1b2c3d4e5/chatbots/f6g7h8i9j0/workflows/3f2b8c1e-5d4a-4e7b-9c6f-1a2b3c4d5e6f","isRequired":true,"uniqueKey":"dashboard_url","typeLabel":"string\u003curi>"},"created_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"created_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time> | null"},"updated_at":{"oneOf":[{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","isRequired":true,"uniqueKey":"updated_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time> | null"},"definition":{"oneOf":[{"type":"object","description":"Only in [Retrieve a workflow](/api-reference/v3/workflows/get-workflow): the published version's, or the draft's with `version=draft`. `null` if the workflow was never published.","required":["format_version","trigger","steps","notes"],"properties":{"format_version":{"const":1,"isRequired":true,"uniqueKey":"definition.oneOf.0.format_version","typeLabel":"any"},"trigger":{"type":"object","required":["id","type","events","audience","outputs"],"properties":{"id":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.id.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.id","typeLabel":"string | null"},"type":{"type":"string","enum":["automatic","manual"],"description":"`automatic` runs when any of `events` happens. `manual` is run on demand by a teammate and has no events.","isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.type","typeLabel":"enum\u003cstring>"},"events":{"type":"array","items":{"type":"object","required":["type","filters"],"properties":{"type":{"type":"string","description":"One of the catalog's `triggers`.","example":"conversation.status_changed","isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.events.items.[INDEX].type","typeLabel":"string"},"filters":{"type":"object","additionalProperties":true,"description":"Limits the event, with the catalog's `filters` for it. Each filter takes a value or a list of values.","example":{"to_status":"resolved"},"isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.events.items.[INDEX].filters","typeLabel":"object"}},"uniqueKey":"definition.oneOf.0.trigger.events.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.events","typeLabel":"object[]"},"audience":{"oneOf":[{"type":"object","description":"Who the workflow runs for, tested before it starts. `null` for everyone.","example":{"operator":"all","conditions":[{"scope":"conversation","field":"status","operator":"is","value":"open"}]},"additionalProperties":true,"isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.audience.oneOf.0","typeLabel":"object"},{"type":"null","description":"Who the workflow runs for, tested before it starts. `null` for everyone.","isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.audience.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.audience","typeLabel":"object | null"},"outputs":{"type":"object","required":["next"],"properties":{"next":{"oneOf":[{"type":"string","description":"The first step's ID.","isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.outputs.next.oneOf.0","typeLabel":"string"},{"type":"null","description":"The first step's ID.","isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.outputs.next.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.outputs.next","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"definition.oneOf.0.trigger.outputs","typeLabel":"object"}},"isRequired":true,"uniqueKey":"definition.oneOf.0.trigger","typeLabel":"object"},"steps":{"type":"array","description":"From the trigger, breadth-first, with a branch's paths in order. Steps nothing leads to come last.","items":{"type":"object","required":["id","type","outputs"],"properties":{"id":{"type":"string","example":"8d0f6a52-1c3e-4b7a-9f21-6e4d2c1b0a98","isRequired":true,"uniqueKey":"definition.oneOf.0.steps.items.[INDEX].id","typeLabel":"string"},"type":{"type":"string","enum":["action","branch","wait","end"],"isRequired":true,"uniqueKey":"definition.oneOf.0.steps.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"outputs":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"definition.oneOf.0.steps.items.[INDEX].outputs.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"definition.oneOf.0.steps.items.[INDEX].outputs.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"definition.oneOf.0.steps.items.[INDEX].outputs.additionalProperties","typeLabel":"string | null"},"description":"Each of the step's outputs, with the ID of the step it leads to, or `null` if it ends there. Actions have `next`, or `success` and `failure`. Branches have each path's ID, then `otherwise`.","example":{"next":"0c7b9e14-5a2d-4f3e-8b61-2d9a7c4e1f35"},"isRequired":true,"uniqueKey":"definition.oneOf.0.steps.items.[INDEX].outputs","typeLabel":"object"},"card":{"type":"string","description":"The name of the builder card the step is on, when it has one.","uniqueKey":"definition.oneOf.0.steps.items.[INDEX].card","typeLabel":"string"},"config":{"type":"object","additionalProperties":true,"description":"For actions, `action_type` and the action's settings. For waits, `amount` and `unit`. For branches, the step's `name`.","example":{"action_type":"send_message","message":"Thanks for reaching out, {{contact_fname}}!"},"uniqueKey":"definition.oneOf.0.steps.items.[INDEX].config","typeLabel":"object"},"paths":{"type":"array","description":"Branches only, in the order they're tested.","items":{"type":"object","required":["id","name","condition"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"definition.oneOf.0.steps.items.[INDEX].paths.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"Empty for an unnamed path.","isRequired":true,"uniqueKey":"definition.oneOf.0.steps.items.[INDEX].paths.items.[INDEX].name","typeLabel":"string"},"condition":{"oneOf":[{"type":"object","description":"A condition `{scope, field, operator, value}` with one value, and `variable_name` for workflow variables, or a group `{operator, conditions}` of conditions. A path's condition is one condition or one group, whose `operator` is `all` or `any`, the builder's Match all and Match any; groups aren't nested. To match any of several values, use an `any` group with a condition for each, such as `{\"operator\": \"any\", \"conditions\": [{\"scope\": \"conversation\", \"field\": \"channel\", \"operator\": \"is\", \"value\": \"web\"}, {\"scope\": \"conversation\", \"field\": \"channel\", \"operator\": \"is\", \"value\": \"whatsapp\"}]}`. To exclude a value, use `is_not`. The catalog's `conditions` list each field's operators and values.","example":{"operator":"all","conditions":[{"scope":"conversation","field":"status","operator":"is","value":"open"}]},"additionalProperties":true,"isRequired":true,"uniqueKey":"definition.oneOf.0.steps.items.[INDEX].paths.items.[INDEX].condition.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"definition.oneOf.0.steps.items.[INDEX].paths.items.[INDEX].condition.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"definition.oneOf.0.steps.items.[INDEX].paths.items.[INDEX].condition","typeLabel":"object | null"}},"uniqueKey":"definition.oneOf.0.steps.items.[INDEX].paths.items.[INDEX]","typeLabel":"object"},"uniqueKey":"definition.oneOf.0.steps.items.[INDEX].paths","typeLabel":"object[]"}},"uniqueKey":"definition.oneOf.0.steps.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"definition.oneOf.0.steps","typeLabel":"object[]"},"notes":{"type":"array","description":"Notes left on the builder's canvas.","items":{"type":"object","required":["id","text"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"definition.oneOf.0.notes.items.[INDEX].id","typeLabel":"string"},"text":{"type":"string","example":"Choose the Slack channel for alerts.","isRequired":true,"uniqueKey":"definition.oneOf.0.notes.items.[INDEX].text","typeLabel":"string"}},"uniqueKey":"definition.oneOf.0.notes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"definition.oneOf.0.notes","typeLabel":"object[]"}},"uniqueKey":"definition.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only in [Retrieve a workflow](/api-reference/v3/workflows/get-workflow): the published version's, or the draft's with `version=draft`. `null` if the workflow was never published.","uniqueKey":"definition.oneOf.1","typeLabel":"null"}],"uniqueKey":"definition","typeLabel":"object | null"},"draft":{"oneOf":[{"type":"object","description":"Only with `version=draft`. Changes to the draft send `revision`, and are refused if it changed since.","required":["version","revision"],"properties":{"version":{"type":"integer","description":"The version the draft becomes when it's published.","example":4,"isRequired":true,"uniqueKey":"draft.oneOf.0.version","typeLabel":"integer"},"revision":{"type":"integer","description":"Increases with every change to the draft.","example":12,"isRequired":true,"uniqueKey":"draft.oneOf.0.revision","typeLabel":"integer"}},"uniqueKey":"draft.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only with `version=draft`. Changes to the draft send `revision`, and are refused if it changed since.","required":["version","revision"],"properties":{"version":{"type":"integer","description":"The version the draft becomes when it's published.","example":4},"revision":{"type":"integer","description":"Increases with every change to the draft.","example":12}},"uniqueKey":"draft.oneOf.1","typeLabel":"null"}],"uniqueKey":"draft","typeLabel":"object | null"},"validation":{"type":"object","description":"Only with `version=draft`: what's left before the draft can be published.","required":["ready_to_publish","issues"],"properties":{"ready_to_publish":{"type":"boolean","description":"Whether the draft has no issues.","isRequired":true,"uniqueKey":"validation.ready_to_publish","typeLabel":"boolean"},"issues":{"type":"array","items":{"type":"object","required":["step_id","path","code","message","fix"],"properties":{"step_id":{"oneOf":[{"type":"string","description":"The step or trigger with the issue. `null` for the whole workflow.","isRequired":true,"uniqueKey":"validation.issues.items.[INDEX].step_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The step or trigger with the issue. `null` for the whole workflow.","isRequired":true,"uniqueKey":"validation.issues.items.[INDEX].step_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"validation.issues.items.[INDEX].step_id","typeLabel":"string | null"},"path":{"oneOf":[{"type":"string","description":"Where in the step, such as `config.message` or `paths.0.condition`.","example":"config.slack_account_id","isRequired":true,"uniqueKey":"validation.issues.items.[INDEX].path.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where in the step, such as `config.message` or `paths.0.condition`.","example":"config.slack_account_id","isRequired":true,"uniqueKey":"validation.issues.items.[INDEX].path.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"validation.issues.items.[INDEX].path","typeLabel":"string | null"},"code":{"type":"string","example":"missing_action_configuration","isRequired":true,"uniqueKey":"validation.issues.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","example":"Slack: Choose a Slack account.","isRequired":true,"uniqueKey":"validation.issues.items.[INDEX].message","typeLabel":"string"},"fix":{"type":"string","enum":["app","editor","plan"],"description":"Who fixes it: `app`, by changing the workflow; `editor`, the user in the dashboard's builder, for what comes from a connected account; `plan`, an upgrade.","isRequired":true,"uniqueKey":"validation.issues.items.[INDEX].fix","typeLabel":"enum\u003cstring>"}},"uniqueKey":"validation.issues.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"validation.issues","typeLabel":"object[]"}},"uniqueKey":"validation","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"workflow","id":"3f2b8c1e-5d4a-4e7b-9c6f-1a2b3c4d5e6f","agent":{"id":"3132353852","type":"ai_agent","name":"Support agent"},"name":"Welcome new conversations","description":"\u003cstring>","state":"draft","triggers":[{"type":"conversation.created","name":"Conversation created"}],"published_version":{"number":3,"published_at":"2023-11-07T05:31:56Z"},"has_unpublished_changes":true,"last_run_status":"pending","dashboard_url":"https://app.chatling.ai/projects/a1b2c3d4e5/chatbots/f6g7h8i9j0/workflows/3f2b8c1e-5d4a-4e7b-9c6f-1a2b3c4d5e6f","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","definition":{"format_version":1,"trigger":{"id":"\u003cstring>","type":"automatic","events":[{"type":"conversation.status_changed","filters":{"to_status":"resolved"}}],"audience":{"operator":"all","conditions":[{"scope":"conversation","field":"status","operator":"is","value":"open"}]},"outputs":{"next":"\u003cstring>"}},"steps":[{"id":"8d0f6a52-1c3e-4b7a-9f21-6e4d2c1b0a98","type":"action","outputs":{"next":"0c7b9e14-5a2d-4f3e-8b61-2d9a7c4e1f35"},"card":"\u003cstring>","config":{"action_type":"send_message","message":"Thanks for reaching out, {{contact_fname}}!"},"paths":[{"id":"\u003cstring>","name":"\u003cstring>","condition":{"operator":"all","conditions":[{"scope":"conversation","field":"status","operator":"is","value":"open"}]}}]}],"notes":[{"id":"\u003cstring>","text":"Choose the Slack channel for alerts."}]},"draft":{"version":4,"revision":12},"validation":{"ready_to_publish":true,"issues":[{"step_id":"\u003cstring>","path":"config.slack_account_id","code":"missing_action_configuration","message":"Slack: Choose a Slack account.","fix":"app"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"361dadf8-f28e-4229-a3cc-94bf2ba33c22":{"description":"`missing_api_key`, `invalid_api_key`, or `api_key_expired`.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is invalid or has been revoked.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"authentication_error","code":"invalid_api_key","message":"The API key is invalid or has been revoked.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}}}},"exampleType":"examples"}},"exampleType":"examples"},"eb02f627-8c93-4a55-bf90-69dc9f338687":{"description":"`insufficient_permission`, `project_suspended`, or `plan_feature_unavailable` (no API access on the plan, or workflows aren't available for the project yet).","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"permission_error","code":"plan_feature_unavailable","message":"Workflows aren't available for this project yet.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"permission_error","code":"plan_feature_unavailable","message":"Workflows aren't available for this project yet.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}}}},"exampleType":"examples"}},"exampleType":"examples"},"b56e553e-eb8d-4f8f-bc8c-218751ceaca2":{"description":"`resource_not_found`: No workflow with this ID exists in the project, or the key can't access its AI agent.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"not_found_error","code":"resource_not_found","message":"No workflow with this ID exists, or this API key can't access it.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"not_found_error","code":"resource_not_found","message":"No workflow with this ID exists, or this API key can't access it.","param":null,"request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw"}}}},"exampleType":"examples"}},"exampleType":"examples"},"52b48af0-3396-481e-bf47-913ce1a00370":{"description":"`validation_failed`, or `invalid_cursor` for lists.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"type":"invalid_request_error","code":"validation_failed","message":"The name field is required.","param":"name","request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw","errors":[{"param":"name","message":"The name field is required."}]}},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","code":"validation_failed","message":"The name field is required.","param":"name","request_id":"req_8Fq2kLm9TzX4vB7nC1dR5sYw","errors":[{"param":"name","message":"The name field is required."}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"f07d64f9-975f-41a4-97c5-9b514814735a":{"description":"`rate_limit_exceeded`.","headers":{"Retry-After":{"description":"The number of seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param","request_id"],"properties":{"type":{"type":"string","enum":["authentication_error","permission_error","not_found_error","invalid_request_error","idempotency_error","rate_limit_error","api_error"],"description":"The type of error returned.","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"A short string identifying the error. Codes are stable, so handle errors by `code`. New codes may be added.","examples":["validation_failed","insufficient_permission","resource_not_found"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message with more details about the error. The wording can change, so don't parse it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"If the error is parameter-specific, the parameter related to the error, in dot notation for nested fields, such as `member_ids.1`. For `validation_failed`, the first entry of `errors`.","isRequired":true,"uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.param","typeLabel":"string | null"},"request_id":{"type":"string","description":"The ID of the request, also returned in the `X-Request-Id` header. Include it when you contact support.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"errors":{"type":"array","description":"For `validation_failed` only: every invalid parameter. The top-level `param` and `message` match the first entry.","items":{"type":"object","required":["param","message"],"properties":{"param":{"type":"string","description":"The invalid parameter, in dot notation for nested fields.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].param","typeLabel":"string"},"message":{"type":"string","description":"A human-readable message about the problem. The wording can change.","isRequired":true,"uniqueKey":"error.errors.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"authentication_error","code":"validation_failed","message":"\u003cstring>","param":"\u003cstring>","request_id":"\u003cstring>","errors":[{"param":"\u003cstring>","message":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"8529c987-60c7-4138-9cff-c6fa1c1f2729":{"apiKey":{"type":"http","scheme":"bearer","description":"A project API key, created in the dashboard.","scopes":[],"schemeName":"apiKey"}}},"servers":{"16086fde-3c32-456e-b395-21dafcd77092":{"url":"https://api.chatling.ai/v3"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"A project API key, created in the dashboard.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A project API key, created in the dashboard.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"api-reference/v3/openapi.json"},"subdomain":"chatling-21192973","siteName":"Chatling Documentation","title":"Retrieve a workflow - Chatling Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-30T03:59:48.922Z","originalFileLocation":"api-reference/v3/workflows/get-workflow.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Available for AI agents only. Retrieves a workflow with its definition: its trigger, its steps, and what each step leads to. By default it\u0026#x27;s the published version, which is what runs. With version=draft it\u0026#x27;s the draft in the dashboard\u0026#x27;s builder, with its revision and what\u0026#x27;s left before it can be published.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Chatling Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Retrieve a workflow - Chatling Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Available for AI agents only. Retrieves a workflow with its definition: its trigger, its steps, and what each step leads to. By default it\u0026#x27;s the published version, which is what runs. With version=draft it\u0026#x27;s the draft in the dashboard\u0026#x27;s builder, with its revision and what\u0026#x27;s left before it can be published.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Chatling Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.chatling.ai/api-reference/v3/workflows/get-workflow\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://chatling-21192973.mintlify.site/_mintlify/api/og/v2?division=Workflows\u0026amp;title=Retrieve+a+workflow\u0026amp;description=**Available+for+AI+agents+only.**%0A%0ARetrieves+a+workflow+with+its+%60definition%60%3A+its+trigger%2C+its+steps%2C+and+what+each+step+leads+to.+By+default+it%27s+the+publishe\u0026amp;theme=ab88d30c4ba459aae5018e6e\u0026amp;signature=bf0027f1ab216de96b045a7789e3e21329ba9690157786664b5a6f370dd4a101\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Retrieve a workflow - Chatling Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Available for AI agents only. Retrieves a workflow with its definition: its trigger, its steps, and what each step leads to. By default it\u0026#x27;s the published version, which is what runs. With version=draft it\u0026#x27;s the draft in the dashboard\u0026#x27;s builder, with its revision and what\u0026#x27;s left before it can be published.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://chatling-21192973.mintlify.site/_mintlify/api/og/v2?division=Workflows\u0026amp;title=Retrieve+a+workflow\u0026amp;description=**Available+for+AI+agents+only.**%0A%0ARetrieves+a+workflow+with+its+%60definition%60%3A+its+trigger%2C+its+steps%2C+and+what+each+step+leads+to.+By+default+it%27s+the+publishe\u0026amp;theme=ab88d30c4ba459aae5018e6e\u0026amp;signature=bf0027f1ab216de96b045a7789e3e21329ba9690157786664b5a6f370dd4a101\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/chatling-21192973/I8bfejheDKLkYdJT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Chatling Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.chatling.ai/api-reference/v3/workflows/get-workflow\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v3/workflows/get-workflow.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.chatling.ai/#organization\",\"name\":\"Chatling Documentation\",\"url\":\"https://docs.chatling.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/chatling-21192973/28-2rxbvH5ywRTMu/logo/chatling-logo.svg?fit=max\u0026auto=format\u0026n=28-2rxbvH5ywRTMu\u0026q=85\u0026s=b2dff50e5e554f9a1821ad6c4e86b8cd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.chatling.ai#website\",\"name\":\"Chatling Documentation\",\"url\":\"https://docs.chatling.ai\",\"publisher\":{\"@id\":\"https://docs.chatling.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.chatling.ai/api-reference/v3/workflows/get-workflow#webpage\",\"url\":\"https://docs.chatling.ai/api-reference/v3/workflows/get-workflow\",\"name\":\"Retrieve a workflow\",\"description\":\"Available for AI agents only. Retrieves a workflow with its definition: its trigger, its steps, and what each step leads to. By default it's the published version, which is what runs. With version=draft it's the draft in the dashboard's builder, with its revision and what's left before it can be published.\",\"dateModified\":\"2026-11-30T03:59:48.922Z\",\"isPartOf\":{\"@id\":\"https://docs.chatling.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.chatling.ai/api-reference/v3/workflows/get-workflow#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.chatling.ai/api-reference/v3/workflows/get-workflow#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://docs.chatling.ai/api-reference/v3/api-key/get-current-api-key\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Workflows\",\"item\":\"https://docs.chatling.ai/api-reference/v3/workflows/list-workflows\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Retrieve a workflow\",\"item\":\"https://docs.chatling.ai/api-reference/v3/workflows/get-workflow\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.chatling.ai/api-reference/v3/workflows/get-workflow#apireference\",\"headline\":\"Retrieve a workflow\",\"name\":\"Retrieve a workflow\",\"description\":\"Available for AI agents only. Retrieves a workflow with its definition: its trigger, its steps, and what each step leads to. By default it's the published version, which is what runs. With version=draft it's the draft in the dashboard's builder, with its revision and what's left before it can be published.\",\"url\":\"https://docs.chatling.ai/api-reference/v3/workflows/get-workflow\",\"mainEntityOfPage\":{\"@id\":\"https://docs.chatling.ai/api-reference/v3/workflows/get-workflow#webpage\"},\"dateModified\":\"2026-11-30T03:59:48.922Z\",\"publisher\":{\"@id\":\"https://docs.chatling.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.chatling.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Chatling Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Chatling Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/v3/workflows/get-workflow.md","siteName":"Chatling Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Get started","pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/api-reference/v3/introduction"},{"title":"Authentication","href":"/api-reference/v3/authentication"},{"title":"Errors","href":"/api-reference/v3/errors"},{"title":"Pagination","href":"/api-reference/v3/pagination"},{"title":"MCP server","href":"/api-reference/v3/mcp"}]},{"group":"Reference","pages":[{"group":"API key","pages":[{"title":"Retrieve the current API key","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /me","href":"/api-reference/v3/api-key/get-current-api-key"}]},{"group":"Project","pages":[{"title":"Retrieve the project","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /project","href":"/api-reference/v3/project/get-project"},{"title":"Update the project","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /project","href":"/api-reference/v3/project/update-project"},{"title":"Retrieve usage","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /usage","href":"/api-reference/v3/project/get-usage"}]},{"group":"Members","pages":[{"title":"List members","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /members","href":"/api-reference/v3/members/list-members"}]},{"group":"AI models","pages":[{"title":"List AI models","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /models","href":"/api-reference/v3/ai-models/list-models"}]},{"group":"Agents","pages":[{"title":"List AI agents","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /agents","href":"/api-reference/v3/agents/list-agents"},{"title":"Create an AI agent","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /agents","href":"/api-reference/v3/agents/create-agent"},{"title":"Retrieve an AI agent","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /agents/{agent}","href":"/api-reference/v3/agents/get-agent"},{"title":"Delete an AI agent","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /agents/{agent}","href":"/api-reference/v3/agents/delete-agent"},{"title":"Update an AI agent","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /agents/{agent}","href":"/api-reference/v3/agents/update-agent"},{"title":"Duplicate an AI agent","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /agents/{agent}/duplicate","href":"/api-reference/v3/agents/duplicate-agent"}]},{"group":"Chatbots","pages":[{"title":"List chatbots","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /chatbots","href":"/api-reference/v3/chatbots/list-chatbots"},{"title":"Create a chatbot","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /chatbots","href":"/api-reference/v3/chatbots/create-chatbot"},{"title":"List chatbot templates","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /chatbots/templates","href":"/api-reference/v3/chatbots/list-chatbot-templates"},{"title":"Retrieve a chatbot","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /chatbots/{chatbot}","href":"/api-reference/v3/chatbots/get-chatbot"},{"title":"Delete a chatbot","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /chatbots/{chatbot}","href":"/api-reference/v3/chatbots/delete-chatbot"},{"title":"Update a chatbot","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /chatbots/{chatbot}","href":"/api-reference/v3/chatbots/update-chatbot"},{"title":"Duplicate a chatbot","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /chatbots/{chatbot}/duplicate","href":"/api-reference/v3/chatbots/duplicate-chatbot"}]},{"group":"Analytics","pages":[{"title":"Get the analytics overview","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /analytics/overview","href":"/api-reference/v3/analytics/get-analytics-overview"},{"title":"List countries","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /analytics/countries","href":"/api-reference/v3/analytics/list-analytics-countries"},{"title":"List channels","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /analytics/channels","href":"/api-reference/v3/analytics/list-analytics-channels"},{"title":"List pages","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /analytics/pages","href":"/api-reference/v3/analytics/list-analytics-pages"},{"title":"List topics by conversations","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /analytics/topics","href":"/api-reference/v3/analytics/list-analytics-topics"},{"title":"List busiest hours","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /analytics/hours","href":"/api-reference/v3/analytics/list-analytics-hours"}]},{"group":"Channels","pages":[{"title":"List channels","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /channels","href":"/api-reference/v3/channels/list-channels"},{"title":"Update a channel's settings","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /channels/{channel}","href":"/api-reference/v3/channels/update-channel"}]},{"group":"WhatsApp","pages":[{"title":"List WhatsApp templates","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /whatsapp/templates","href":"/api-reference/v3/whatsapp/list-whatsapp-templates"},{"title":"Refresh WhatsApp templates","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /whatsapp/templates/refresh","href":"/api-reference/v3/whatsapp/refresh-whatsapp-templates"},{"title":"Retrieve a WhatsApp template","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /whatsapp/templates/{template}","href":"/api-reference/v3/whatsapp/get-whatsapp-template"},{"title":"Delete a WhatsApp template","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /whatsapp/templates/{template}","href":"/api-reference/v3/whatsapp/delete-whatsapp-template"},{"title":"Send a WhatsApp template","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /whatsapp/messages","href":"/api-reference/v3/whatsapp/send-whatsapp-template"}]},{"group":"Conversations","pages":[{"title":"List conversations","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations","href":"/api-reference/v3/conversations/list-conversations"},{"title":"Start a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations","href":"/api-reference/v3/conversations/start-conversation"},{"title":"Retrieve a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations/{conversation}","href":"/api-reference/v3/conversations/get-conversation"},{"title":"Delete a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /conversations/{conversation}","href":"/api-reference/v3/conversations/delete-conversation"},{"title":"Update a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /conversations/{conversation}","href":"/api-reference/v3/conversations/update-conversation"},{"title":"Retrieve a conversation's usage","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations/{conversation}/usage","href":"/api-reference/v3/conversations/get-conversation-usage"},{"title":"List the messages of a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations/{conversation}/messages","href":"/api-reference/v3/conversations/list-conversation-messages"},{"title":"Send a user message","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/messages","href":"/api-reference/v3/conversations/send-user-message"},{"title":"Update a message","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /conversations/{conversation}/messages/{message}","href":"/api-reference/v3/conversations/update-message"},{"title":"Send a reply","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/replies","href":"/api-reference/v3/conversations/send-reply"},{"title":"Add a note","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/notes","href":"/api-reference/v3/conversations/send-note"},{"title":"End a conversation","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/end","href":"/api-reference/v3/conversations/end-conversation"},{"title":"Upload an attachment","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /conversations/{conversation}/attachments","href":"/api-reference/v3/conversations/upload-attachment"},{"title":"Delete an attachment","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /conversations/{conversation}/attachments/{attachment}","href":"/api-reference/v3/conversations/delete-attachment"},{"title":"Download a message attachment","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /conversations/{conversation}/messages/{message}/attachments/{attachment}","href":"/api-reference/v3/conversations/download-message-attachment"}]},{"group":"Contacts","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /contacts","href":"/api-reference/v3/contacts/list-contacts"},{"title":"Create a contact","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /contacts","href":"/api-reference/v3/contacts/create-contact"},{"title":"Retrieve a contact","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /contacts/{contact}","href":"/api-reference/v3/contacts/get-contact"},{"title":"Delete a contact","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /contacts/{contact}","href":"/api-reference/v3/contacts/delete-contact"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /contacts/{contact}","href":"/api-reference/v3/contacts/update-contact"}]},{"group":"Knowledge base","pages":[{"title":"Get a knowledge base summary","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /knowledge-base/summary","href":"/api-reference/v3/knowledge-base/get-knowledge-base-summary"},{"title":"List knowledge base sources","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /knowledge-base/sources","href":"/api-reference/v3/knowledge-base/list-knowledge-base-sources"},{"title":"Add a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources","href":"/api-reference/v3/knowledge-base/create-knowledge-base-source"},{"title":"Create a document upload","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/uploads","href":"/api-reference/v3/knowledge-base/create-knowledge-base-upload"},{"title":"Add knowledge base sources in bulk","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources/batch","href":"/api-reference/v3/knowledge-base/create-knowledge-base-sources"},{"title":"Retrieve a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /knowledge-base/sources/{source}","href":"/api-reference/v3/knowledge-base/get-knowledge-base-source"},{"title":"Delete a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /knowledge-base/sources/{source}","href":"/api-reference/v3/knowledge-base/delete-knowledge-base-source"},{"title":"Update a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /knowledge-base/sources/{source}","href":"/api-reference/v3/knowledge-base/update-knowledge-base-source"},{"title":"Delete knowledge base sources in bulk","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources/batch-delete","href":"/api-reference/v3/knowledge-base/delete-knowledge-base-sources"},{"title":"Resync a knowledge base source","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources/{source}/resync","href":"/api-reference/v3/knowledge-base/resync-knowledge-base-source"},{"title":"Resync knowledge base sources in bulk","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /knowledge-base/sources/batch-resync","href":"/api-reference/v3/knowledge-base/resync-knowledge-base-sources"}]},{"group":"Labels","pages":[{"title":"List labels","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /labels","href":"/api-reference/v3/labels/list-labels"},{"title":"Create a label","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /labels","href":"/api-reference/v3/labels/create-label"},{"title":"Retrieve a label","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /labels/{label}","href":"/api-reference/v3/labels/get-label"},{"title":"Delete a label","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /labels/{label}","href":"/api-reference/v3/labels/delete-label"},{"title":"Update a label","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /labels/{label}","href":"/api-reference/v3/labels/update-label"}]},{"group":"Teams","pages":[{"title":"List teams","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /teams","href":"/api-reference/v3/teams/list-teams"},{"title":"Create a team","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /teams","href":"/api-reference/v3/teams/create-team"},{"title":"Retrieve a team","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /teams/{team}","href":"/api-reference/v3/teams/get-team"},{"title":"Delete a team","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /teams/{team}","href":"/api-reference/v3/teams/delete-team"},{"title":"Update a team","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /teams/{team}","href":"/api-reference/v3/teams/update-team"},{"title":"Add a team member","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json put /teams/{team}/members/{account}","href":"/api-reference/v3/teams/add-team-member"},{"title":"Remove a team member","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /teams/{team}/members/{account}","href":"/api-reference/v3/teams/remove-team-member"}]},{"group":"Topics","pages":[{"title":"List topics","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /topics","href":"/api-reference/v3/topics/list-topics"}]},{"group":"Variables","pages":[{"title":"List variables","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /variables","href":"/api-reference/v3/variables/list-variables"},{"title":"Create a variable","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json post /variables","href":"/api-reference/v3/variables/create-variable"},{"title":"Retrieve a variable","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /variables/{variable}","href":"/api-reference/v3/variables/get-variable"},{"title":"Delete a variable","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json delete /variables/{variable}","href":"/api-reference/v3/variables/delete-variable"},{"title":"Update a variable","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /variables/{variable}","href":"/api-reference/v3/variables/update-variable"}]},{"group":"Workflows","pages":[{"title":"List workflows","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows","href":"/api-reference/v3/workflows/list-workflows"},{"title":"Retrieve the workflow catalog","description":"**Available for AI agents only.**\n\nLists what an AI agent's workflows can be built from on the project's plan: the trigger events, the actions and whether the plan includes them, the conditions branch steps can test, waits, and the limits on one workflow. It also shows how many workflows and runs the plan allows.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/catalog","href":"/api-reference/v3/workflows/get-workflow-catalog"},{"title":"Retrieve a workflow","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/{workflow}","href":"/api-reference/v3/workflows/get-workflow"},{"title":"Update a workflow","description":"**Available for AI agents only.**\n\nTurns a published workflow on or off. A workflow that is on runs its published version on users' conversations and contacts whenever its trigger events happen, so this needs publish access. Workflows are built, changed, and published in the dashboard.","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json patch /workflows/{workflow}","href":"/api-reference/v3/workflows/update-workflow"},{"title":"List workflow runs","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/{workflow}/runs","href":"/api-reference/v3/workflows/list-workflow-runs"},{"title":"Retrieve a workflow run","deprecated":null,"version":null,"openapi":"/api-reference/v3/openapi.json get /workflows/{workflow}/runs/{run}","href":"/api-reference/v3/workflows/get-workflow-run"}]}]}]}]},"basePath":"","title":"Retrieve a workflow - Chatling Documentation","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}