SendSeven GmbH · Schema
CreateFlowRequest
Request body for ``POST /flows``.
MessagingCommunicationsSoftware-as-a-ServiceGermany
Properties
| Name | Type | Description |
|---|---|---|
| name | string | |
| flow_type | string | What kind of conversations the flow works with. ``messenger`` (default, every flow created before email flows) = chat channels (WhatsApp, Telegram, SMS, Messenger, Instagram, Live Chat, RCS); ``email` |
| description | object | |
| definition | object | The full flow graph: ``trigger`` + ``nodes[]`` + ``edges[]`` + ``entry_node_id``. See ``fl01_create_flows.py`` migration docstring for the locked JSON shape. Hard-capped at 256 KB JSON-encoded; valida |
| re_entry_policy | string | How to behave when the same contact is triggered again while a run is already in flight. MVP only enforces ``block`` (ignore the new trigger). ``restart`` and ``parallel`` are scaffolded for Phase 3 U |
| default_language | object | Per-flow fallback language used by the runtime when a contact has no resolvable locale. If omitted it defaults to the workspace language, else the creating user's app language, else ``'en'`` (unsuppor |
| manually_triggerable | object | When True, the flow appears in the operator's manual-start picker and accepts ``POST /flows/{id}/runs`` requests. Automatically forced True when the trigger kind is ``manual``. |
| auto_translate_messages | object | Per-flow opt-in for runtime LLM translation of outbound Send-node messages into the contact's preferred language. |
| language_detection_strategy | object | How this flow's runs resolve the language they speak to a contact. ``cascade`` (the default) resolves per run via the fallback chain (contact locale → inferred channel locale → ``default_language``). |
| add_detected_languages | object | When True (the default), each time a run of this flow switches to a language detected from the contact (a newly detected language, or the contact writing in a different one), that language code is app |
| default_channel_chain | object | Flow-level channel fallback chain — May 2026 this is the SINGLE source of truth for channel order (per-node ``channel_chain`` has been removed; node configs only carry content). Bare channel-type stri |
| stop_on_agent_reply | object | When True (the default), the flow engine terminates any active run for the contact + conversation the moment a human agent sends an outbound message. Bot replies and flow-Send messages do NOT trip the |
| agent_while_running | object | What a conversational AI agent does in a conversation while a run of this flow is active there. `inherit` (default) uses the agent's own `flow_running_behavior`; `pause` keeps the agent silent until t |
| agent_reply_to_trigger | object | Whether a conversational AI agent may answer the inbound message that started a run of this flow. `auto`: the agent replies only if the flow does not handle the message itself before it first waits (n |
| stop_on_conversation_closed | object | When True (the default), the flow engine terminates any active run scoped to the conversation the moment that conversation is closed. Only runs whose recorded ``context.conversation_id`` matches the c |
| priority | object | Trigger-arbitration priority among INBOUND-EVENT-triggered (entry) flows. LOWER = higher priority (evaluated FIRST). When multiple entry flows match the same inbound event they start in ascending-prio |
| exclusive | object | When True, while a run of this entry-triggered flow is actively running on a conversation, NO other entry-triggered flow may start on that conversation (background manual/api/schedule flows are exempt |
| exit_on_unsubscribe | object | When an active run of this flow ends because the contact unsubscribed (run cancel reason ``contact_unsubscribed``). Only unsubscribes after the run started count. ``trigger_list`` (default): when the |
| exit_on_unsubscribe_list_ids | object | List ids used when ``exit_on_unsubscribe`` is ``selected`` (1 to 50 lists of this workspace). Kept as stored for the other modes. |
| revision_source | object | Version history attribution (optional): ``canvas`` | ``json`` | ``ai_assistant``. Defaults to ``canvas`` for a signed-in user. API keys and OAuth apps are always recorded as ``api``. |
| revision_summary | object | Optional note stored on the version history entry (max 500 characters, plain text). |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/sendseven-com/json-schema/sendseven-com-create-flow-request-schema.json",
"title": "CreateFlowRequest",
"description": "Request body for ``POST /flows``.",
"x-generated": "2026-11-24",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/sendseven-com-openapi.json#/components/schemas/CreateFlowRequest",
"properties": {
"name": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"title": "Name"
},
"flow_type": {
"type": "string",
"enum": [
"messenger",
"email",
"both"
],
"title": "Flow Type",
"description": "What kind of conversations the flow works with. ``messenger`` (default, every flow created before email flows) = chat channels (WhatsApp, Telegram, SMS, Messenger, Instagram, Live Chat, RCS); ``email`` = email conversations (email triggers, no buttons / wait-for-reply / AI nodes); ``both`` = fixed-recipient automations (conversation- and contact-level triggers, internal nodes, send nodes only with ``recipient.mode = contact``). Set on create and IMMUTABLE afterwards (duplicate copies it).",
"default": "messenger"
},
"description": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
],
"title": "Description"
},
"definition": {
"additionalProperties": true,
"type": "object",
"title": "Definition",
"description": "The full flow graph: ``trigger`` + ``nodes[]`` + ``edges[]`` + ``entry_node_id``. See ``fl01_create_flows.py`` migration docstring for the locked JSON shape. Hard-capped at 256 KB JSON-encoded; validated against the structural rules in ``FlowDefinitionValidator``."
},
"re_entry_policy": {
"type": "string",
"title": "Re Entry Policy",
"description": "How to behave when the same contact is triggered again while a run is already in flight. MVP only enforces ``block`` (ignore the new trigger). ``restart`` and ``parallel`` are scaffolded for Phase 3 UX.",
"default": "block"
},
"default_language": {
"anyOf": [
{
"type": "string",
"maxLength": 10
},
{
"type": "null"
}
],
"title": "Default Language",
"description": "Per-flow fallback language used by the runtime when a contact has no resolvable locale. If omitted it defaults to the workspace language, else the creating user's app language, else ``'en'`` (unsupported stored values are skipped). Must be one of the curated ~40 ``SUPPORTED_TRANSLATION_LOCALES``."
},
"manually_triggerable": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Manually Triggerable",
"description": "When True, the flow appears in the operator's manual-start picker and accepts ``POST /flows/{id}/runs`` requests. Automatically forced True when the trigger kind is ``manual``.",
"default": false
},
"auto_translate_messages": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Auto Translate Messages",
"description": "Per-flow opt-in for runtime LLM translation of outbound Send-node messages into the contact's preferred language.",
"default": false
},
"language_detection_strategy": {
"anyOf": [
{
"type": "string",
"enum": [
"cascade",
"fixed"
]
},
{
"type": "null"
}
],
"title": "Language Detection Strategy",
"description": "How this flow's runs resolve the language they speak to a contact. ``cascade`` (the default) resolves per run via the fallback chain (contact locale → inferred channel locale → ``default_language``). ``fixed`` always speaks ``default_language``, skipping the cascade. OMIT / ``null`` to keep the default — NULL is stored and treated as ``cascade`` by the runtime, so existing flows are unaffected. Any value other than ``cascade`` / ``fixed`` is rejected with 422."
},
"add_detected_languages": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Add Detected Languages",
"description": "When True (the default), each time a run of this flow switches to a language detected from the contact (a newly detected language, or the contact writing in a different one), that language code is appended to the contact's ``languages`` list. The contact's preferred ``language`` and its source never change, and neither does the language the run replies in. Default-language and ``fixed`` resolutions never add a code. ``null`` is treated as True.",
"default": true
},
"default_channel_chain": {
"anyOf": [
{
"items": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "#/$defs/ChannelChainEntry"
}
]
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Default Channel Chain",
"description": "Flow-level channel fallback chain — May 2026 this is the SINGLE source of truth for channel order (per-node ``channel_chain`` has been removed; node configs only carry content). Bare channel-type strings (``[\"whatsapp\", \"live_chat\"]``) OR ``{channel_type, channel_id?}`` objects pinning a specific Channel row. When omitted / NULL on create, the server seeds from the tenant's active channels in a sensible order. A flow with any send/choice/collect_input node MUST have a non-empty chain to validate."
},
"stop_on_agent_reply": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Stop On Agent Reply",
"description": "When True (the default), the flow engine terminates any active run for the contact + conversation the moment a human agent sends an outbound message. Bot replies and flow-Send messages do NOT trip the hook — only operator-authored outbound messages do. Set to False for long-running drips whose cadence should be independent of agent activity.",
"default": true
},
"agent_while_running": {
"anyOf": [
{
"type": "string",
"enum": [
"inherit",
"pause",
"stop",
"keep"
]
},
{
"type": "null"
}
],
"title": "Agent While Running",
"description": "What a conversational AI agent does in a conversation while a run of this flow is active there. `inherit` (default) uses the agent's own `flow_running_behavior`; `pause` keeps the agent silent until the run ends; `stop` turns the agent off for that conversation when the run starts; `keep` lets the agent keep answering. The message that started the run is never answered by the agent in any mode. Omitted or null on create = `inherit`."
},
"agent_reply_to_trigger": {
"anyOf": [
{
"type": "string",
"enum": [
"auto",
"always",
"never"
]
},
{
"type": "null"
}
],
"title": "Agent Reply To Trigger",
"description": "Whether a conversational AI agent may answer the inbound message that started a run of this flow. `auto`: the agent replies only if the flow does not handle the message itself before it first waits (no message sent, no reply wait, no Run agent step, no Start flow step); `always`: the agent always replies; `never`: the agent never replies to that message. An `agent_reply_allow` / `agent_reply_silence` node reached before the flow first waits overrides this setting. Flows created before this setting existed read as `never`; new flows default to `auto`. Independent of `agent_while_running`, which governs later messages (a `stop` there still turns the agent off). Omitted or null on create = `auto`."
},
"stop_on_conversation_closed": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Stop On Conversation Closed",
"description": "When True (the default), the flow engine terminates any active run scoped to the conversation the moment that conversation is closed. Only runs whose recorded ``context.conversation_id`` matches the closed conversation are canceled — flows without a recorded conversation are left untouched. Set to False for long-running re-engagement drips that intentionally outlive the original conversation.",
"default": true
},
"priority": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Priority",
"description": "Trigger-arbitration priority among INBOUND-EVENT-triggered (entry) flows. LOWER = higher priority (evaluated FIRST). When multiple entry flows match the same inbound event they start in ascending-priority order. Default 0. Background flows (manual/api_event/schedule) ignore this field.",
"default": 0
},
"exclusive": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Exclusive",
"description": "When True, while a run of this entry-triggered flow is actively running on a conversation, NO other entry-triggered flow may start on that conversation (background manual/api/schedule flows are exempt). Default False preserves today's fire-all behaviour.",
"default": false
},
"exit_on_unsubscribe": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Exit On Unsubscribe",
"description": "When an active run of this flow ends because the contact unsubscribed (run cancel reason ``contact_unsubscribed``). Only unsubscribes after the run started count. ``trigger_list`` (default): when the contact leaves the list whose subscription started the run; inert for every other trigger. ``any``: on an unsubscribe from any list or a channel-wide opt-out. ``selected``: on an unsubscribe from one of ``exit_on_unsubscribe_list_ids``. ``off``: never.",
"default": "trigger_list"
},
"exit_on_unsubscribe_list_ids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Exit On Unsubscribe List Ids",
"description": "List ids used when ``exit_on_unsubscribe`` is ``selected`` (1 to 50 lists of this workspace). Kept as stored for the other modes."
},
"revision_source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Revision Source",
"description": "Version history attribution (optional): ``canvas`` | ``json`` | ``ai_assistant``. Defaults to ``canvas`` for a signed-in user. API keys and OAuth apps are always recorded as ``api``."
},
"revision_summary": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "null"
}
],
"title": "Revision Summary",
"description": "Optional note stored on the version history entry (max 500 characters, plain text)."
}
},
"type": "object",
"required": [
"name",
"definition"
],
"$defs": {
"ChannelChainEntry": {
"properties": {
"channel_type": {
"type": "string",
"title": "Channel Type"
},
"channel_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Channel Id"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"channel_type"
],
"title": "ChannelChainEntry",
"description": "One entry in a Send node's ``channel_chain``.\n\nThe wire shape historically was ``list[str]`` — each item a channel\ntype (\"whatsapp\", \"email\", ...). It now widens to accept EITHER a\nbare string OR an object pinning a specific Channel row::\n\n # Legacy bare-string form (still supported):\n [\"whatsapp\", \"email\"]\n\n # New object form — pin to a specific WhatsApp / Messenger page:\n [\n {\"channel_type\": \"whatsapp\", \"channel_id\": \"<uuid>\"},\n {\"channel_type\": \"email\"}, # channel_id null → tenant-default\n ]\n\nBare strings are normalized to ``ChannelChainEntry(channel_type=s,\nchannel_id=None)`` via ``normalize_channel_chain`` so service-layer\ncode (``send_node.py``, ``observability``, etc.) sees a single shape."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/sendseven-com-create-flow-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.