API reference
AI Flows & Agents
6 endpoints. Add your API key in the authentication panel to send test requests from this page.
List AI agents (personification)
/api/external/v1/agentsReturns a paginated list of all AI agent personification personas available to the user. Agents are personifications of flows with specific settings (voice, language, knowledge base).
Parameters
pageinteger (int32)queryPage number (0-indexed)
sizeinteger (int32)queryItems per page (max 100)
Responses
200Paginated list of agents401Missing or invalid API key403Key is valid but lacks access to this resource404Requested resource not found
List AI flows (logic)
/api/external/v1/flowsReturns a paginated list of all AI flows available to the user.
Flows contain the AI instructions and logic. Use the apiId in your job creation requests.
Parameters
pageinteger (int32)queryPage number (0-indexed)
sizeinteger (int32)queryItems per page (max 100)
Responses
200Paginated list of flows401Missing or invalid API key403Key is valid but lacks access to this resource404Requested resource not found
Create AI flow
/api/external/v1/flowsCreates a new AI flow (logic configuration) for call or chat personification.
Request body application/json
idstring (uuid)versioninteger (int32)namestringdescriptionstringiconKeystringiconColorstringapiIdstringvariableIdsarray of string (uuid)structuredOutputIdsarray of string (uuid)structuredInputIdsarray of string (uuid)promptModuleIdsarray of string (uuid)toolIdsarray of string (uuid)dataSourceIdsarray of string (uuid)pronunciationDictionaryIdsarray of string (uuid)actionTriggerIdsarray of string (uuid)localPronunciationDictionariesarray of objectlocalActionTriggersarray of objectactionTriggerStateVisibilityRulesobjectbuiltinToolIdsarray of stringlocalPromptModulesarray of objectlocalToolsarray of objecttoolIntegrationCredentialLinksobjecttoolActivationOverridesobjecttoolMockModeOverridesobjectsessionStatesarray of objecttoolStateVisibilityRulesobjecttoolExecutionGuardsobjecttoolAttachmentSettingsobjectPer attached tool, keyed like toolStateVisibilityRules: {runOnVoice, options}. runOnVoice: on the realtime speech engine, the voice model calls the tool itself instead of the brain (screen tools default to true). options: the tool's own settings.
outputStateVisibilityRulesobjectpromptModuleStateVisibilityRulesobjectevaluationIdsarray of string (uuid)evaluationStateVisibilityRulesobjectstateGraphobjectevaluationEnforcementstringskillIdsarray of string (uuid)builtinSkillIdsarray of stringlocalSkillsarray of objectskillActivationOverridesobjectskillLoadingModeOverridesobjectskillRealtimeVoiceOverridesobjectRealtime speech engine: per attached Skill, keyed like skillLoadingModeOverrides (global::<skillId>, local::<name>, sys::<name>), true puts a fully loaded Skill's content into the realtime voice's prompt too. Absent or false: the brain behind the voice holds it and the voice sees a catalog line.
skillLifecycleOverridesobjectskillInclusionModeOverridesobjectskillChildInclusionModeOverridesobjectknowledgeBaseLifecycleOverridesobjectskillStateVisibilityRulesobjectmcpServerIdsarray of string (uuid)localMcpServersarray of objectmultimediaLinksarray of objectmcpActivationOverridesobjectmcpExposureModeOverridesobjectmcpToolFilterOverridesobjectmcpInclusionOverridesobjectmcpStateVisibilityRulesobjectsmartMcpConfigobjectconversationMemoryConfigobjectcontextAttachmentsarray of objectagenticConfigobjectartificialSkillCatalogEnabledbooleanskillLoadToolEnabledbooleanskillReadToolEnabledbooleanskillManagementToolsEnabledbooleanlocalVariablesarray of objectlocalStructuredOutputsarray of objectlocalStructuredInputsarray of objectdataSourcesarray of objectknowledgeBaseobjectapiConfigobjectinfrastructurePreferencesobjectworkAutonomyConfigobjectautomaticLearningConfigobjectworkCompactionLearningConfigobjectsandboxConfigobjectsandboxDefinitionIdstring (uuid)browserConfigobjectdatabaseConfigobjectdatabaseDefinitionIdstring (uuid)workTaskModestringknowledgeBaseRefsarray of objectknowledgeBaseStateVisibilityRulesobjectmasterPromptstringrealtimeMasterPromptstringRealtime speech engine, dual master prompt mode: the realtime voice model's own prompt. masterPrompt stays the prompt of the brain behind the voice (which runs every tool) and of every other engine and channel. Used only while infrastructurePreferences.speechEngine is "realtime" and infrastructurePreferences.realtimeDualMasterPrompt is true; blank falls back to masterPrompt.
firstMessagestringaiDisclosureEnabledbooleanaiDisclosurePresetIdstringaiDisclosurePlaceholderValuesobjectaiDisclosureCustomTextstringaiDisclosurePrependTextstringaiDisclosureAppendTextstringvoicemailMessagestringvoicemailDetectionEnabledbooleanvoicemailDetectionMethodstringkeypadInputEnabledbooleankeypadInputTimeoutSecondsnumber (double)keypadInputDelimitersarray of stringendSessionTriggerPhrasestringendSessionMessagestringmasterPromptBackgroundSystemContextAutoAppendedbooleantimeZonestringsystemOutputEnabledbooleanstateContextMapEnabledbooleanstateContextJourneyEnabledbooleanstateContextConfigobjectbackgroundContextInjectionToolRefsarray of stringbackgroundContextInjectionToolArgsobjectlanguagestringlanguagesarray of stringvoiceIdstringchannelModestringhybridVoiceChatInteractionsEnabledbooleanfirstMessageModestringforwardingPhoneNumberstringuserIdstring (uuid)projectIdstring (uuid)isTemplatebooleanreferenceFlowIdstring (uuid)bornFromTemplatebooleantemplateDescriptionstringtemplatePublicTitlestringtemplateIconstringtemplateImageUrlstringtemplateIllustrationUrlstringtemplateTagsarray of stringsupportedLanguagesarray of stringtemplatePublishedbooleantemplatePublicationLabelstringtemplateOverrideStateFlowTemplateOverrideStatetemplateDetachModestringtemplateDetachSourceFlowIdstring (uuid)defaultApplicationIdstring (uuid)archivedbooleanfavoritebooleanbackgroundSoundstringsilenceTimeoutSecondsinteger (int32)flowTriggersarray of objectmaxDurationSecondsinteger (int32)chatSessionTimeoutSecondsinteger (int32)threadHistoryRememberingModestringthreadHistorySessionLimitinteger (int32)threadHistoryMessageLimitinteger (int32)backgroundDenoisingEnabledbooleanrecordingEnabledbooleantranscriptStorageEnabledbooleanmodelOutputInMessagesEnabledbooleandefaultTestCallPresetIdstring (uuid)defaultTestCallPresetEnabledbooleandefaultTestChatPresetIdstring (uuid)defaultTestChatPresetEnabledbooleandefaultTestCallSimulatedDirectionstringdefaultTestChatSimulatedDirectionstringdefaultTestCallFromPhoneNumberstringdefaultTestCallToPhoneNumberstringconfidenceThresholdnumber (double)profanityFilterEnabledbooleantemperaturenumber (double)waitSecondsnumber (double)onPunctuationSecondsnumber (double)onNoPunctuationSecondsnumber (double)onNumberSecondsnumber (double)onNumberDictationOnlybooleanpitchnumber (double)speednumber (double)volumenumber (double)inputMinCharactersinteger (int32)voiceSecondsnumber (double)backoffSecondsnumber (double)numWordsinteger (int32)acknowledgementPhrasesarray of stringinterruptionPhrasesarray of stringinterruptionTailGuardEnabledbooleaninterruptionTailGuardMsinteger (int32)voiceToolTurnMaxTokensinteger (int32)voiceReplyMaxTokensinteger (int32)pageReadTrimEnabledbooleanpageReadTrimThresholdTokensinteger (int32)pronunciationDictionaryarray of objectonCallBeginToolRefsarray of stringonCallBeginToolIdstring (uuid)onCallEndToolRefsarray of stringonCallEndToolIdstring (uuid)onCallFailedToolRefsarray of stringonCallFailedToolIdstring (uuid)onNoAnswerToolRefsarray of stringonNoAnswerToolIdstring (uuid)onCallAttemptToolRefsarray of stringonCallAttemptToolIdstring (uuid)onChatStartToolRefsarray of stringonChatStartToolIdstring (uuid)onChatEndToolRefsarray of stringonChatEndToolIdstring (uuid)onSessionBeginToolRefsarray of stringonSessionBeginToolIdstring (uuid)onSessionEndToolRefsarray of stringonSessionEndToolIdstring (uuid)onWorkBeginToolRefsarray of stringonWorkEndToolRefsarray of stringonWorkFailedToolRefsarray of stringonWorkCancelledToolRefsarray of stringonWorkNeedsAttentionToolRefsarray of stringonAfterAiAnalysisToolRefsarray of stringonAfterAiAnalysisToolIdstring (uuid)onHumanSupportRequestedToolRefsarray of stringonHumanSupportRequestedToolIdstring (uuid)onStateChangeToolRefsarray of stringonStateChangeToolIdstring (uuid)onSessionStartActionsarray of objectonStateAlignmentToolRefsarray of stringonStateAlignmentToolIdstring (uuid)mermaidCodestringmermaidStatusstringmermaidErrorstringmermaidRequestedAtstring (date-time)mermaidGeneratedAtstring (date-time)aiEditablebooleancreatedByAibooleancreatedAtstring (date-time)updatedAtstring (date-time)templateConfigIdsarray of string (uuid)localTemplateConfigsarray of objecttemplateConfigScopeEnabledboolean
Responses
201Flow created successfully401Missing or invalid API key403Key is valid but lacks access to this resource404Requested resource not found
Get AI flow
/api/external/v1/flows/{flowId}Retrieves the configuration details of a specific AI flow (logic flow) by its unique UUID.
Parameters
flowIdstring (uuid)pathRequired
Responses
200Flow details401Missing or invalid API key403Key is valid but lacks access to this resource404Requested resource not found
Update AI flow
/api/external/v1/flows/{flowId}Updates an existing AI flow. Only the fields present in the request body change; every field left out keeps its current value. Each field you send is replaced as a whole (an object or list field is not merged key by key), and an explicit null clears a field. Sending back a whole flow as returned by GET works too: id, userId, version and timestamps in the body are ignored.
Parameters
flowIdstring (uuid)pathRequired
Request body application/json
idstring (uuid)versioninteger (int32)namestringdescriptionstringiconKeystringiconColorstringapiIdstringvariableIdsarray of string (uuid)structuredOutputIdsarray of string (uuid)structuredInputIdsarray of string (uuid)promptModuleIdsarray of string (uuid)toolIdsarray of string (uuid)dataSourceIdsarray of string (uuid)pronunciationDictionaryIdsarray of string (uuid)actionTriggerIdsarray of string (uuid)localPronunciationDictionariesarray of objectlocalActionTriggersarray of objectactionTriggerStateVisibilityRulesobjectbuiltinToolIdsarray of stringlocalPromptModulesarray of objectlocalToolsarray of objecttoolIntegrationCredentialLinksobjecttoolActivationOverridesobjecttoolMockModeOverridesobjectsessionStatesarray of objecttoolStateVisibilityRulesobjecttoolExecutionGuardsobjecttoolAttachmentSettingsobjectPer attached tool, keyed like toolStateVisibilityRules: {runOnVoice, options}. runOnVoice: on the realtime speech engine, the voice model calls the tool itself instead of the brain (screen tools default to true). options: the tool's own settings.
outputStateVisibilityRulesobjectpromptModuleStateVisibilityRulesobjectevaluationIdsarray of string (uuid)evaluationStateVisibilityRulesobjectstateGraphobjectevaluationEnforcementstringskillIdsarray of string (uuid)builtinSkillIdsarray of stringlocalSkillsarray of objectskillActivationOverridesobjectskillLoadingModeOverridesobjectskillRealtimeVoiceOverridesobjectRealtime speech engine: per attached Skill, keyed like skillLoadingModeOverrides (global::<skillId>, local::<name>, sys::<name>), true puts a fully loaded Skill's content into the realtime voice's prompt too. Absent or false: the brain behind the voice holds it and the voice sees a catalog line.
skillLifecycleOverridesobjectskillInclusionModeOverridesobjectskillChildInclusionModeOverridesobjectknowledgeBaseLifecycleOverridesobjectskillStateVisibilityRulesobjectmcpServerIdsarray of string (uuid)localMcpServersarray of objectmultimediaLinksarray of objectmcpActivationOverridesobjectmcpExposureModeOverridesobjectmcpToolFilterOverridesobjectmcpInclusionOverridesobjectmcpStateVisibilityRulesobjectsmartMcpConfigobjectconversationMemoryConfigobjectcontextAttachmentsarray of objectagenticConfigobjectartificialSkillCatalogEnabledbooleanskillLoadToolEnabledbooleanskillReadToolEnabledbooleanskillManagementToolsEnabledbooleanlocalVariablesarray of objectlocalStructuredOutputsarray of objectlocalStructuredInputsarray of objectdataSourcesarray of objectknowledgeBaseobjectapiConfigobjectinfrastructurePreferencesobjectworkAutonomyConfigobjectautomaticLearningConfigobjectworkCompactionLearningConfigobjectsandboxConfigobjectsandboxDefinitionIdstring (uuid)browserConfigobjectdatabaseConfigobjectdatabaseDefinitionIdstring (uuid)workTaskModestringknowledgeBaseRefsarray of objectknowledgeBaseStateVisibilityRulesobjectmasterPromptstringrealtimeMasterPromptstringRealtime speech engine, dual master prompt mode: the realtime voice model's own prompt. masterPrompt stays the prompt of the brain behind the voice (which runs every tool) and of every other engine and channel. Used only while infrastructurePreferences.speechEngine is "realtime" and infrastructurePreferences.realtimeDualMasterPrompt is true; blank falls back to masterPrompt.
firstMessagestringaiDisclosureEnabledbooleanaiDisclosurePresetIdstringaiDisclosurePlaceholderValuesobjectaiDisclosureCustomTextstringaiDisclosurePrependTextstringaiDisclosureAppendTextstringvoicemailMessagestringvoicemailDetectionEnabledbooleanvoicemailDetectionMethodstringkeypadInputEnabledbooleankeypadInputTimeoutSecondsnumber (double)keypadInputDelimitersarray of stringendSessionTriggerPhrasestringendSessionMessagestringmasterPromptBackgroundSystemContextAutoAppendedbooleantimeZonestringsystemOutputEnabledbooleanstateContextMapEnabledbooleanstateContextJourneyEnabledbooleanstateContextConfigobjectbackgroundContextInjectionToolRefsarray of stringbackgroundContextInjectionToolArgsobjectlanguagestringlanguagesarray of stringvoiceIdstringchannelModestringhybridVoiceChatInteractionsEnabledbooleanfirstMessageModestringforwardingPhoneNumberstringuserIdstring (uuid)projectIdstring (uuid)isTemplatebooleanreferenceFlowIdstring (uuid)bornFromTemplatebooleantemplateDescriptionstringtemplatePublicTitlestringtemplateIconstringtemplateImageUrlstringtemplateIllustrationUrlstringtemplateTagsarray of stringsupportedLanguagesarray of stringtemplatePublishedbooleantemplatePublicationLabelstringtemplateOverrideStateFlowTemplateOverrideStatetemplateDetachModestringtemplateDetachSourceFlowIdstring (uuid)defaultApplicationIdstring (uuid)archivedbooleanfavoritebooleanbackgroundSoundstringsilenceTimeoutSecondsinteger (int32)flowTriggersarray of objectmaxDurationSecondsinteger (int32)chatSessionTimeoutSecondsinteger (int32)threadHistoryRememberingModestringthreadHistorySessionLimitinteger (int32)threadHistoryMessageLimitinteger (int32)backgroundDenoisingEnabledbooleanrecordingEnabledbooleantranscriptStorageEnabledbooleanmodelOutputInMessagesEnabledbooleandefaultTestCallPresetIdstring (uuid)defaultTestCallPresetEnabledbooleandefaultTestChatPresetIdstring (uuid)defaultTestChatPresetEnabledbooleandefaultTestCallSimulatedDirectionstringdefaultTestChatSimulatedDirectionstringdefaultTestCallFromPhoneNumberstringdefaultTestCallToPhoneNumberstringconfidenceThresholdnumber (double)profanityFilterEnabledbooleantemperaturenumber (double)waitSecondsnumber (double)onPunctuationSecondsnumber (double)onNoPunctuationSecondsnumber (double)onNumberSecondsnumber (double)onNumberDictationOnlybooleanpitchnumber (double)speednumber (double)volumenumber (double)inputMinCharactersinteger (int32)voiceSecondsnumber (double)backoffSecondsnumber (double)numWordsinteger (int32)acknowledgementPhrasesarray of stringinterruptionPhrasesarray of stringinterruptionTailGuardEnabledbooleaninterruptionTailGuardMsinteger (int32)voiceToolTurnMaxTokensinteger (int32)voiceReplyMaxTokensinteger (int32)pageReadTrimEnabledbooleanpageReadTrimThresholdTokensinteger (int32)pronunciationDictionaryarray of objectonCallBeginToolRefsarray of stringonCallBeginToolIdstring (uuid)onCallEndToolRefsarray of stringonCallEndToolIdstring (uuid)onCallFailedToolRefsarray of stringonCallFailedToolIdstring (uuid)onNoAnswerToolRefsarray of stringonNoAnswerToolIdstring (uuid)onCallAttemptToolRefsarray of stringonCallAttemptToolIdstring (uuid)onChatStartToolRefsarray of stringonChatStartToolIdstring (uuid)onChatEndToolRefsarray of stringonChatEndToolIdstring (uuid)onSessionBeginToolRefsarray of stringonSessionBeginToolIdstring (uuid)onSessionEndToolRefsarray of stringonSessionEndToolIdstring (uuid)onWorkBeginToolRefsarray of stringonWorkEndToolRefsarray of stringonWorkFailedToolRefsarray of stringonWorkCancelledToolRefsarray of stringonWorkNeedsAttentionToolRefsarray of stringonAfterAiAnalysisToolRefsarray of stringonAfterAiAnalysisToolIdstring (uuid)onHumanSupportRequestedToolRefsarray of stringonHumanSupportRequestedToolIdstring (uuid)onStateChangeToolRefsarray of stringonStateChangeToolIdstring (uuid)onSessionStartActionsarray of objectonStateAlignmentToolRefsarray of stringonStateAlignmentToolIdstring (uuid)mermaidCodestringmermaidStatusstringmermaidErrorstringmermaidRequestedAtstring (date-time)mermaidGeneratedAtstring (date-time)aiEditablebooleancreatedByAibooleancreatedAtstring (date-time)updatedAtstring (date-time)templateConfigIdsarray of string (uuid)localTemplateConfigsarray of objecttemplateConfigScopeEnabledboolean
Responses
200Flow updated successfully401Missing or invalid API key403Key is valid but lacks access to this resource404Requested resource not found
Delete AI flow
/api/external/v1/flows/{flowId}Permanently deletes an AI flow by its unique UUID. This action cannot be undone.
Parameters
flowIdstring (uuid)pathRequired
Responses
204Flow deleted successfully401Missing or invalid API key403Key is valid but lacks access to this resource404Requested resource not found