MCP reference

Dayalogs MCP tools reference

All currently exposed MCP tools, grouped by area. Parameters are generated from the same input schema used by the MCP server, so this page should stay close to the real contract.

Availability Varies by tool
Recommended authoring workflow

For survey creation, start with survey_authoring_help. Call it empty for the generated index, then fetch focused paths such as quick-start, questions/scale or logic/visible-if. The older compact authoring pack remains an API endpoint, but it is no longer advertised as an MCP tool.

224 tools

Start

4 tools
get_started public Sandbox Free+

Explain what Dayalogs Surveys is and the recommended MCP workflow for creating and previewing schema-first surveys. When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.

When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.
Available without a specific Dayalogs scope; the OAuth/demo session still controls the connection.
No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}
get_capabilities public Sandbox Free+

Return Dayalogs API capabilities, granted scopes, reserved contexts, endpoint map and safety workflow guidance such as preview/test/real campaign delivery.

Available without a specific Dayalogs scope; the OAuth/demo session still controls the connection.
No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}
get_mcp_changes public Sandbox Free+

Return Dayalogs MCP release notes and tool/API changes by version.

Available without a specific Dayalogs scope; the OAuth/demo session still controls the connection.
No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}
get_mcp_backlog public Sandbox Free+

Return MCP-facing planned backlog items and target versions.

Available without a specific Dayalogs scope; the OAuth/demo session still controls the connection.
No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}

Authoring

7 tools
survey_authoring_help surveys:validate Sandbox Free+

Return focused Dayalogs survey authoring help. Call with no arguments for the generated index, with path for a folder or file, or with keywords to find relevant help. When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.

When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.
Parameter
Type
Req.
Details
path
string
no
Optional help path. Empty input returns the generated index. Examples: quick-start, questions/scale, questions/scale/help.md.
keyword
string
no
Optional single keyword search. Examples: smiley, csat, contact, endings.
keywords
array<string>
no
items string
Optional keyword list. When present, matching files must contain all terms.
View input JSON schema
{
    "type": "object",
    "properties": {
        "path": {
            "type": "string",
            "description": "Optional help path. Empty input returns the generated index. Examples: quick-start, questions/scale, questions/scale/help.md."
        },
        "keyword": {
            "type": "string",
            "description": "Optional single keyword search. Examples: smiley, csat, contact, endings."
        },
        "keywords": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Optional keyword list. When present, matching files must contain all terms."
        }
    },
    "required": []
}
get_survey_schema surveys:validate Sandbox Free+

Return the live Dayalogs survey JSON schema contract. This is large; for drafting surveys, call survey_authoring_help first and use the full schema only for exact field-level constraints. When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.

When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.
No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}
get_survey_interface_texts surveys:validate Sandbox Free+

Return supported respondent UI locales and the public survey.renderer.* keys that can be overridden with interface_literals.

Parameter
Type
Req.
Details
locale
string
no
Optional supported UI locale. Includes default texts and exact placeholders for safe overrides. Use en for unsupported content languages.
View input JSON schema
{
    "type": "object",
    "properties": {
        "locale": {
            "type": "string",
            "description": "Optional supported UI locale. Includes default texts and exact placeholders for safe overrides. Use en for unsupported content languages."
        }
    },
    "required": []
}
validate_survey surveys:validate Sandbox Free+

Validate a Dayalogs survey definition without importing it. Returns structural schema errors separately from behavioural flow errors and warnings; blocking flow errors must be fixed before import or publication. When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.

When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.
Parameter
Type
Req.
Details
survey
object
no
Dayalogs survey definition object.
definition
object
no
Alias for survey.
survey_json
string
no
Dayalogs survey definition encoded as a JSON string.
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey": {
            "type": "object",
            "description": "Dayalogs survey definition object."
        },
        "definition": {
            "type": "object",
            "description": "Alias for survey."
        },
        "survey_json": {
            "type": "string",
            "description": "Dayalogs survey definition encoded as a JSON string."
        }
    },
    "required": []
}
get_theme_schema public Sandbox Free+

Return the live Dayalogs survey theme/style JSON schema contract.

Available without a specific Dayalogs scope; the OAuth/demo session still controls the connection.
No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}
get_theme_authoring_pack public Sandbox Free+

Return theme/style authoring guidance, schema and examples as structured JSON.

Available without a specific Dayalogs scope; the OAuth/demo session still controls the connection.
No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}
validate_theme public Sandbox Free+

Validate a Dayalogs survey theme/style config without persisting it.

Available without a specific Dayalogs scope; the OAuth/demo session still controls the connection.
Parameter
Type
Req.
Details
config
object
no
Dayalogs survey theme/style config object.
theme
object
no
Alias for config.
definition
object
no
Alias for config.
config_json
string
no
Dayalogs survey theme/style config encoded as a JSON string.
View input JSON schema
{
    "type": "object",
    "properties": {
        "config": {
            "type": "object",
            "description": "Dayalogs survey theme/style config object."
        },
        "theme": {
            "type": "object",
            "description": "Alias for config."
        },
        "definition": {
            "type": "object",
            "description": "Alias for config."
        },
        "config_json": {
            "type": "string",
            "description": "Dayalogs survey theme/style config encoded as a JSON string."
        }
    },
    "required": []
}

Survey read

10 tools
list_surveys surveys:read Sandbox Free+

List current surveys in the authenticated account. Archived surveys are excluded by default.

Parameter
Type
Req.
Details
include_archived
boolean
no
Include active and archived surveys.
archived
boolean
no
Return only archived surveys.
View input JSON schema
{
    "type": "object",
    "properties": {
        "include_archived": {
            "type": "boolean",
            "description": "Include active and archived surveys."
        },
        "archived": {
            "type": "boolean",
            "description": "Return only archived surveys."
        }
    },
    "required": []
}
get_survey surveys:read Sandbox Free+

Return one current survey definition by slug.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}
get_survey_definition surveys:read Sandbox Free+

Return the canonical JSON definition for one current survey, with validation/import contract endpoints.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}
get_survey_fragment surveys:read Sandbox Free+

Read one or up to 25 canonical question or block fragments without downloading the complete survey. Use id or ids, never both. survey_header may omit both. The response includes version_id and content_hash for safe follow-up edits.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
kind
string
yes
question, block, survey_header, ending_target, ending_rule, endings
id
string
no
One fragment id. Mutually exclusive with ids.
ids
array<string>
no
items string
Fragment ids to read together. Mutually exclusive with id.
include_literals
boolean
no
locales
array<string>
no
items string
Supported survey locales to include. Defaults to every supported locale.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "kind": {
            "type": "string",
            "enum": [
                "question",
                "block",
                "survey_header",
                "ending_target",
                "ending_rule",
                "endings"
            ]
        },
        "id": {
            "type": "string",
            "description": "One fragment id. Mutually exclusive with ids."
        },
        "ids": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "minItems": 1,
            "maxItems": 25,
            "description": "Fragment ids to read together. Mutually exclusive with id."
        },
        "include_literals": {
            "type": "boolean",
            "default": true
        },
        "locales": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Supported survey locales to include. Defaults to every supported locale."
        }
    },
    "required": [
        "slug",
        "kind"
    ]
}
list_survey_versions surveys:read Sandbox Free+

List all persisted versions for a survey slug.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}
get_survey_version surveys:read Sandbox Free+

Return a specific persisted survey version and its definition.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
version
integer
yes
min 1
Survey version number.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "version": {
            "type": "integer",
            "description": "Survey version number.",
            "minimum": 1
        }
    },
    "required": [
        "slug",
        "version"
    ]
}
get_survey_stats surveys:read Sandbox Free+

Return response, version and link stats for a survey. Default all-version quality summaries may refresh and replace stored scores, penalties, confidence values and aggregate snapshots when due. This is not universally read-only.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}
get_survey_quality surveys:read Sandbox Free+

Return quality data for all survey versions or optionally for one concrete version. Default all-version quality summaries may refresh and replace stored scores, penalties, confidence values and aggregate snapshots when due; version-specific reads may remain non-mutating.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
version
integer
no
min 1
Optional concrete survey version. Omit to aggregate all versions.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "version": {
            "type": "integer",
            "description": "Optional concrete survey version. Omit to aggregate all versions.",
            "minimum": 1
        }
    },
    "required": [
        "slug"
    ]
}
get_survey_cost_estimate surveys:read Sandbox Free+

Return response unit price, full configured response objective and total estimated acquisition cost, separately from remaining capacity/cost. Unknown totals are null; uncapped active paths also expose scenario costs. See survey_authoring_help path operations/costs.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}
get_survey_flow surveys:read Sandbox Free+

Return a rendered flow summary plus explainable behavioural flow errors and warnings for one current survey by slug. Canonical fragments are omitted by default; use get_survey_fragment for focused reads or set include_fragments=true when the duplicated raw JSON is explicitly needed.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
include_fragments
boolean
no
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "include_fragments": {
            "type": "boolean",
            "default": false
        }
    },
    "required": [
        "slug"
    ]
}

Survey edit

6 tools
import_survey surveys:write Sandbox Free+

Validate and import a Dayalogs survey definition with explicit intent. Use mode=create only for a new logical survey. Use mode=update only after reading the existing survey, and pass its stable survey_id plus current version_id as expected_version_id. A new version is blocked while an open review round has undecided parent comments; approve or reject each parent, or explicitly close an abandoned round, before retrying. Successful versioning marks approved comments applied in the new version and closes the superseded version rounds. Omitting intent returns guidance without mutating data. Importing edits the definition only; use get_preview_url during authoring and do not start collection unless the user explicitly asks. Replaces logical settings and closes superseded review rounds while preserving historical versions. When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.

When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.
Parameter
Type
Req.
Details
survey
object
no
Dayalogs survey definition object.
definition
object
no
Alias for survey.
survey_json
string
no
Dayalogs survey definition encoded as a JSON string.
mode
string
no
create, update
Explicit import intent. Use create for a new logical survey or update for a new version of an existing survey. Omit only to request non-mutating intent guidance.
survey_id
integer
no
min 1
Stable logical survey id. Required when mode=update; obtain it from get_survey or list_surveys.
expected_version_id
integer
no
min 1
Concrete current version_id observed before editing. Required when mode=update and used as an optimistic concurrency guard.
validate
boolean
no
Whether to validate before importing. Defaults to true.
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey": {
            "type": "object",
            "description": "Dayalogs survey definition object."
        },
        "definition": {
            "type": "object",
            "description": "Alias for survey."
        },
        "survey_json": {
            "type": "string",
            "description": "Dayalogs survey definition encoded as a JSON string."
        },
        "mode": {
            "type": "string",
            "enum": [
                "create",
                "update"
            ],
            "description": "Explicit import intent. Use create for a new logical survey or update for a new version of an existing survey. Omit only to request non-mutating intent guidance."
        },
        "survey_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Stable logical survey id. Required when mode=update; obtain it from get_survey or list_surveys."
        },
        "expected_version_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Concrete current version_id observed before editing. Required when mode=update and used as an optimistic concurrency guard."
        },
        "validate": {
            "type": "boolean",
            "description": "Whether to validate before importing. Defaults to true."
        }
    },
    "required": []
}
update_survey_settings surveys:write Sandbox Free+

Update safe top-level survey settings, normally creating a validated new version. For a Survey feeding a live continuous Report, only existing privacy_notice wording and its privacy translations may change in place: read get_survey_fragment kind survey_header and pass both expected_version_id and if_content_hash. Adding/removing the notice or changing questionnaire fields is blocked. Read survey_authoring_help path survey-structure/privacy-notice before changing approved legal copy. On conflict, reload and reconcile with the user; never retry by only replacing guard values. Versioning applies approved review decisions and closes superseded rounds; a live privacy update does neither. Does not send invitations or start collection.

For privacy_notice, read survey_authoring_help path survey-structure/privacy-notice and pass the complete approved object; use null only when the user explicitly asks to remove it.
Do not invent or materially rewrite legal copy. Preview the rendered notice and obtain human approval before publication.
Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
response
string
no
full, compact
Compact returns mutation status, ids, version and hash without the full flow or localized maps.
expected_version_id
integer
yes
min 1
Concrete current version_id observed immediately before this mutation. Required as an optimistic concurrency guard.
if_content_hash
string
no
Current content_hash from get_survey_fragment kind survey_header. Required for same-version live continuous privacy wording updates; stale values reject without mutation.
title
string
no
Optional new internal/source title. Use literals if the source-locale survey.title literal should differ.
source_locale
string
no
Optional two-letter source locale.
supported_locales
array<string>
no
items string
Optional full supported locale list. Must include source_locale after validation.
interface_locales
object
no
Optional mapping from content locale to respondent UI locale, for example {"ru":"en"}. Values: en, fr, de, nl, it, es, ca, pt, eu, gl.
interface_literals
object | null
no
Optional per-survey overrides for public respondent UI text, keyed by content locale and public survey.renderer.* translation key.
settings
object | null
no
Optional respondent runtime settings. Use {"navigation":{"allow_back":false}} to disable respondent back navigation, or {"quality":{"enabled_challenges":{"honeypot":true}}} to control quality scoring inputs.
intro
object
no
Optional complete intro object. Partial intro patches are not merged; pass the complete intro shape.
privacy_notice
object | null
no
Optional complete survey-level legal/privacy notice. When present, respondents must accept it on the intro before starting; it also replaces the email question consent fallback. Pass null only to remove it explicitly. Read survey_authoring_help path survey-structure/privacy-notice before changing approved legal copy.
literals
object | null
no
Optional locale-keyed literal map, or null to remove literals.
partial_response_ttl_minutes
integer | null
no
min 15
Optional inactivity timeout in minutes for resumable partial attempts, or null to reset to default.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "response": {
            "type": "string",
            "enum": [
                "full",
                "compact"
            ],
            "default": "full",
            "description": "Compact returns mutation status, ids, version and hash without the full flow or localized maps."
        },
        "expected_version_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Concrete current version_id observed immediately before this mutation. Required as an optimistic concurrency guard."
        },
        "if_content_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Current content_hash from get_survey_fragment kind survey_header. Required for same-version live continuous privacy wording updates; stale values reject without mutation."
        },
        "title": {
            "type": "string",
            "description": "Optional new internal/source title. Use literals if the source-locale survey.title literal should differ."
        },
        "source_locale": {
            "type": "string",
            "description": "Optional two-letter source locale."
        },
        "supported_locales": {
            "type": "array",
            "description": "Optional full supported locale list. Must include source_locale after validation.",
            "items": {
                "type": "string"
            }
        },
        "interface_locales": {
            "type": "object",
            "description": "Optional mapping from content locale to respondent UI locale, for example {\"ru\":\"en\"}. Values: en, fr, de, nl, it, es, ca, pt, eu, gl.",
            "additionalProperties": {
                "type": "string"
            }
        },
        "interface_literals": {
            "type": [
                "object",
                "null"
            ],
            "description": "Optional per-survey overrides for public respondent UI text, keyed by content locale and public survey.renderer.* translation key.",
            "additionalProperties": {
                "type": "object",
                "additionalProperties": {
                    "type": "string"
                }
            }
        },
        "settings": {
            "type": [
                "object",
                "null"
            ],
            "description": "Optional respondent runtime settings. Use {\"navigation\":{\"allow_back\":false}} to disable respondent back navigation, or {\"quality\":{\"enabled_challenges\":{\"honeypot\":true}}} to control quality scoring inputs.",
            "additionalProperties": false,
            "properties": {
                "navigation": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                        "allow_back": {
                            "type": "boolean",
                            "description": "Whether respondents can navigate back to previous pages. Defaults to true."
                        }
                    }
                },
                "quality": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                        "enabled_challenges": {
                            "type": "object",
                            "description": "Optional per-survey quality challenge toggles. Disable individual checks without removing the quality layer entirely.",
                            "additionalProperties": false,
                            "properties": {
                                "time": {
                                    "type": "boolean"
                                },
                                "paste_open_answers": {
                                    "type": "boolean"
                                },
                                "focus_away": {
                                    "type": "boolean"
                                },
                                "honeypot": {
                                    "type": "boolean"
                                },
                                "client_signal": {
                                    "type": "boolean"
                                },
                                "answer_patterns": {
                                    "type": "boolean"
                                },
                                "repeated_ip": {
                                    "type": "boolean"
                                },
                                "repeated_environment": {
                                    "type": "boolean"
                                }
                            }
                        }
                    }
                }
            }
        },
        "intro": {
            "type": "object",
            "description": "Optional complete intro object. Partial intro patches are not merged; pass the complete intro shape."
        },
        "privacy_notice": {
            "type": [
                "object",
                "null"
            ],
            "description": "Optional complete survey-level legal/privacy notice. When present, respondents must accept it on the intro before starting; it also replaces the email question consent fallback. Pass null only to remove it explicitly. Read survey_authoring_help path survey-structure/privacy-notice before changing approved legal copy.",
            "additionalProperties": false,
            "required": [
                "title",
                "content"
            ],
            "properties": {
                "format": {
                    "type": "string",
                    "enum": [
                        "markdown"
                    ],
                    "description": "Optional content format. Only markdown is supported and it is rendered and sanitized on the server."
                },
                "version": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "description": "Optional client/legal policy version retained in the response acceptance snapshot."
                },
                "title": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Required modal title. May use runtime variable placeholders; localized override key: privacy_notice.title."
                },
                "content": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Required Markdown body. Supports paragraphs, ##/### headings, unordered lists, bold, emphasis and HTTPS links. Raw HTML is escaped and runtime variable values cannot inject Markdown. Localized override key: privacy_notice.content."
                },
                "link_label": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Optional inline button label opening the notice. Defaults to title; localized override key: privacy_notice.link_label."
                },
                "accept_label": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Optional text preceding the notice link beside the acceptance checkbox; localized override key: privacy_notice.accept_label."
                }
            }
        },
        "literals": {
            "type": [
                "object",
                "null"
            ],
            "description": "Optional locale-keyed literal map, or null to remove literals."
        },
        "partial_response_ttl_minutes": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Optional inactivity timeout in minutes for resumable partial attempts, or null to reset to default.",
            "minimum": 15
        }
    },
    "required": [
        "slug",
        "expected_version_id"
    ]
}
recalculate_survey_quality surveys:write Sandbox Free+

Force a quality recalculation across all versions or optionally for one concrete version. Replaces stored quality scores, penalties, confidence values and aggregate snapshots.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
version
integer
no
min 1
Optional concrete survey version. Omit to aggregate all versions.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "version": {
            "type": "integer",
            "description": "Optional concrete survey version. Omit to aggregate all versions.",
            "minimum": 1
        }
    },
    "required": [
        "slug"
    ]
}
patch_survey_fragment surveys:write Sandbox Free+

Replace a survey fragment using the mandatory expected_version_id concurrency guard and optional if_content_hash returned by get_survey_fragment. On a conflict, reload and explain intervening changes before reconciling; never retry by only replacing the guard values. Successful versioning replaces the current definition, applies approved review decisions and closes superseded rounds, removing contribution access. Does not send invitations or start collection. When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.

When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.
Parameter
Type
Req.
Details
slug
string
yes
kind
string
yes
Fragment kind: survey_header, block, question, ending_target, ending_rule or endings. Target ids: quality_end, screened_end, over_quota_end. Whole endings uses fragment_id=endings.
fragment_id
string
yes
response
string
no
full, compact
Compact omits the full flow and localized maps; preserves mutation status, ids, version and hash.
expected_version_id
integer
yes
min 1
Concrete current version_id observed immediately before this mutation. Required as an optimistic concurrency guard.
if_content_hash
string
no
Optional content_hash returned by get_survey_fragment. A mismatch rejects the write.
fragment
object
no
json
string
no
Alternative to fragment: JSON object string for the replacement fragment.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string"
        },
        "kind": {
            "type": "string",
            "description": "Fragment kind: survey_header, block, question, ending_target, ending_rule or endings. Target ids: quality_end, screened_end, over_quota_end. Whole endings uses fragment_id=endings."
        },
        "fragment_id": {
            "type": "string"
        },
        "response": {
            "type": "string",
            "enum": [
                "full",
                "compact"
            ],
            "default": "full",
            "description": "Compact omits the full flow and localized maps; preserves mutation status, ids, version and hash."
        },
        "expected_version_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Concrete current version_id observed immediately before this mutation. Required as an optimistic concurrency guard."
        },
        "if_content_hash": {
            "type": "string",
            "description": "Optional content_hash returned by get_survey_fragment. A mismatch rejects the write."
        },
        "fragment": {
            "type": "object"
        },
        "json": {
            "type": "string",
            "description": "Alternative to fragment: JSON object string for the replacement fragment."
        }
    },
    "required": [
        "slug",
        "kind",
        "fragment_id",
        "expected_version_id"
    ]
}
append_to_survey surveys:write Sandbox Free+

Append or insert a new top-level block using the mandatory expected_version_id concurrency guard. Conflicts must be explained and reconciled with the user. Despite append-only content, versioning applies approved review decisions and closes superseded rounds, removing contribution access. Does not send invitations or start collection. When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.

When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.
Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
expected_version_id
integer
yes
min 1
Concrete current version_id observed immediately before this mutation. Required as an optimistic concurrency guard.
block
object
yes
New top-level block object to insert at the survey root. The block may contain nested blocks, question references and typed calculations; pass new question definitions in questions.
questions
array<object>
no
items object
Optional new question definitions to add to the survey question catalog before inserting the block.
position
string
no
start, end
Insert at the beginning or end of the top-level survey blocks. Defaults to end.
after_block_id
string
no
Optional existing top-level block id after which the new block should be inserted.
before_block_id
string
no
Optional existing top-level block id before which the new block should be inserted.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "expected_version_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Concrete current version_id observed immediately before this mutation. Required as an optimistic concurrency guard."
        },
        "block": {
            "type": "object",
            "description": "New top-level block object to insert at the survey root. The block may contain nested blocks, question references and typed calculations; pass new question definitions in questions."
        },
        "questions": {
            "type": "array",
            "description": "Optional new question definitions to add to the survey question catalog before inserting the block.",
            "items": {
                "type": "object"
            }
        },
        "position": {
            "type": "string",
            "enum": [
                "start",
                "end"
            ],
            "description": "Insert at the beginning or end of the top-level survey blocks. Defaults to end."
        },
        "after_block_id": {
            "type": "string",
            "description": "Optional existing top-level block id after which the new block should be inserted."
        },
        "before_block_id": {
            "type": "string",
            "description": "Optional existing top-level block id before which the new block should be inserted."
        }
    },
    "required": [
        "slug",
        "expected_version_id",
        "block"
    ]
}
append_to_block surveys:write Sandbox Free+

Append or insert a block item using the mandatory expected_version_id concurrency guard. Conflicts must be explained and reconciled with the user. Despite append-only content, versioning applies approved review decisions and closes superseded rounds, removing contribution access. Does not send invitations or start collection. When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.

When creating or editing questions, read survey_authoring_help path questions/special-responses/help.md. You must explicitly mark every intended special response with special.reason, preserving its authored code, label and optional alias. The author chooses combined NS/NC, separate reasons or custom alternatives. Never rely on code 98/99 or wording to establish meaning, and never reclassify existing answers automatically.
Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
expected_version_id
integer
yes
min 1
Concrete current version_id observed immediately before this mutation. Required as an optimistic concurrency guard.
block_id
string
yes
Existing block id that will receive the new item.
item
object
yes
Insert a nested block, a direct question item or a typed calculation item. Read survey-structure/blocks/help.md for the supported flow.
questions
array<object>
no
items object
Optional new question definitions to add to the survey question catalog before inserting the item.
position
string
no
start, end
Insert at the beginning or end of the target block items. Defaults to end.
after_item_id
string
no
Optional existing item id/question id after which the new item should be inserted.
before_item_id
string
no
Optional existing item id/question id before which the new item should be inserted.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "expected_version_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Concrete current version_id observed immediately before this mutation. Required as an optimistic concurrency guard."
        },
        "block_id": {
            "type": "string",
            "description": "Existing block id that will receive the new item."
        },
        "item": {
            "type": "object",
            "description": "Insert a nested block, a direct question item or a typed calculation item. Read survey-structure/blocks/help.md for the supported flow."
        },
        "questions": {
            "type": "array",
            "description": "Optional new question definitions to add to the survey question catalog before inserting the item.",
            "items": {
                "type": "object"
            }
        },
        "position": {
            "type": "string",
            "enum": [
                "start",
                "end"
            ],
            "description": "Insert at the beginning or end of the target block items. Defaults to end."
        },
        "after_item_id": {
            "type": "string",
            "description": "Optional existing item id/question id after which the new item should be inserted."
        },
        "before_item_id": {
            "type": "string",
            "description": "Optional existing item id/question id before which the new item should be inserted."
        }
    },
    "required": [
        "slug",
        "expected_version_id",
        "block_id",
        "item"
    ]
}

Translations

4 tools
get_translation_source surveys:read Sandbox Free+

Return source-locale literal keys and text for a survey, optionally with an existing target translation for one locale.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
target_locale
string
no
Optional target locale to include existing target text in each returned entry.
locale
string
no
Alias for target_locale.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "target_locale": {
            "type": "string",
            "description": "Optional target locale to include existing target text in each returned entry."
        },
        "locale": {
            "type": "string",
            "description": "Alias for target_locale."
        }
    },
    "required": [
        "slug"
    ]
}
list_survey_translations surveys:read Sandbox Free+

Return translation status by locale, including missing counts and available target locales.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
include_entries
boolean
no
Include source/target entries for each locale. Defaults to false.
include_literals
boolean
no
Alias for include_entries.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "include_entries": {
            "type": "boolean",
            "description": "Include source/target entries for each locale. Defaults to false."
        },
        "include_literals": {
            "type": "boolean",
            "description": "Alias for include_entries."
        }
    },
    "required": [
        "slug"
    ]
}
validate_survey_translation surveys:validate Sandbox Free+

Validate a complete locale translation map without saving it.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
mode
string
no
replace, merge
Replace requires a complete map. Merge changes only supplied keys, requires source_hash, and validates the resulting complete map.
locale
string
yes
Two-letter target locale, for example es or en.
target_locale
string
no
Alias for locale.
source_hash
string
no
Optional source hash returned by get_translation_source. If present, Dayalogs rejects stale saves.
translations
object
no
Complete translation map keyed by literal key, for example {"survey.title":"..."}.
literals
object
no
Alias for translations.
entries
array<object>
no
items object
Alternative translation shape: array of {key,target} entries returned by get_translation_source.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "mode": {
            "type": "string",
            "enum": [
                "replace",
                "merge"
            ],
            "default": "replace",
            "description": "Replace requires a complete map. Merge changes only supplied keys, requires source_hash, and validates the resulting complete map."
        },
        "locale": {
            "type": "string",
            "description": "Two-letter target locale, for example es or en."
        },
        "target_locale": {
            "type": "string",
            "description": "Alias for locale."
        },
        "source_hash": {
            "type": "string",
            "description": "Optional source hash returned by get_translation_source. If present, Dayalogs rejects stale saves."
        },
        "translations": {
            "type": "object",
            "description": "Complete translation map keyed by literal key, for example {\"survey.title\":\"...\"}."
        },
        "literals": {
            "type": "object",
            "description": "Alias for translations."
        },
        "entries": {
            "type": "array",
            "description": "Alternative translation shape: array of {key,target} entries returned by get_translation_source.",
            "items": {
                "type": "object"
            }
        }
    },
    "required": [
        "slug",
        "locale"
    ]
}
save_survey_translation surveys:write Sandbox Free+

Save a complete locale translation map into the current survey without creating a new survey version. For a live continuous Report, only existing privacy wording may change: first read get_survey_fragment kind survey_header, then pass expected_version_id and if_content_hash. Questionnaire translations and adding locales stay protected; stale guards reject without mutation.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
mode
string
no
replace, merge
Replace requires a complete map. Merge changes only supplied keys, requires source_hash, and validates the resulting complete map.
locale
string
yes
Two-letter target locale, for example es or en. This value is also used in the save URL.
target_locale
string
no
Alias for locale.
source_hash
string
no
Optional source hash returned by get_translation_source. If present, Dayalogs rejects stale saves.
translations
object
no
Complete translation map keyed by literal key, for example {"survey.title":"..."}.
literals
object
no
Alias for translations.
entries
array<object>
no
items object
Alternative translation shape: array of {key,target} entries returned by get_translation_source.
expected_version_id
integer
no
min 1
Concrete current version_id observed immediately before this mutation. Required as an optimistic concurrency guard.
if_content_hash
string
no
Current header content_hash. Required together with expected_version_id for live privacy translations; source_hash alone does not guard target-locale edits.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "mode": {
            "type": "string",
            "enum": [
                "replace",
                "merge"
            ],
            "default": "replace",
            "description": "Replace requires a complete map. Merge changes only supplied keys, requires source_hash, and validates the resulting complete map."
        },
        "locale": {
            "type": "string",
            "description": "Two-letter target locale, for example es or en. This value is also used in the save URL."
        },
        "target_locale": {
            "type": "string",
            "description": "Alias for locale."
        },
        "source_hash": {
            "type": "string",
            "description": "Optional source hash returned by get_translation_source. If present, Dayalogs rejects stale saves."
        },
        "translations": {
            "type": "object",
            "description": "Complete translation map keyed by literal key, for example {\"survey.title\":\"...\"}."
        },
        "literals": {
            "type": "object",
            "description": "Alias for translations."
        },
        "entries": {
            "type": "array",
            "description": "Alternative translation shape: array of {key,target} entries returned by get_translation_source.",
            "items": {
                "type": "object"
            }
        },
        "expected_version_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Concrete current version_id observed immediately before this mutation. Required as an optimistic concurrency guard."
        },
        "if_content_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Current header content_hash. Required together with expected_version_id for live privacy translations; source_hash alone does not guard target-locale edits."
        }
    },
    "required": [
        "slug",
        "locale"
    ]
}

Preview & design

5 tools
get_preview_url surveys:write Sandbox Free+

Create and return review URLs for a current survey. During authoring, share review_url with the user so they can inspect the survey and leave anchored comments. Do not share respondent access links. With user-bound OAuth, creates or reuses a personal review round and persists participant access and its decision role. Does not send invitations or start respondent collection.

Parameter
Type
Req.
Details
slug
string
yes
locale
string
no
Optional locale, for example ca, es or en.
ttl_minutes
integer
no
min 15 · max 10080
Unidentified API review-entry lifetime between 15 and 10080 minutes.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string"
        },
        "locale": {
            "type": "string",
            "description": "Optional locale, for example ca, es or en."
        },
        "ttl_minutes": {
            "type": "integer",
            "description": "Unidentified API review-entry lifetime between 15 and 10080 minutes.",
            "minimum": 15,
            "maximum": 10080
        }
    },
    "required": [
        "slug"
    ]
}
get_survey_design surveys:read Sandbox Free+

Return effective Survey design: inherited/custom/disabled header mode, block composition, owned reusable logos, current design revision and assigned/available styles. Read this before guarded header actions.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}
update_survey_design surveys:write Sandbox Free+

Commit Survey style/header actions immediately. Header mode and block operations require the current design revision; custom mode copies/resumes an independent composition. Retains legacy style/logo inputs. Overwrites or clears existing style and logo presentation settings. Header actions do not create questionnaire versions.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
expected_revision
string
no
Current get_survey_design design.revision; required for header actions. Conflicts require a fresh read, never an automatic retry.
header_mode
string
no
inherit, custom, disabled
Inherit the account header, edit an independent retained copy, or hide it. First custom action copies the effective configuration.
header_operation
object
no
style
string | object | null
no
Style assignment: none/default, base:{key}, theme:{id}, or {type:"base", key:"..."} / {type:"theme", id:123}.
style_selection
string | object | null
no
Alias for style.
base_key
string
no
Assign a locked base style by key.
style_base_key
string
no
Alias for base_key.
theme_id
integer
no
min 1
Assign a ready custom style by id.
style_theme_id
integer
no
min 1
Alias for theme_id.
clear_style
boolean
no
Clear the explicit survey style and fall back to the default.
logo_alignment
string
no
left, center, right
Survey-level logo alignment override.
alignment
string
no
left, center, right
Alias for logo_alignment.
clear_logo_alignment
boolean
no
Clear the survey-level logo alignment override and inherit the account default.
logo_mode
string
no
inherit, override, disabled
Survey logo behavior: inherit the account/default logo, use the uploaded survey logo, or hide the logo.
header_logo_mode
string
no
inherit, override, disabled
Alias for logo_mode.
disable_logo
boolean
no
Hide the header logo on this survey.
hide_logo
boolean
no
Alias for disable_logo.
inherit_logo
boolean
no
Return to the account/default header logo.
clear_logo_override
boolean
no
Alias for inherit_logo.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "expected_revision": {
            "type": "string",
            "description": "Current get_survey_design design.revision; required for header actions. Conflicts require a fresh read, never an automatic retry."
        },
        "header_mode": {
            "type": "string",
            "enum": [
                "inherit",
                "custom",
                "disabled"
            ],
            "description": "Inherit the account header, edit an independent retained copy, or hide it. First custom action copies the effective configuration."
        },
        "header_operation": {
            "type": "object",
            "properties": {
                "type": {
                    "type": "string",
                    "enum": [
                        "add",
                        "update",
                        "remove",
                        "move",
                        "width_mode"
                    ]
                },
                "block_id": {
                    "type": "string",
                    "description": "Existing block id for update, remove or move."
                },
                "position": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3,
                    "description": "Zero-based move destination."
                },
                "value": {
                    "type": "string",
                    "enum": [
                        "auto",
                        "percentage"
                    ],
                    "description": "Width mode for the complete header."
                },
                "block": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "type": "string",
                            "enum": [
                                "image",
                                "text"
                            ]
                        },
                        "logo_id": {
                            "type": "string",
                            "description": "default, dayalogs or an owned library logo id; survey also selects a retained Survey logo in Survey-design operations."
                        },
                        "text": {
                            "type": "string",
                            "maxLength": 300,
                            "description": "Plain text; never executable HTML."
                        },
                        "align": {
                            "type": "string",
                            "enum": [
                                "left",
                                "center",
                                "right"
                            ]
                        },
                        "width": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 100,
                            "description": "Custom percentages stay fixed. If total exceeds 100%, only the last block is reduced, leaving at least 1%; otherwise the action is rejected."
                        },
                        "hide_on_mobile": {
                            "type": "boolean",
                            "default": false,
                            "description": "Hide only this block on narrow mobile screens. Visible blocks share the available width; desktop layout is unchanged."
                        }
                    },
                    "required": []
                }
            },
            "required": [
                "type"
            ]
        },
        "style": {
            "type": [
                "string",
                "object",
                "null"
            ],
            "description": "Style assignment: none/default, base:{key}, theme:{id}, or {type:\"base\", key:\"...\"} / {type:\"theme\", id:123}."
        },
        "style_selection": {
            "type": [
                "string",
                "object",
                "null"
            ],
            "description": "Alias for style."
        },
        "base_key": {
            "type": "string",
            "description": "Assign a locked base style by key."
        },
        "style_base_key": {
            "type": "string",
            "description": "Alias for base_key."
        },
        "theme_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Assign a ready custom style by id."
        },
        "style_theme_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for theme_id."
        },
        "clear_style": {
            "type": "boolean",
            "description": "Clear the explicit survey style and fall back to the default."
        },
        "logo_alignment": {
            "type": "string",
            "enum": [
                "left",
                "center",
                "right"
            ],
            "description": "Survey-level logo alignment override."
        },
        "alignment": {
            "type": "string",
            "enum": [
                "left",
                "center",
                "right"
            ],
            "description": "Alias for logo_alignment."
        },
        "clear_logo_alignment": {
            "type": "boolean",
            "description": "Clear the survey-level logo alignment override and inherit the account default."
        },
        "logo_mode": {
            "type": "string",
            "enum": [
                "inherit",
                "override",
                "disabled"
            ],
            "description": "Survey logo behavior: inherit the account/default logo, use the uploaded survey logo, or hide the logo."
        },
        "header_logo_mode": {
            "type": "string",
            "enum": [
                "inherit",
                "override",
                "disabled"
            ],
            "description": "Alias for logo_mode."
        },
        "disable_logo": {
            "type": "boolean",
            "description": "Hide the header logo on this survey."
        },
        "hide_logo": {
            "type": "boolean",
            "description": "Alias for disable_logo."
        },
        "inherit_logo": {
            "type": "boolean",
            "description": "Return to the account/default header logo."
        },
        "clear_logo_override": {
            "type": "boolean",
            "description": "Alias for inherit_logo."
        }
    },
    "required": [
        "slug"
    ]
}
upload_survey_logo surveys:write Sandbox Free+

Upload a retained survey-specific logo from base64 content and optional alignment. It is the survey image option in a custom block header; complete block composition remains authoritative. Replacement deletes the previous physical logo asset after saving the new reference.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
content_base64
string
yes
Base64 image content. Data URLs are accepted.
filename
string
no
Original filename for metadata.
mime_type
string
no
image/png, image/jpeg or image/webp. Optional when content_base64 is a data URL.
logo_alignment
string
no
left, center, right
Optional logo alignment to save with the upload.
alignment
string
no
left, center, right
Alias for logo_alignment.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "content_base64": {
            "type": "string",
            "description": "Base64 image content. Data URLs are accepted."
        },
        "filename": {
            "type": "string",
            "description": "Original filename for metadata."
        },
        "mime_type": {
            "type": "string",
            "description": "image/png, image/jpeg or image/webp. Optional when content_base64 is a data URL."
        },
        "logo_alignment": {
            "type": "string",
            "enum": [
                "left",
                "center",
                "right"
            ],
            "description": "Optional logo alignment to save with the upload."
        },
        "alignment": {
            "type": "string",
            "enum": [
                "left",
                "center",
                "right"
            ],
            "description": "Alias for logo_alignment."
        }
    },
    "required": [
        "slug",
        "content_base64"
    ]
}
delete_survey_logo surveys:write Sandbox Free+

Remove an unreferenced survey-specific logo, falling back to account branding or Dayalogs default. Returns logo_in_use/409 while a saved custom image block references the retained survey logo; remove those references first.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}

Publishing

4 tools
go_live_survey surveys:publish Free+

Start response collection for the current survey version. This publishes real respondent access and requires confirm_publish=true after the user explicitly asks to start collection/go live. Without confirmation, the tool returns a preview URL and does not change collection state. With confirmation, undecided or approved but unapplied review changes return review_changes_pending; blocking flow errors return flow_validation_failed. Both leave the current collection state unchanged.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
confirm_publish
boolean
no
Must be true to start real response collection. Set it only after the user explicitly asks to start collection, publish, or go live.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "confirm_publish": {
            "type": "boolean",
            "description": "Must be true to start real response collection. Set it only after the user explicitly asks to start collection, publish, or go live."
        }
    },
    "required": [
        "slug"
    ]
}
stop_survey_collection surveys:publish Free+

Stop response collection for the current survey version. Existing links remain configured, but respondent entry shows a friendly unavailable page.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}
archive_survey surveys:publish Free+

Archive a logical survey and stop collection while retaining versions, responses, links, campaigns, reviews and history.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}
restore_survey surveys:publish Free+

Restore an archived logical survey. Collection remains stopped until it is explicitly started again.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}

Reporting

72 tools
get_report_schema surveys:validate Pro+

Read the report JSON schema before drafting a report. For show_tables and report language, read survey_authoring_help at reporting/results-tables.md. For PDF contents, show_content_print_table and print_contents_width, read reporting/print-contents.md. Image-cover gradients resolve automatically from effective text color; cover/back_cover.gradient_color accepts #RRGGBB for a manual tint or transparent to disable. Shared 70% shelf and 75px fade above the full title in web/print. Structural rules only, not respondent data.

No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}
get_report_theme_schema surveys:validate Pro+

Read the bounded Report theme JSON schema before authoring styles. Shared defaults cascade into partial saved themes, then supported chart overrides. No CSS, scripts or arbitrary ECharts objects.

No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": [],
    "additionalProperties": false
}
list_report_themes responses:read Pro+

List shipped themes and immutable account-owned Report theme versions, 50 per page. Use before=next_cursor for older saved versions. Metadata only.

Parameter
Type
Req.
Details
before
integer
no
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "before": {
            "type": "integer",
            "minimum": 1
        }
    },
    "required": [],
    "additionalProperties": false
}
get_report_theme responses:read Pro+

Read a shipped or owned Report theme definition and its resolved CSS/chart tokens, including the palette and scales. Omit version for the latest version. Use the returned id and version in Report definitions. version_id is the optimistic save guard for owned themes.

Parameter
Type
Req.
Details
theme_id
string
yes
version
integer
no
min 1 · max 10000
View input JSON schema
{
    "type": "object",
    "properties": {
        "theme_id": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,47}$"
        },
        "version": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000
        }
    },
    "required": [
        "theme_id"
    ],
    "additionalProperties": false
}
save_report_theme surveys:write Pro+

Create or append an immutable account Report theme version using get_report_theme_schema. Pass expected_version_id:null and version:1 for a new id; when revising, first get_report_theme and pass its current version_id with the next version number. Exact replays are no-ops; stale guards return version_conflict without mutation. Copy shipped themes under a new id. This does not modify or publish existing Reports, whose theme references stay pinned.

Parameter
Type
Req.
Details
definition
object
yes
Bounded partial Report theme matching get_report_theme_schema, including schema_version,id,version,name and a pinned base theme.
expected_version_id
integer | null
yes
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "definition": {
            "type": "object",
            "additionalProperties": true,
            "description": "Bounded partial Report theme matching get_report_theme_schema, including schema_version,id,version,name and a pinned base theme."
        },
        "expected_version_id": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 1
        }
    },
    "required": [
        "definition",
        "expected_version_id"
    ],
    "additionalProperties": false
}
get_derived_variables_schema surveys:validate Sandbox Free+

Read the schema for survey-local, row-only analysis columns. Formula semantics and examples are documented under reporting/derived-variables in survey_authoring_help.

No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": [],
    "additionalProperties": false
}
list_analysis_projects responses:read Pro+

List owned projects, 50 per page, with optional owned UUID after cursor. Metadata only. Read reporting/analysis-projects help.

Parameter
Type
Req.
Details
after
string
no
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "after": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": []
}
create_analysis_project responses:read Pro+

Create an owned Analysis over an already admitted frozen source_pin from get_survey_dataset. For a Survey with a confirmed shared acquisition, new Analyses must use its current shared source_pin and become bound to that acquisition; legacy Surveys retain independent projects. Logical survey_id and concrete version_id required. New UUID request_id; unknown outcomes retry identical input even after the shared source advances. Linked sources require an explicit source_unit_id from the frozen matrices unit_id catalogue, not a horizontal part id. Identity draft only, no Apply, new charge or report connection.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
version_id
integer
yes
min 1
request_id
string
yes
name
string
yes
min length 1 · max length 200
source_pin
object
yes
source_unit_id
string
no
min length 1 · max length 128
Required for linked generations: exact unit id from the frozen matrices catalogue, not a horizontal part id.
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "version_id": {
            "type": "integer",
            "minimum": 1
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
        },
        "source_pin": {
            "type": "object",
            "additionalProperties": false,
            "required": [
                "dataset_id",
                "generation_id",
                "cut",
                "access_revision"
            ],
            "properties": {
                "dataset_id": {
                    "type": "string",
                    "format": "uuid"
                },
                "generation_id": {
                    "type": "string",
                    "format": "uuid"
                },
                "cut": {
                    "type": "integer",
                    "minimum": 0
                },
                "access_revision": {
                    "type": "integer",
                    "minimum": 0
                }
            }
        },
        "source_unit_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Required for linked generations: exact unit id from the frozen matrices catalogue, not a horizontal part id."
        }
    },
    "required": [
        "survey_id",
        "version_id",
        "request_id",
        "name",
        "source_pin"
    ]
}
get_analysis_project responses:read Pro+

Read an owned Analysis summary with Source binding, draft revision and applied Result publications. Use view=fields with the applied Result generation_id (or snapshot=draft and draft id), then view=choices for a specific returned field id. Pass next_cursor as offset with the same snapshot and result. Request view=full for the complete saved recipe and schemas only when needed. No response values or mutations.

Parameter
Type
Req.
Details
view
string
no
summary, fields, choices, full
snapshot
string
no
applied, draft
snapshot_id
string
no
For fields or choices, the applied Result generation_id or draft id from the summary. Keep it fixed across pages.
result_id
string
no
field
string
no
min length 1 · max length 512
offset
integer
no
min 0
Use the returned next_cursor as offset.
limit
integer
no
min 1 · max 50
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "view": {
            "type": "string",
            "enum": [
                "summary",
                "fields",
                "choices",
                "full"
            ],
            "default": "summary"
        },
        "snapshot": {
            "type": "string",
            "enum": [
                "applied",
                "draft"
            ],
            "default": "applied"
        },
        "snapshot_id": {
            "type": "string",
            "format": "uuid",
            "description": "For fields or choices, the applied Result generation_id or draft id from the summary. Keep it fixed across pages."
        },
        "result_id": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_:-]{1,100}$",
            "default": "result"
        },
        "field": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
        },
        "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "Use the returned next_cursor as offset."
        },
        "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 20
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "project_id"
    ]
}
save_analysis_recipe responses:read Pro+

Save an immutable draft using legacy derivations/weighting/exclude_when OR a complete typed flow, never both. Flow orders derived, weight, exclusion and remove_fields stages. A grouped split_multiple derived node uses columns plus split:{source,code,label}; its individual binary outputs remain available downstream. Later stages can use only surviving ancestor fields; required identity/linkage/weight fields cannot be removed. Existing flow recipes require a complete flow save. Get draft.id as expected_revision_id; new UUID request_id, identical retry after unknown outcome. Saving does not Apply. Optional source_unit_id with confirm_source_change:true switches the working matrix in a new immutable revision using the unchanged prior recipe. Incompatible linear steps remain in inactive_steps; incompatible flow nodes retain definitions and edges with disabled:true and run as no-ops. Old published result and report pins retain their unit. Installed continuous protections reject Source/unit and protected ancestor changes with continuous_process_active (409), without mutation; independent branches and new paths remain editable. Explain that the affected Report process must stop first, never bypass the guard. No acquisition/billing or survey-local weight revision lookup.

Parameter
Type
Req.
Details
request_id
string
yes
expected_revision_id
string
yes
derivations
object
no
weighting
object | null
no
flow
object
no
Complete typed flow (schema_version 1, primary_result result, nodes). Kinds: source, derived with column (or columns plus split:{source,code,label}), weight with definition, exclusion with when, remove_fields with remove source_ids, parent_field with matrix_id/source/code/label, child_aggregate with the same fields and functions (distinct selections from mean/median/max/min/sum/count), result with label. Relations read adjacent frozen Source matrices only, never prepared Results. Aggregates require numeric values and emit only selected functions: one preserves code/label; several append _function to code and the function to label. Legacy singular function retains its historical helper fields. Special/missing cells are excluded. Grouped binaries use code_prefix_option. Every non-source has input; 1–16 terminal Results require exactly one Weight per path and publish atomically. Optional disabled:true on transformation nodes preserves incompatible definitions as no-ops; never disables Source or Result. Use instead of legacy components. Inputs must be available at that step; removal preserves keys and weights.
exclude_when
object | null
no
Exclude matching rows using the existing derived-variable predicate over selected source or derived fields. Null/omitted excludes nothing. Never changes admission or billing.
source_unit_id
string
no
min length 1 · max length 128
confirm_source_change
boolean
no
Submit the unchanged prior recipe separately from other edits. Incompatible linear steps remain in inactive_steps; flow nodes remain in place with disabled:true and execute as no-ops.
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "expected_revision_id": {
            "type": "string",
            "format": "uuid"
        },
        "derivations": {
            "type": "object"
        },
        "weighting": {
            "type": [
                "object",
                "null"
            ]
        },
        "flow": {
            "type": "object",
            "description": "Complete typed flow (schema_version 1, primary_result result, nodes). Kinds: source, derived with column (or columns plus split:{source,code,label}), weight with definition, exclusion with when, remove_fields with remove source_ids, parent_field with matrix_id/source/code/label, child_aggregate with the same fields and functions (distinct selections from mean/median/max/min/sum/count), result with label. Relations read adjacent frozen Source matrices only, never prepared Results. Aggregates require numeric values and emit only selected functions: one preserves code/label; several append _function to code and the function to label. Legacy singular function retains its historical helper fields. Special/missing cells are excluded. Grouped binaries use code_prefix_option. Every non-source has input; 1–16 terminal Results require exactly one Weight per path and publish atomically. Optional disabled:true on transformation nodes preserves incompatible definitions as no-ops; never disables Source or Result. Use instead of legacy components. Inputs must be available at that step; removal preserves keys and weights."
        },
        "exclude_when": {
            "type": [
                "object",
                "null"
            ],
            "description": "Exclude matching rows using the existing derived-variable predicate over selected source or derived fields. Null/omitted excludes nothing. Never changes admission or billing."
        },
        "source_unit_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
        },
        "confirm_source_change": {
            "type": "boolean",
            "const": true,
            "description": "Submit the unchanged prior recipe separately from other edits. Incompatible linear steps remain in inactive_steps; flow nodes remain in place with disabled:true and execute as no-ops."
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "request_id",
        "expected_revision_id",
        "project_id"
    ],
    "oneOf": [
        {
            "required": [
                "derivations"
            ],
            "not": {
                "required": [
                    "flow"
                ]
            }
        },
        {
            "required": [
                "flow"
            ],
            "not": {
                "anyOf": [
                    {
                        "required": [
                            "derivations"
                        ]
                    },
                    {
                        "required": [
                            "weighting"
                        ]
                    },
                    {
                        "required": [
                            "exclude_when"
                        ]
                    }
                ]
            }
        }
    ]
}
list_analysis_project_sources responses:read Pro+

List admitted frozen Source preparations of this project's same owned logical survey across versions, 50 per page. Metadata only, including exact source_pin and optional linked working matrices. Use next_cursor as after. A candidate is not approval to switch; use preview_analysis_project_source first.

Parameter
Type
Req.
Details
after
string
no
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "after": {
            "type": "string",
            "format": "uuid"
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "project_id"
    ]
}
preview_analysis_project_source responses:read Pro+

Non-mutating compatibility check before replacing a project Source. Pass current draft.id as expected_revision_id, candidate source_version_id and exact source_pin; linked Sources require source_unit_id. Returns cases, fields and retained inactive steps. No values, billing, Save, Apply or Report mutation. Finish/cancel any active calculation first.

Parameter
Type
Req.
Details
expected_revision_id
string
yes
source_version_id
integer
yes
min 1
source_pin
object
yes
source_unit_id
string | null
no
min length 1 · max length 128
Required exact frozen unit id for linked Sources; null or omitted for wide Sources.
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "expected_revision_id": {
            "type": "string",
            "format": "uuid"
        },
        "source_version_id": {
            "type": "integer",
            "minimum": 1
        },
        "source_pin": {
            "type": "object",
            "additionalProperties": false,
            "required": [
                "dataset_id",
                "generation_id",
                "cut",
                "access_revision"
            ],
            "properties": {
                "dataset_id": {
                    "type": "string",
                    "format": "uuid"
                },
                "generation_id": {
                    "type": "string",
                    "format": "uuid"
                },
                "cut": {
                    "type": "integer",
                    "minimum": 0
                },
                "access_revision": {
                    "type": "integer",
                    "minimum": 0
                }
            }
        },
        "source_unit_id": {
            "type": [
                "string",
                "null"
            ],
            "minLength": 1,
            "maxLength": 128,
            "description": "Required exact frozen unit id for linked Sources; null or omitted for wide Sources."
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "expected_revision_id",
        "source_version_id",
        "source_pin",
        "project_id"
    ]
}
reconnect_analysis_project_source responses:read Pro+

Only after explicit author approval of the compatibility preview, replace Source with an admitted frozen preparation of the same logical survey. Pass unchanged preview target/expected_revision_id, fresh UUID request_id and confirm_source_change:true. Creates an immutable revision and retains incompatible steps as disabled no-ops. Historical Result/export snapshots keep their original source; Reports follow the connected terminal only after complete publication, with exact per-read chart/print cuts. Never combines formula edits, acquires, charges or Applies. Unknown outcomes retry identical input/UUID; conflicts require rereading, not silent retry.

Parameter
Type
Req.
Details
expected_revision_id
string
yes
source_version_id
integer
yes
min 1
source_pin
object
yes
source_unit_id
string | null
no
min length 1 · max length 128
Required exact frozen unit id for linked Sources; null or omitted for wide Sources.
request_id
string
yes
confirm_source_change
boolean
yes
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "expected_revision_id": {
            "type": "string",
            "format": "uuid"
        },
        "source_version_id": {
            "type": "integer",
            "minimum": 1
        },
        "source_pin": {
            "type": "object",
            "additionalProperties": false,
            "required": [
                "dataset_id",
                "generation_id",
                "cut",
                "access_revision"
            ],
            "properties": {
                "dataset_id": {
                    "type": "string",
                    "format": "uuid"
                },
                "generation_id": {
                    "type": "string",
                    "format": "uuid"
                },
                "cut": {
                    "type": "integer",
                    "minimum": 0
                },
                "access_revision": {
                    "type": "integer",
                    "minimum": 0
                }
            }
        },
        "source_unit_id": {
            "type": [
                "string",
                "null"
            ],
            "minLength": 1,
            "maxLength": 128,
            "description": "Required exact frozen unit id for linked Sources; null or omitted for wide Sources."
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "confirm_source_change": {
            "type": "boolean",
            "const": true
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "expected_revision_id",
        "source_version_id",
        "source_pin",
        "request_id",
        "confirm_source_change",
        "project_id"
    ]
}
preview_analysis_project responses:read Pro+

Evaluate the first 20 source rows for the exact owned saved revision_id. Return retained rows, input/excluded/sample counts and calculated/inherited error diagnostics including excluded rows. Frozen admitted source only. Not representative or full Apply validation. No publication or charge.

Parameter
Type
Req.
Details
revision_id
string
yes
result_id
string
no
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "revision_id": {
            "type": "string",
            "format": "uuid"
        },
        "result_id": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_:-]{1,100}$"
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "revision_id",
        "project_id"
    ]
}
apply_analysis_project responses:read Pro+

Only with explicit author confirmation: confirm_apply=true, current expected_revision_id and fresh UUID request_id. Freezes source/recipe/schema/evaluator for the build. Installed continuous Results are excluded: retain their generation/Recipe unchanged while publishing unprotected Results atomically. All-protected Apply rejects continuous_process_active (409). Flows reuse published unchanged prefixes; Result members expose reused when fully cached. Unchanged values copy into the new participating generation set without reevaluation. Older flows need one baseline Apply. Retry identical guards. Previous Results remain available until publication, no report retargeting or charge.

Parameter
Type
Req.
Details
request_id
string
yes
expected_revision_id
string
yes
confirm_apply
boolean
yes
Publish one complete revision atomically. Flows reuse committed unchanged prefixes; Result members expose reused when fully cached. Unchanged values are copied to the new set without reevaluation. Older flows need one baseline Apply.
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "expected_revision_id": {
            "type": "string",
            "format": "uuid"
        },
        "confirm_apply": {
            "type": "boolean",
            "const": true,
            "description": "Publish one complete revision atomically. Flows reuse committed unchanged prefixes; Result members expose reused when fully cached. Unchanged values are copied to the new set without reevaluation. Older flows need one baseline Apply."
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "request_id",
        "expected_revision_id",
        "confirm_apply",
        "project_id"
    ]
}
calculate_analysis_project responses:read Pro+

Process at most 200 frozen inputs for owned project/generation_id. Typed flows reuse published unchanged prefixes and fully cached Results without reevaluating them; changed descendants calculate, new paths share ancestors. Wide/deep flows use smaller batches. Repeat while calculating. Progress and complete Result-set publication are atomic; errors keep prior Results. Fresh Report reads follow their connected terminal after publication; existing chart/print read cuts stay exact. Never hydrate live answers.

Parameter
Type
Req.
Details
project_id
string
yes
generation_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "project_id": {
            "type": "string",
            "format": "uuid"
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "project_id",
        "generation_id"
    ]
}
cancel_analysis_calculation responses:read Pro+

Cancel an in-progress Analysis calculation only when the user asks to cancel it and confirm_cancel=true. This discards temporary calculation progress and preserves the previous published Result and original source.

Parameter
Type
Req.
Details
confirm_cancel
boolean
yes
project_id
string
yes
generation_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "confirm_cancel": {
            "type": "boolean",
            "const": true
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "confirm_cancel",
        "project_id",
        "generation_id"
    ]
}
get_analysis_project_reports responses:read Pro+

Read the exact applied result target and latest 50 active owned reports for its survey, with frozen-catalogue compatibility errors and connected draft metadata. No response values or mutation. Use the returned dataset_source unchanged for an explicit connection.

Parameter
Type
Req.
Details
project_id
string
yes
result_id
string
no
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "project_id": {
            "type": "string",
            "format": "uuid"
        },
        "result_id": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_:-]{1,100}$"
        }
    },
    "required": [
        "project_id"
    ]
}
rollback_analysis_project_report responses:read Pro+

Only after explicit human approval, restore the immutable draft immediately preceding an exact successful Result connection receipt. Requires report_id, current expected_revision_id, original connection_request_id, fresh UUID request_id and confirm_rollback=true. Cannot overwrite edits after the connection or restore a newly created Report without a predecessor. Appends a validated draft, never repoints publication, changes billing, recreates withdrawn data or alters questionnaires. Retry identical arguments after unknown outcome; retry returns the original restoration without overwriting later edits.

Parameter
Type
Req.
Details
project_id
string
yes
request_id
string
yes
connection_request_id
string
yes
report_id
integer
yes
min 1
expected_revision_id
integer
yes
min 1
confirm_rollback
boolean
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "project_id": {
            "type": "string",
            "format": "uuid"
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "connection_request_id": {
            "type": "string",
            "format": "uuid"
        },
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "expected_revision_id": {
            "type": "integer",
            "minimum": 1
        },
        "confirm_rollback": {
            "type": "boolean",
            "const": true
        }
    },
    "required": [
        "project_id",
        "request_id",
        "connection_request_id",
        "report_id",
        "expected_revision_id",
        "confirm_rollback"
    ]
}
connect_analysis_project_report responses:read Pro+

Only after explicit user approval, connect the exact dataset_source from get_analysis_project_reports to a new named report draft (mode=create) or an owned existing draft (mode=update, report_id, expected_revision_id). For an unconnected draft use confirm_replace_legacy=true to connect acquired Result cases/fields/weights. Survey definition access remains available, but legacy parity previews and legacy_preview_hash are retired. Do not send either confirmation input for create. Explain input replacement before approval. confirm_connect=true and fresh UUID request_id required. Retry identical arguments after unknown outcome. Existing incompatible chart/filter fields and types are rejected, not removed; layout, fixed/viewer filters and date restrictions stay. No publication, share-link mutation, billing or automatic retargeting. Receipt includes previous_revision_id only for an actual update; a retry never overwrites later report edits.

Parameter
Type
Req.
Details
project_id
string
yes
request_id
string
yes
mode
string
yes
create, update
confirm_connect
boolean
yes
dataset_source
object
yes
name
string
no
min length 1 · max length 180
report_id
integer
no
min 1
expected_revision_id
integer
no
min 1
legacy_preview_hash
string
no
Retired input, rejected. Use confirm_replace_legacy to connect an acquired applied Result.
confirm_replace_legacy
boolean
no
Only for update, mutually exclusive with legacy_preview_hash: explicit approval to replace legacy live population/derivations/weighting with the selected frozen Result. Changes to cases and values are intentional, not certified as historical parity. Charts and filters must remain compatible; no publication or charge.
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "project_id": {
            "type": "string",
            "format": "uuid"
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "mode": {
            "type": "string",
            "enum": [
                "create",
                "update"
            ]
        },
        "confirm_connect": {
            "type": "boolean",
            "const": true
        },
        "dataset_source": {
            "type": "object",
            "additionalProperties": false,
            "required": [
                "analysis_project_id",
                "recipe_revision_id",
                "pin"
            ],
            "properties": {
                "analysis_project_id": {
                    "type": "string",
                    "format": "uuid"
                },
                "recipe_revision_id": {
                    "type": "string",
                    "format": "uuid"
                },
                "pin": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                        "dataset_id",
                        "generation_id",
                        "cut",
                        "access_revision"
                    ],
                    "properties": {
                        "dataset_id": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "generation_id": {
                            "type": "string",
                            "format": "uuid"
                        },
                        "cut": {
                            "type": "integer",
                            "minimum": 0
                        },
                        "access_revision": {
                            "type": "integer",
                            "minimum": 0
                        }
                    }
                }
            }
        },
        "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 180
        },
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "expected_revision_id": {
            "type": "integer",
            "minimum": 1
        },
        "legacy_preview_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "Retired input, rejected. Use confirm_replace_legacy to connect an acquired applied Result."
        },
        "confirm_replace_legacy": {
            "type": "boolean",
            "const": true,
            "description": "Only for update, mutually exclusive with legacy_preview_hash: explicit approval to replace legacy live population/derivations/weighting with the selected frozen Result. Changes to cases and values are intentional, not certified as historical parity. Charts and filters must remain compatible; no publication or charge."
        }
    },
    "required": [
        "project_id",
        "request_id",
        "mode",
        "confirm_connect",
        "dataset_source"
    ],
    "not": {
        "required": [
            "legacy_preview_hash",
            "confirm_replace_legacy"
        ]
    }
}
get_analysis_project_result responses:read Pro+

Read applied revision, exact published pin/schema, result total, input_count, excluded_count and first 20 result rows only. Checks source admission and withdrawal. A newer draft does not change this result. No full export or report connection.

Parameter
Type
Req.
Details
result_id
string
no
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "result_id": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_:-]{1,100}$"
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "project_id"
    ]
}
export_analysis_project responses:read Pro+

Finalize a private Analysis export over already admitted data. Use csv_zip or xlsx for data with a flat codebook, or csv for data only. Tabular formats include multiple selection lists, 0/1 indicators and plain special reasons. Set include_states=false to omit state columns. Typed NDJSON is available. SAV requires the spss_export plan entitlement, expands grouped multiples only at the file boundary and preserves labels, states, explicit special codes and effective weights. mode=draft evaluates the exact current saved revision_id without Apply and labels the output provisional. mode=applied reads the exact published generation_id and matching revision_id, never latest implicitly. Fresh UUID request_id, identical retry after unknown outcome. No charge, Apply, report mutation or direct provisional streaming. Calculated errors block file creation. Download only when artifact.status=ready; use get_analysis_project_export to check storage. Read reporting/analysis-projects help.

Parameter
Type
Req.
Details
request_id
string
yes
mode
string
yes
draft, applied
revision_id
string
yes
generation_id
string
no
format
string
yes
csv, csv_zip, xlsx, ndjson, sav
result_id
string
no
include_states
boolean
no
CSV, CSV ZIP and Excel only. Set false to omit companion .__state columns. Omission includes them.
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "mode": {
            "type": "string",
            "enum": [
                "draft",
                "applied"
            ]
        },
        "revision_id": {
            "type": "string",
            "format": "uuid"
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        },
        "format": {
            "type": "string",
            "enum": [
                "csv",
                "csv_zip",
                "xlsx",
                "ndjson",
                "sav"
            ]
        },
        "result_id": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_:-]{1,100}$"
        },
        "include_states": {
            "type": "boolean",
            "default": true,
            "description": "CSV, CSV ZIP and Excel only. Set false to omit companion .__state columns. Omission includes them."
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "request_id",
        "mode",
        "revision_id",
        "format",
        "project_id"
    ]
}
get_analysis_project_export responses:read Pro+

Read an owned Analysis project artifact status and exact saved recipe/result metadata. No response rows, file creation or payment. download_url is null until private storage confirms ready. Original source withdrawal also denies Account Files downloads. Retry the original export_analysis_project inputs only after an unknown creation outcome, not a new request.

Parameter
Type
Req.
Details
artifact_id
string
yes
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "artifact_id": {
            "type": "string",
            "format": "uuid"
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "artifact_id",
        "project_id"
    ]
}
import_analysis_project_zip responses:read Pro+

Reimport a private Analysis CSV ZIP processed externally from the selected applied Result. Read reporting/exports/analysis-zip-import.md via survey_authoring_help for the format and upload steps. Use begin with a fresh upload_id, exact size and SHA-256, append actual base64 file bytes and validate. After explicit approval, confirm with destination=analysis, confirm_import=true, title, preview_hash and a fresh request_id to create an Analysis with an applied Result. Retry the same confirmation unchanged. Uploads expire after one hour. A Report draft requires a separate request. Never hand-transcribe base64, publish a Report, or purchase responses.

Parameter
Type
Req.
Details
project_id
string
yes
upload_id
string
yes
Generate once for a new file. Keep it for every call in the upload.
action
string
yes
begin, append, validate, confirm
result_id
string
no
max length 100
Begin only. Stable applied Result identifier. Defaults to result.
size
integer
no
min 1 · max 4194304
Required for begin. Exact compressed ZIP byte length.
sha256
string
no
Required for begin. SHA-256 of the entire ZIP.
offset
integer
no
min 0 · max 4194303
Required for append. Start at zero and advance using next_offset.
data
string
no
min length 4 · max length 16384
Required for append. Standard padded base64 from 1–12 KiB of exact file bytes. The last chunk may be shorter.
confirm_import
boolean
no
Required for confirm after explicit user approval.
title
string
no
min length 1 · max length 180
Required for confirm. Name of the imported Analysis or Report draft.
destination
string
no
analysis, report
Confirm only. Use analysis for an applied Result. Omitting this preserves the original Report-draft API.
request_id
string
no
Required for confirm. Keep the same ID when retrying confirmation.
preview_hash
string
no
Required for confirm. Copy from validate.
View input JSON schema
{
    "type": "object",
    "properties": {
        "project_id": {
            "type": "string",
            "format": "uuid"
        },
        "upload_id": {
            "type": "string",
            "format": "uuid",
            "description": "Generate once for a new file. Keep it for every call in the upload."
        },
        "action": {
            "type": "string",
            "enum": [
                "begin",
                "append",
                "validate",
                "confirm"
            ]
        },
        "result_id": {
            "type": "string",
            "maxLength": 100,
            "description": "Begin only. Stable applied Result identifier. Defaults to result."
        },
        "size": {
            "type": "integer",
            "minimum": 1,
            "maximum": 4194304,
            "description": "Required for begin. Exact compressed ZIP byte length."
        },
        "sha256": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "description": "Required for begin. SHA-256 of the entire ZIP."
        },
        "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4194303,
            "description": "Required for append. Start at zero and advance using next_offset."
        },
        "data": {
            "type": "string",
            "minLength": 4,
            "maxLength": 16384,
            "description": "Required for append. Standard padded base64 from 1–12 KiB of exact file bytes. The last chunk may be shorter."
        },
        "confirm_import": {
            "type": "boolean",
            "const": true,
            "description": "Required for confirm after explicit user approval."
        },
        "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 180,
            "description": "Required for confirm. Name of the imported Analysis or Report draft."
        },
        "destination": {
            "type": "string",
            "enum": [
                "analysis",
                "report"
            ],
            "description": "Confirm only. Use analysis for an applied Result. Omitting this preserves the original Report-draft API."
        },
        "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "Required for confirm. Keep the same ID when retrying confirmation."
        },
        "preview_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "description": "Required for confirm. Copy from validate."
        }
    },
    "required": [
        "project_id",
        "upload_id",
        "action"
    ],
    "additionalProperties": false
}
get_derived_variables responses:read Free+

Read current analysis revision, column definitions and source metadata for a logical survey_id. Sources include native questions, stored @variables.id, supported @response metadata, sanitized @urlparams, stored @contact, bounded URL-key hints and typed @answers.question/@repeats.question collections. Explicit typed extraction supports unique matrix rows, rank positions, battery items and repeated answers with strict simple/compound identities; multiple matches error, never average implicitly. Recorded snapshots only, no current CRM/API/default lookup or platform tokens. No respondent values. Use revision_id as expected_revision_id for saving and analysis_revision_id in reports.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        }
    },
    "required": [
        "survey_id"
    ],
    "additionalProperties": false
}
validate_derived_variables responses:read Free+

Validate the complete set of typed row-local analysis columns without writing or reading respondent values. Checks sources, stable codes/labels, rules, safe expressions and dependency cycles.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
definition
object
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "definition": {
            "type": "object"
        }
    },
    "required": [
        "survey_id",
        "definition"
    ],
    "additionalProperties": false
}
preview_derived_variables responses:read Free+

Validate and preview analysis columns on the latest 100 responses of the current version, returning state counts and at most 10 input/output examples. This is sampled, not full-cohort statistics. Does not persist anything.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
definition
object
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "definition": {
            "type": "object"
        }
    },
    "required": [
        "survey_id",
        "definition"
    ],
    "additionalProperties": false
}
save_derived_variables responses:read Free+

Save an immutable revision of the complete analysis-column set. Read get_derived_variables first, preview and pass its revision_id as expected_revision_id (null for first creation). Conflicts never mutate data. Apply it with calculate_derived_variables before SQL reporting. Original answers and existing report revisions remain unchanged.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
expected_revision_id
integer | null
yes
min 1
definition
object
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "expected_revision_id": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 1
        },
        "definition": {
            "type": "object"
        }
    },
    "required": [
        "survey_id",
        "expected_revision_id",
        "definition"
    ],
    "additionalProperties": false
}
get_weighting_schema surveys:validate Sandbox Free+

Read the bounded schema for row-local conditional weights. Read reporting/weighting in survey_authoring_help.

No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": [],
    "additionalProperties": false
}
calculate_derived_variables responses:read Free+

Apply the current saved analysis revision to an atomic SQL generation without editing original answers. Bootstrap max250 rows then project max200 per call; retain previously covered compatible versions. Pass revision_id from get_derived_variables or save_derived_variables and continue the opaque cursor while calculating. Ready means published with durable catch-up queued. Operational counts include screened-out projection rows, not the selected report base; no respondent values or category counts.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
revision_id
integer
yes
min 1
cursor
string | null
no
max length 4096
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "revision_id": {
            "type": "integer",
            "minimum": 1
        },
        "cursor": {
            "type": [
                "string",
                "null"
            ],
            "maxLength": 4096
        }
    },
    "required": [
        "survey_id",
        "revision_id"
    ],
    "additionalProperties": false
}
get_weighting responses:read Free+

Read current immutable weighting definition, source codebooks and schema for a logical survey. Use revision_id as expected_revision_id on save and weight_revision_id to pin reports.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        }
    },
    "required": [
        "survey_id"
    ],
    "additionalProperties": false
}
validate_weighting responses:read Free+

Validate ordered positive conditional weights and a default weight. First matching rule wins; no writes or original answer changes.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
definition
object
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "definition": {
            "type": "object"
        }
    },
    "required": [
        "survey_id",
        "definition"
    ],
    "additionalProperties": false
}
preview_weighting responses:read Free+

Preview latest 100 or full_sample=true current-version non-screened-out responses. For real bounded progress pass progress=true and repeat with the returned cursor and unchanged definition until status is no longer calculating. Partial rule counts are never exposed. Disclosure suppression applies. No writes or billing.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
definition
object
yes
full_sample
boolean
no
progress
boolean
no
cursor
string
no
min length 1 · max length 4096
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "definition": {
            "type": "object"
        },
        "full_sample": {
            "type": "boolean"
        },
        "progress": {
            "type": "boolean"
        },
        "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
        }
    },
    "required": [
        "survey_id",
        "definition"
    ],
    "additionalProperties": false
}
save_weighting responses:read Free+

Save an immutable weighting revision with expected_revision_id (null for first creation). Preview first, then calculate_weighting until ready to publish SQL weights. Does not overwrite collected weights. Existing reports change only with explicit weight_revision_id.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
definition
object
yes
expected_revision_id
integer | null
yes
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "definition": {
            "type": "object"
        },
        "expected_revision_id": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 1
        }
    },
    "required": [
        "survey_id",
        "definition",
        "expected_revision_id"
    ],
    "additionalProperties": false
}
calculate_weighting responses:read Free+

Apply a saved current weighting revision in bounded batches and atomically publish SQL weights. If required, prepares the pinned derived dependency first. Continue with revision_id and the returned cursor until ready. Preserves previous generations, compatible versions and original answers/weights. Late responses catch up durably. No billing or survey version creation.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
revision_id
integer
yes
min 1
cursor
string
no
min length 1 · max length 4096
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "revision_id": {
            "type": "integer",
            "minimum": 1
        },
        "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
        }
    },
    "required": [
        "survey_id",
        "revision_id"
    ],
    "additionalProperties": false
}
get_report_comments responses:read Free+

Inspect optional dynamic Report commentary over referenced visible charts/tables/KPIs at one exact acquired Analysis Result/filter context. Hidden analytical specs are rejected; generation uses prepared renderer data and never waits for graph drawing. DEMO only: requires a platform-assigned account entitlement. mode=status reads saved state and mode=estimate measures exact prepared UTF-8 bytes, the limit, and the savings for each removed block. Neither contacts the provider. Explicit mode=request may queue metered generation for an uncached context; no monthly quota or wallet charge. Pass report_id, expected_revision_id from get_report_context and filters (empty for global). Reuse returned read_token for polling the same frozen context. Voice is independently disabled by default. get_report_context.dynamic_comments.audio.enabled reports availability and its endpoint is null when disabled; written commentary remains independent. This tool never generates audio. This does not enable the feature, change static comments, publish or reveal raw responses.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
expected_revision_id
integer
yes
min 1
filters
array<object>
yes
items object
mode
string
no
status, estimate, request
read_token
string
no
min length 1 · max length 16000
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "expected_revision_id": {
            "type": "integer",
            "minimum": 1
        },
        "filters": {
            "type": "array",
            "maxItems": 10,
            "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                    "question_id",
                    "values"
                ],
                "properties": {
                    "question_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 600
                    },
                    "values": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 100,
                        "uniqueItems": true,
                        "items": {
                            "type": "integer"
                        }
                    }
                }
            }
        },
        "mode": {
            "type": "string",
            "enum": [
                "status",
                "estimate",
                "request"
            ],
            "default": "status"
        },
        "read_token": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16000
        }
    },
    "required": [
        "report_id",
        "expected_revision_id",
        "filters"
    ],
    "additionalProperties": false
}
get_report_context responses:read Pro+

Read what is available to build or edit a Report for one Survey or Report ID: questions, typed fields, saved Reports and image metadata. For a connected Report, returns the current revision, Analysis Result and source lineage. Does not return respondent rows, change a Report or charge the account.

Parameter
Type
Req.
Details
survey_id
integer
no
min 1
report_id
integer
no
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "report_id": {
            "type": "integer",
            "minimum": 1
        }
    },
    "required": [],
    "additionalProperties": false
}
get_analysis_context responses:read Free+

Read compatible native/derived and stored numeric/boolean dataset variables, allowed measures, declared codes and the transient exploration query schema for a logical survey. Structured/text/date sources require compatible typed derivation. No respondent values or saved exploration.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        }
    },
    "required": [
        "survey_id"
    ],
    "additionalProperties": false
}
set_report_continuous_lifecycle responses:export Free+

Pause or stop a historical independent Report circuit after explicit user approval. Stopping releases its protections and preserves Survey collection. Cannot activate or resume acquisition.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
action
string
yes
pause, stop
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "action": {
            "type": "string",
            "enum": [
                "pause",
                "stop"
            ]
        }
    },
    "required": [
        "report_id",
        "action"
    ],
    "additionalProperties": false
}
preview_report_image_regions responses:read Free+

Inspect an owned uncropped Gallery image and visually review proposed named polygon regions before saving a Report. Returns an image content block with outlines and an SVG overlay. Pass an empty regions array to inspect the image first. Coordinates are normalized from the top left; no image, Report or response is changed. Show the preview to the author and adjust uncertain boundaries.

Parameter
Type
Req.
Details
image_artifact_id
string
yes
regions
array<object>
yes
items object
View input JSON schema
{
    "type": "object",
    "properties": {
        "image_artifact_id": {
            "type": "string",
            "format": "uuid"
        },
        "regions": {
            "type": "array",
            "maxItems": 20,
            "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                    "id",
                    "name",
                    "vertices"
                ],
                "properties": {
                    "id": {
                        "type": "string",
                        "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                    },
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                    },
                    "vertices": {
                        "type": "array",
                        "minItems": 3,
                        "maxItems": 32,
                        "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                                "x",
                                "y"
                            ],
                            "properties": {
                                "x": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                },
                                "y": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "required": [
        "image_artifact_id",
        "regions"
    ],
    "additionalProperties": false
}
validate_report responses:read Pro+

Validate a report definition against its survey metadata, chart constraints and owned images without saving it. A valid result does not publish the report.

Parameter
Type
Req.
Details
definition
object
yes
Complete report definition matching get_report_schema. Root show_tables=true adds a results annex on screen and in PDF. The value "print" limits it to PDF. Set root language to localize its labels. See reporting/results-tables.md in survey_authoring_help. Use layout_version:3 for new Reports. Block widths are percentages (e.g. 25 and 75 or a standalone 100). A row accepts up to three charts and its widths must sum to at most 100 in either orientation. Preserve the layout version when editing a saved Report without changing its composition. Optional theme selects an exact shipped or account-owned id/version (use get_report_theme_schema and save_report_theme to create a theme); question blocks may set titleHighlighted:true/false to enable/disable their shared theme title highlight; omission inherits the theme default. Separately, highlighted:true enables container emphasis, without arbitrary per-chart styles. Optional axes.primary/secondary can override numeric interval (auto or 0.001–1000000) and grid_color without changing scale limits; axis-less charts reject overrides. Root color_sets define named hex palettes; question blocks pair color_set with color_map entries {code,color} to reuse a color across different codes or labels. Author controls relationships; unknown references and duplicate codes fail validation. Segment comparison.include_total:true adds a first Total from the full filtered chart population and weights, not an average of segment percentages; selected display groups do not narrow Total. Optional chart label_images maps {question_id,code,image_artifact_id} to owned gallery images on category or segment labels, with original text fallback for unmapped codes such as NS/NC. Dimensions may set dimension_labels keyed by their exact question_ids to override captured display labels. Rating groups may set rating_group_labels. Standalone stacked bars and segment bar charts accept bar_orientation.
View input JSON schema
{
    "type": "object",
    "properties": {
        "definition": {
            "type": "object",
            "description": "Complete report definition matching get_report_schema. Root show_tables=true adds a results annex on screen and in PDF. The value \"print\" limits it to PDF. Set root language to localize its labels. See reporting/results-tables.md in survey_authoring_help. Use layout_version:3 for new Reports. Block widths are percentages (e.g. 25 and 75 or a standalone 100). A row accepts up to three charts and its widths must sum to at most 100 in either orientation. Preserve the layout version when editing a saved Report without changing its composition. Optional theme selects an exact shipped or account-owned id/version (use get_report_theme_schema and save_report_theme to create a theme); question blocks may set titleHighlighted:true/false to enable/disable their shared theme title highlight; omission inherits the theme default. Separately, highlighted:true enables container emphasis, without arbitrary per-chart styles. Optional axes.primary/secondary can override numeric interval (auto or 0.001–1000000) and grid_color without changing scale limits; axis-less charts reject overrides. Root color_sets define named hex palettes; question blocks pair color_set with color_map entries {code,color} to reuse a color across different codes or labels. Author controls relationships; unknown references and duplicate codes fail validation. Segment comparison.include_total:true adds a first Total from the full filtered chart population and weights, not an average of segment percentages; selected display groups do not narrow Total. Optional chart label_images maps {question_id,code,image_artifact_id} to owned gallery images on category or segment labels, with original text fallback for unmapped codes such as NS/NC. Dimensions may set dimension_labels keyed by their exact question_ids to override captured display labels. Rating groups may set rating_group_labels. Standalone stacked bars and segment bar charts accept bar_orientation.",
            "additionalProperties": true
        }
    },
    "required": [
        "definition"
    ],
    "additionalProperties": false
}
save_report_draft responses:read Pro+

Create or revise a report definition. A definition-only draft may omit dataset_source and returns requires_analysis_result=true. Viewing data, charts, totals, print and publication require an acquired applied Analysis Result; drafts never read Survey responses directly. Use get_analysis_project_reports and connect_analysis_project_report to connect data. For update, first read get_report_context and pass report_id plus its current_revision_id as expected_revision_id; a stale revision returns a conflict without saving. This does not publish, expose response data or grant access to the session-protected preview link.

Parameter
Type
Req.
Details
mode
string
yes
create, update
definition
object
yes
Complete report definition matching get_report_schema. Root show_tables=true adds a results annex on screen and in PDF. The value "print" limits it to PDF. Set root language to localize its labels. See reporting/results-tables.md in survey_authoring_help. Use layout_version:3 for new Reports. Block widths are percentages (e.g. 25 and 75 or a standalone 100). A row accepts up to three charts and its widths must sum to at most 100 in either orientation. Preserve the layout version when editing a saved Report without changing its composition. Optional theme selects an exact shipped or account-owned id/version (use get_report_theme_schema and save_report_theme to create a theme); question blocks may set titleHighlighted:true/false to enable/disable their shared theme title highlight; omission inherits the theme default. Separately, highlighted:true enables container emphasis, without arbitrary per-chart styles. Optional axes.primary/secondary can override numeric interval (auto or 0.001–1000000) and grid_color without changing scale limits; axis-less charts reject overrides. Root color_sets define named hex palettes; question blocks pair color_set with color_map entries {code,color} to reuse a color across different codes or labels. Author controls relationships; unknown references and duplicate codes fail validation. Segment comparison.include_total:true adds a first Total from the full filtered chart population and weights, not an average of segment percentages; selected display groups do not narrow Total. Optional chart label_images maps {question_id,code,image_artifact_id} to owned gallery images on category or segment labels, with original text fallback for unmapped codes such as NS/NC. Dimensions may set dimension_labels keyed by their exact question_ids to override captured display labels. Rating groups may set rating_group_labels. Standalone stacked bars and segment bar charts accept bar_orientation.
report_id
integer
no
min 1
expected_revision_id
integer
no
min 1
confirm_sample_context
boolean
no
Show the exact sample_context.description in the MCP authoring conversation and pass true only after the author explicitly approves it for the connected Result and report selection. Use the same save_report_draft call; an unchanged approved note carries forward on ordinary edits.
View input JSON schema
{
    "type": "object",
    "properties": {
        "mode": {
            "type": "string",
            "enum": [
                "create",
                "update"
            ]
        },
        "definition": {
            "type": "object",
            "description": "Complete report definition matching get_report_schema. Root show_tables=true adds a results annex on screen and in PDF. The value \"print\" limits it to PDF. Set root language to localize its labels. See reporting/results-tables.md in survey_authoring_help. Use layout_version:3 for new Reports. Block widths are percentages (e.g. 25 and 75 or a standalone 100). A row accepts up to three charts and its widths must sum to at most 100 in either orientation. Preserve the layout version when editing a saved Report without changing its composition. Optional theme selects an exact shipped or account-owned id/version (use get_report_theme_schema and save_report_theme to create a theme); question blocks may set titleHighlighted:true/false to enable/disable their shared theme title highlight; omission inherits the theme default. Separately, highlighted:true enables container emphasis, without arbitrary per-chart styles. Optional axes.primary/secondary can override numeric interval (auto or 0.001–1000000) and grid_color without changing scale limits; axis-less charts reject overrides. Root color_sets define named hex palettes; question blocks pair color_set with color_map entries {code,color} to reuse a color across different codes or labels. Author controls relationships; unknown references and duplicate codes fail validation. Segment comparison.include_total:true adds a first Total from the full filtered chart population and weights, not an average of segment percentages; selected display groups do not narrow Total. Optional chart label_images maps {question_id,code,image_artifact_id} to owned gallery images on category or segment labels, with original text fallback for unmapped codes such as NS/NC. Dimensions may set dimension_labels keyed by their exact question_ids to override captured display labels. Rating groups may set rating_group_labels. Standalone stacked bars and segment bar charts accept bar_orientation.",
            "additionalProperties": true
        },
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "expected_revision_id": {
            "type": "integer",
            "minimum": 1
        },
        "confirm_sample_context": {
            "type": "boolean",
            "description": "Show the exact sample_context.description in the MCP authoring conversation and pass true only after the author explicitly approves it for the connected Result and report selection. Use the same save_report_draft call; an unchanged approved note carries forward on ordinary edits."
        }
    },
    "required": [
        "mode",
        "definition"
    ],
    "additionalProperties": false
}
publish_report responses:read Free+

Only after explicit author approval, publish the current Report draft using expected_revision_id from get_report_context. Requires an acquired applied Analysis Result. Existing valid non-revoked share links become available again; no link is created, no email is sent and no wallet charge occurs. Does not start collection or acquisition.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
expected_revision_id
integer
yes
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "expected_revision_id": {
            "type": "integer",
            "minimum": 1
        }
    },
    "required": [
        "report_id",
        "expected_revision_id"
    ],
    "additionalProperties": false
}
unpublish_report responses:read Free+

Only after explicit author approval, withdraw a Report from ALL share links. First read get_report_context; pass current_revision_id as expected_revision_id and published_revision_id as expected_published_revision_id (null if already unpublished). Preserves drafts, immutable publication history, link URLs/dates and authenticated Preview. Republish can restore still-valid non-revoked links. Use revoke_report_share_link for permanent removal of just one link. No collection, acquisition, email or wallet change.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
expected_revision_id
integer
yes
min 1
expected_published_revision_id
integer | null
yes
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "expected_revision_id": {
            "type": "integer",
            "minimum": 1
        },
        "expected_published_revision_id": {
            "type": [
                "integer",
                "null"
            ],
            "minimum": 1
        }
    },
    "required": [
        "report_id",
        "expected_revision_id",
        "expected_published_revision_id"
    ],
    "additionalProperties": false
}
list_report_email_batches responses:read Free+

List sendings of an owned Report share link, with subject, selected sender/template, dates, recipient/status counts and actual billed cost. Paginated. No bearer URL is returned.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
link_id
integer
yes
min 1
page
integer
no
min 1
page_size
integer
no
min 1 · max 100
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "link_id": {
            "type": "integer",
            "minimum": 1
        },
        "page": {
            "type": "integer",
            "minimum": 1
        },
        "page_size": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
        }
    },
    "required": [
        "report_id",
        "link_id"
    ],
    "additionalProperties": false
}
get_report_email_options responses:read Free+

List existing base/account email templates, verified sender identities and audience selectors for mailing an existing Report link. No recipients or bearer URLs are returned; no mail is sent.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
link_id
integer
yes
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "link_id": {
            "type": "integer",
            "minimum": 1
        }
    },
    "required": [
        "report_id",
        "link_id"
    ],
    "additionalProperties": false
}
preview_report_email responses:read Free+

Preview a Report email using an existing template and sender, selecting an individual email or union of tags/segments. Returns a redacted preview, recipient/exclusion counts, estimated email cost and a 15-minute preview_token. For a personalized batch use recipient_mode link_batch and its email_link_id. Ordinary sends share one link. No send, queue or wallet charge.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
link_id
integer
yes
min 1
email
object
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "link_id": {
            "type": "integer",
            "minimum": 1
        },
        "email": {
            "type": "object",
            "properties": {
                "sender_identity": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "shared or custom:<id> from get_report_email_options."
                },
                "email_template": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "base:<key> or custom:<id> from get_report_email_options."
                },
                "recipient_mode": {
                    "type": "string",
                    "enum": [
                        "individual",
                        "tags",
                        "segments",
                        "link_batch"
                    ]
                },
                "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 255
                },
                "tag_ids": {
                    "type": "array",
                    "items": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "maxItems": 50,
                    "uniqueItems": true
                },
                "segment_ids": {
                    "type": "array",
                    "items": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "maxItems": 50,
                    "uniqueItems": true
                },
                "subject": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                },
                "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10000,
                    "description": "Plain text containing the exact {{reportLink}} placeholder. No Survey invitation placeholders or HTML."
                }
            },
            "required": [
                "sender_identity",
                "email_template",
                "recipient_mode",
                "subject",
                "message"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "report_id",
        "link_id",
        "email"
    ],
    "additionalProperties": false
}
send_report_email responses:read Free+

Only after explicit human approval of preview recipients/message/cost, queue the existing Report share link. Use unchanged email settings plus preview_token, a unique request_key and confirmed:true. Uses the same account email allowance/pricing as invitations. A personalized batch delivers its assigned link for each contact. Publication, link validity, recipient and sender are rechecked before delivery. No survey collection or acquisition changes. Read get_report_email_batch for transport outcomes.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
link_id
integer
yes
min 1
email
object
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "link_id": {
            "type": "integer",
            "minimum": 1
        },
        "email": {
            "type": "object",
            "properties": {
                "sender_identity": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "shared or custom:<id> from get_report_email_options."
                },
                "email_template": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "description": "base:<key> or custom:<id> from get_report_email_options."
                },
                "recipient_mode": {
                    "type": "string",
                    "enum": [
                        "individual",
                        "tags",
                        "segments",
                        "link_batch"
                    ]
                },
                "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 255
                },
                "tag_ids": {
                    "type": "array",
                    "items": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "maxItems": 50,
                    "uniqueItems": true
                },
                "segment_ids": {
                    "type": "array",
                    "items": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "maxItems": 50,
                    "uniqueItems": true
                },
                "subject": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                },
                "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10000,
                    "description": "Plain text containing the exact {{reportLink}} placeholder. No Survey invitation placeholders or HTML."
                },
                "preview_token": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                },
                "request_key": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 80
                },
                "confirmed": {
                    "type": "boolean",
                    "const": true
                }
            },
            "required": [
                "sender_identity",
                "email_template",
                "recipient_mode",
                "subject",
                "message",
                "preview_token",
                "request_key",
                "confirmed"
            ],
            "additionalProperties": false
        }
    },
    "required": [
        "report_id",
        "link_id",
        "email"
    ],
    "additionalProperties": false
}
get_report_email_batch responses:read Free+

Read an owned Report email sending with paginated contact/email details, sent dates, delivery states and estimated openings. Sent means transport accepted, not inbox delivery. A sending status can be ambiguous after interruption and is not automatically resent. Recipient addresses and the author message are private to this authorized account surface. No bearer URL or provider payload is returned.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
link_id
integer
yes
min 1
batch_id
integer
yes
min 1
page
integer
no
min 1
page_size
integer
no
min 1 · max 100
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "link_id": {
            "type": "integer",
            "minimum": 1
        },
        "batch_id": {
            "type": "integer",
            "minimum": 1
        },
        "page": {
            "type": "integer",
            "minimum": 1
        },
        "page_size": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
        }
    },
    "required": [
        "report_id",
        "link_id",
        "batch_id"
    ],
    "additionalProperties": false
}
list_report_share_links responses:read Pro+

List report share-link metadata and selectable active custom domains. Does not reveal bearer URLs. Links follow the latest published revision, never the draft; aggregate totals remain live. Requires report-publisher authority.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        }
    },
    "required": [
        "report_id"
    ],
    "additionalProperties": false
}
create_report_share_link responses:read Pro+

Create a read-only magic link for an active published report, with its declared viewer filters and optional operator-entitled DEMO prose. Shared readers exclude audio and cannot access drafts. Pass label and either duration_days or explicit expires_at; starts_at defaults to now. Dates define access validity, not response filters. Optional active owned domain_id. Returns a sensitive bearer URL: share only with the intended recipient, never put it in public logs or documentation. Does not publish or charge the wallet. For personalized batches, see the sharing Help for settings.batch options, preview and explicit create. Batch operations also require audiences:read. Mappings may combine distinct contact fields on each Result row and match a list of authorized values within one field. Optional baseText is resolved per link. Batch creation returns link metadata and email_link_id, without bearer URLs.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
settings
object
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "settings": {
            "type": "object",
            "properties": {
                "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                },
                "starts_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "ISO 8601 with explicit UTC offset. Omit to start now."
                },
                "expires_at": {
                    "type": "string",
                    "format": "date-time"
                },
                "duration_days": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 3650,
                    "description": "From starts_at; choose this or expires_at."
                },
                "domain_id": {
                    "type": [
                        "integer",
                        "null"
                    ],
                    "minimum": 1,
                    "description": "An active owned custom domain from list_report_share_links; null selects Dayalogs."
                },
                "batch": {
                    "type": "object",
                    "properties": {
                        "operation": {
                            "type": "string",
                            "enum": [
                                "options",
                                "preview",
                                "create"
                            ]
                        },
                        "audience": {
                            "type": "string",
                            "enum": [
                                "tags",
                                "segments"
                            ]
                        },
                        "audience_ids": {
                            "type": "array",
                            "items": {
                                "type": "integer",
                                "minimum": 1
                            },
                            "minItems": 1,
                            "maxItems": 50
                        },
                        "contact_field": {
                            "type": "string",
                            "maxLength": 180,
                            "description": "external_id or custom_fields.<key>."
                        },
                        "result_field": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "A text or single-choice field from batch options."
                        },
                        "mappings": {
                            "type": "array",
                            "minItems": 1,
                            "maxItems": 8,
                            "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                    "contact_field",
                                    "result_field"
                                ],
                                "properties": {
                                    "contact_field": {
                                        "type": "string",
                                        "maxLength": 180,
                                        "description": "external_id or custom_fields.<key>."
                                    },
                                    "result_field": {
                                        "type": "string",
                                        "maxLength": 255,
                                        "description": "A text or single-choice Result field."
                                    },
                                    "match": {
                                        "enum": [
                                            "equals",
                                            "one_of"
                                        ],
                                        "description": "equals uses a scalar. one_of accepts a list or a JSON array string. Conditions on different fields must all match."
                                    }
                                }
                            }
                        },
                        "baseText": {
                            "type": "string",
                            "maxLength": 160,
                            "description": "Plain text with optional {{contact_field}} placeholders. The reader base is calculated independently."
                        },
                        "preview_token": {
                            "type": "string",
                            "maxLength": 100
                        },
                        "request_key": {
                            "type": "string",
                            "minLength": 8,
                            "maxLength": 80
                        }
                    },
                    "required": [
                        "operation"
                    ],
                    "additionalProperties": false
                }
            },
            "required": [],
            "additionalProperties": false,
            "oneOf": [
                {
                    "required": [
                        "duration_days",
                        "label"
                    ],
                    "not": {
                        "required": [
                            "expires_at"
                        ]
                    }
                },
                {
                    "required": [
                        "expires_at",
                        "label"
                    ],
                    "not": {
                        "required": [
                            "duration_days"
                        ]
                    }
                },
                {
                    "required": [
                        "batch"
                    ],
                    "properties": {
                        "batch": {
                            "properties": {
                                "operation": {
                                    "const": "options"
                                }
                            }
                        }
                    },
                    "maxProperties": 1
                }
            ]
        }
    },
    "required": [
        "report_id",
        "settings"
    ],
    "additionalProperties": false
}
update_report_share_link responses:read Pro+

Replace a share link name and access date window, using duration_days or expires_at. The chosen host is immutable. Revoked links cannot be reactivated; create a new link instead. Does not change report data filters.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
link_id
integer
yes
min 1
settings
object
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "link_id": {
            "type": "integer",
            "minimum": 1
        },
        "settings": {
            "type": "object",
            "properties": {
                "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 180
                },
                "starts_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "ISO 8601 with explicit UTC offset. Omit to start now."
                },
                "expires_at": {
                    "type": "string",
                    "format": "date-time"
                },
                "duration_days": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 3650,
                    "description": "From starts_at; choose this or expires_at."
                }
            },
            "required": [
                "label"
            ],
            "additionalProperties": false,
            "oneOf": [
                {
                    "required": [
                        "duration_days"
                    ],
                    "not": {
                        "required": [
                            "expires_at"
                        ]
                    }
                },
                {
                    "required": [
                        "expires_at"
                    ],
                    "not": {
                        "required": [
                            "duration_days"
                        ]
                    }
                }
            ]
        }
    },
    "required": [
        "report_id",
        "link_id",
        "settings"
    ],
    "additionalProperties": false
}
revoke_report_share_link responses:read Pro+

Immediately revoke one report magic link, including future reads from an already opened viewer and its private images. Idempotent. Other links for the same report remain unaffected.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
link_id
integer
yes
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "link_id": {
            "type": "integer",
            "minimum": 1
        }
    },
    "required": [
        "report_id",
        "link_id"
    ],
    "additionalProperties": false
}
get_report_share_link_url responses:read Pro+

Explicitly retrieve a sensitive report bearer URL for copying to an intended reader. List tools never return these credentials. Revoked links have no URL. Treat the returned fragment as a password.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
link_id
integer
yes
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "link_id": {
            "type": "integer",
            "minimum": 1
        }
    },
    "required": [
        "report_id",
        "link_id"
    ],
    "additionalProperties": false
}
prepare_image_upload responses:read Free+

Request a private Gallery upload ticket for a local JPEG, PNG or WebP attachment. Compute the size and lowercase SHA-256 from the file. PUT the exact file bytes to upload_url as application/octet-stream with Authorization: DayalogsUpload <upload_token>. Keep the ticket private. The HTTP upload response contains image.image_artifact_id. Tickets expire after 10 minutes and can be retried with the same bytes. Uploading does not attach or publish the image.

Parameter
Type
Req.
Details
target_type
string
yes
account, report
target_id
integer
no
min 1
Required for a report. Omit for the connected account.
filename
string
yes
min length 1 · max length 255
size
integer
yes
min 1 · max 8388608
sha256
string
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "target_type": {
            "type": "string",
            "enum": [
                "account",
                "report"
            ]
        },
        "target_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Required for a report. Omit for the connected account."
        },
        "filename": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
        },
        "size": {
            "type": "integer",
            "minimum": 1,
            "maximum": 8388608
        },
        "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
        }
    },
    "required": [
        "target_type",
        "filename",
        "size",
        "sha256"
    ],
    "additionalProperties": false
}
upload_image responses:read Free+

Upload a JPEG, PNG or WebP image to the private account Gallery. Use target_type=account for the connected account, or target_type=report with an owned report ID. The input is actual standard base64 file bytes, at most 8 MB and 10000 pixels per side. Images are normalized to WebP with a 3840-pixel longest-edge cap, without cropping or upscaling. Returns image.image_artifact_id for survey prompts, visual choices or Report image placements. Identical uploads reuse the same asset. Uploading alone does not attach or publish the image.

Parameter
Type
Req.
Details
target_type
string
yes
account, report
Use account for survey images and general Gallery uploads, or report for a report-targeted upload.
target_id
integer
no
min 1
Required for report. For account, omit to use the connected account or pass its organization ID.
filename
string
yes
min length 1 · max length 255
content_base64
string
yes
min length 1 · max length 11184812
View input JSON schema
{
    "type": "object",
    "properties": {
        "target_type": {
            "type": "string",
            "enum": [
                "account",
                "report"
            ],
            "description": "Use account for survey images and general Gallery uploads, or report for a report-targeted upload."
        },
        "target_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Required for report. For account, omit to use the connected account or pass its organization ID."
        },
        "filename": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
        },
        "content_base64": {
            "type": "string",
            "minLength": 1,
            "maxLength": 11184812
        }
    },
    "required": [
        "target_type",
        "filename",
        "content_base64"
    ],
    "additionalProperties": false
}
authorize_survey_automatic_acquisition responses:export Free+

Start bounded automatic acquisition after explicit approval of the exact authorization preview for this target. Match its terms and hash. Acceptance saves consent and enables later metered acquisition within the allowance; it does not debit immediately.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
Logical Survey ID.
max_amount_cents
integer
no
min 1 · max 2147483647
The approved maximum spend in EUR cents.
max_cases
integer
no
min 1 · max 10000
Legacy case limit from an approved case-based preview only.
timezone
string
yes
Timezone from the approved preview.
ends_at
string | null
no
Optional end date/time from the approved preview.
accepted
boolean
yes
request_id
string
yes
confirmation_hash
string
yes
min length 1
analysis_ids
array<string>
no
items string
Linked study only. Same Analysis destination IDs as in the approved monetary preview.
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Logical Survey ID."
        },
        "max_amount_cents": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "The approved maximum spend in EUR cents."
        },
        "max_cases": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000,
            "description": "Legacy case limit from an approved case-based preview only."
        },
        "timezone": {
            "type": "string",
            "description": "Timezone from the approved preview."
        },
        "ends_at": {
            "type": [
                "string",
                "null"
            ],
            "description": "Optional end date/time from the approved preview."
        },
        "accepted": {
            "type": "boolean",
            "const": true
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "confirmation_hash": {
            "type": "string",
            "minLength": 1
        },
        "analysis_ids": {
            "type": "array",
            "maxItems": 200,
            "uniqueItems": true,
            "items": {
                "type": "string",
                "format": "uuid"
            },
            "description": "Linked study only. Same Analysis destination IDs as in the approved monetary preview."
        }
    },
    "required": [
        "survey_id",
        "timezone",
        "accepted",
        "request_id",
        "confirmation_hash"
    ],
    "additionalProperties": false
}
stop_survey_automatic_acquisition responses:export Free+

After explicit approval, stop automatic acquisition and cancel the unused allowance. This releases protected Analysis paths and preserves acquired data and Survey collection.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
Logical Survey ID.
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Logical Survey ID."
        }
    },
    "required": [
        "survey_id"
    ],
    "additionalProperties": false
}
prepare_survey_acquisition_criteria responses:export Free+

Prepare a private dataset for explicit automatic acquisition criteria while acquisition is stopped. Uses only already-paid responses, including zero cases. Reuse the request ID on retry.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
Logical Survey ID.
request_id
string
yes
selection
object
yes
expected_acquisition_revision_id
string | null
yes
Current acquisition revision, or null for initial configuration.
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Logical Survey ID."
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "selection": {
            "type": "object",
            "properties": {
                "attempts": {
                    "type": "string",
                    "enum": [
                        "completed",
                        "all"
                    ],
                    "description": "Whether to export completed responses, partial attempts, or both. Defaults to completed."
                },
                "partial_min_completion_percent": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "Legacy compatibility only. For new selections omit this and include all partials or use one partial_reached_target as a minimum progress point."
                },
                "partial_answered_question": {
                    "type": "string",
                    "description": "Historical actual-answer criterion, distinct from progress. Preserves saved-client semantics: merely reaching does not qualify; explicit NS/NC and numeric zero are answers. Completed responses are unaffected. For new selections prefer partial_reached_target as a minimum progress point or omit both for all partials."
                },
                "partial_reached_target": {
                    "type": "string",
                    "description": "Minimum progress point for partial attempts: a native question code they must have reached or passed, including through conditional skips, without needing to answer or see it. Omit for all partials. Completed responses are not filtered. The author chooses the appropriate cutoff. Historical combinations with answered criteria remain supported."
                },
                "confidence": {
                    "type": "string",
                    "enum": [
                        "all",
                        "trusted",
                        "review",
                        "risky",
                        "unscored",
                        "custom"
                    ],
                    "description": "Completed-response confidence filter: all, trusted (80-100), review (40-79), risky (0-39), unscored, or custom. Partials have no confidence score."
                },
                "confidence_min": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "Inclusive minimum Confidence score. Supplying a threshold with confidence omitted or all selects a custom range."
                },
                "confidence_max": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "Inclusive maximum Confidence score. Supplying a threshold with confidence omitted or all selects a custom range."
                },
                "include_screened_out": {
                    "type": "boolean",
                    "description": "Include screened-out terminal responses. Defaults to false so they are not exported or billed accidentally."
                },
                "confidence_bands": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 4,
                    "uniqueItems": true,
                    "items": {
                        "type": "string",
                        "enum": [
                            "trusted",
                            "review",
                            "risky",
                            "unscored"
                        ]
                    },
                    "description": "OR-combined confidence bands. Requires confidence=all or omitted. Custom intervals are exclusive. Existing single-band confidence remains supported."
                },
                "partial_answered_questions": {
                    "type": "array",
                    "maxItems": 50,
                    "uniqueItems": true,
                    "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                    },
                    "description": "Legacy compatibility only. For new selections omit for all partials or use one partial_reached_target as a minimum progress point."
                },
                "partial_questions_operator": {
                    "type": "string",
                    "enum": [
                        "all",
                        "any"
                    ],
                    "default": "all",
                    "description": "AND or OR inside the answered-question set."
                },
                "partial_criteria_operator": {
                    "type": "string",
                    "enum": [
                        "all",
                        "any"
                    ],
                    "default": "all",
                    "description": "AND or OR between the completion threshold and answered-question criterion. Absent criteria do not qualify an OR by themselves. Completed cases still use general confidence/screened criteria."
                }
            },
            "required": [],
            "additionalProperties": false
        },
        "expected_acquisition_revision_id": {
            "type": [
                "string",
                "null"
            ],
            "format": "uuid",
            "description": "Current acquisition revision, or null for initial configuration."
        }
    },
    "required": [
        "survey_id",
        "request_id",
        "selection",
        "expected_acquisition_revision_id"
    ],
    "additionalProperties": false
}
calculate_survey_acquisition_criteria responses:export Free+

Advance a prepared criteria generation. It replaces the current shared criteria when ready and can calculate the paid-only Source and affected Analysis outputs. It never acquires unpaid responses.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
Logical Survey ID.
generation_id
string
yes
expected_acquisition_revision_id
string | null
yes
Current acquisition revision, or null for initial configuration.
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Logical Survey ID."
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        },
        "expected_acquisition_revision_id": {
            "type": [
                "string",
                "null"
            ],
            "format": "uuid",
            "description": "Current acquisition revision, or null for initial configuration."
        }
    },
    "required": [
        "survey_id",
        "generation_id",
        "expected_acquisition_revision_id"
    ],
    "additionalProperties": false
}
prepare_survey_acquisition_backlog responses:export Free+

Freeze a private preparation of pending responses using the current shared criteria and revision. No charge or authorization change. Reuse the request ID on retry.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
Logical Survey ID.
request_id
string
yes
expected_acquisition_revision_id
string
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Logical Survey ID."
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "expected_acquisition_revision_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "survey_id",
        "request_id",
        "expected_acquisition_revision_id"
    ],
    "additionalProperties": false
}
calculate_survey_acquisition_backlog responses:export Free+

Capture one bounded batch for the prepared backlog generation. Returns saved progress without acquiring responses or charging the wallet.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
Logical Survey ID.
generation_id
string
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Logical Survey ID."
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "survey_id",
        "generation_id"
    ],
    "additionalProperties": false
}
quote_survey_acquisition_backlog responses:export Free+

Save and return the exact price, frozen selection and confirmation token for a captured backlog. No purchase or charge. Reuse the request ID on retry.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
Logical Survey ID.
generation_id
string
yes
request_id
string
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Logical Survey ID."
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "survey_id",
        "generation_id",
        "request_id"
    ],
    "additionalProperties": false
}
confirm_survey_acquisition_backlog responses:export Free+

Acquire the quoted backlog only after the user explicitly approves its exact selection and amount. Can debit the wallet and replace the current shared Source. Does not restart automatic acquisition.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
Logical Survey ID.
selection_id
string
yes
confirmation_token
string
yes
min length 1
approved_amount_cents
integer
yes
min 0
confirm_acquire
boolean
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Logical Survey ID."
        },
        "selection_id": {
            "type": "string",
            "format": "uuid"
        },
        "confirmation_token": {
            "type": "string",
            "minLength": 1
        },
        "approved_amount_cents": {
            "type": "integer",
            "minimum": 0
        },
        "confirm_acquire": {
            "type": "boolean",
            "const": true
        }
    },
    "required": [
        "survey_id",
        "selection_id",
        "confirmation_token",
        "approved_amount_cents",
        "confirm_acquire"
    ],
    "additionalProperties": false
}
authorize_report_automatic_acquisition responses:export Free+

Start bounded automatic acquisition after explicit approval of the exact authorization preview for this target. Match its terms and hash. Acceptance saves consent and enables later metered acquisition within the allowance; it does not debit immediately.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
ID of an owned, connected Report.
max_amount_cents
integer
no
min 1 · max 2147483647
The approved maximum spend in EUR cents.
max_cases
integer
no
min 1 · max 10000
Legacy case limit from an approved case-based preview only.
timezone
string
yes
Timezone from the approved preview.
ends_at
string | null
no
Optional end date/time from the approved preview.
accepted
boolean
yes
request_id
string
yes
confirmation_hash
string
yes
min length 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1,
            "description": "ID of an owned, connected Report."
        },
        "max_amount_cents": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647,
            "description": "The approved maximum spend in EUR cents."
        },
        "max_cases": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000,
            "description": "Legacy case limit from an approved case-based preview only."
        },
        "timezone": {
            "type": "string",
            "description": "Timezone from the approved preview."
        },
        "ends_at": {
            "type": [
                "string",
                "null"
            ],
            "description": "Optional end date/time from the approved preview."
        },
        "accepted": {
            "type": "boolean",
            "const": true
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "confirmation_hash": {
            "type": "string",
            "minLength": 1
        }
    },
    "required": [
        "report_id",
        "timezone",
        "accepted",
        "request_id",
        "confirmation_hash"
    ],
    "additionalProperties": false
}
stop_report_automatic_acquisition responses:export Free+

After explicit approval, stop automatic acquisition and cancel the unused allowance. This releases protected Analysis paths and preserves acquired data and Survey collection.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
ID of an owned, connected Report.
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1,
            "description": "ID of an owned, connected Report."
        }
    },
    "required": [
        "report_id"
    ],
    "additionalProperties": false
}
prepare_report_acquisition_criteria responses:export Free+

Prepare a private dataset for explicit automatic acquisition criteria while acquisition is stopped. Uses only already-paid responses, including zero cases. Reuse the request ID on retry.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
ID of an owned, connected Report.
request_id
string
yes
selection
object
yes
expected_acquisition_revision_id
string | null
yes
Current acquisition revision, or null for initial configuration.
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1,
            "description": "ID of an owned, connected Report."
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "selection": {
            "type": "object",
            "properties": {
                "attempts": {
                    "type": "string",
                    "enum": [
                        "completed",
                        "all"
                    ],
                    "description": "Whether to export completed responses, partial attempts, or both. Defaults to completed."
                },
                "partial_min_completion_percent": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "Legacy compatibility only. For new selections omit this and include all partials or use one partial_reached_target as a minimum progress point."
                },
                "partial_answered_question": {
                    "type": "string",
                    "description": "Historical actual-answer criterion, distinct from progress. Preserves saved-client semantics: merely reaching does not qualify; explicit NS/NC and numeric zero are answers. Completed responses are unaffected. For new selections prefer partial_reached_target as a minimum progress point or omit both for all partials."
                },
                "partial_reached_target": {
                    "type": "string",
                    "description": "Minimum progress point for partial attempts: a native question code they must have reached or passed, including through conditional skips, without needing to answer or see it. Omit for all partials. Completed responses are not filtered. The author chooses the appropriate cutoff. Historical combinations with answered criteria remain supported."
                },
                "confidence": {
                    "type": "string",
                    "enum": [
                        "all",
                        "trusted",
                        "review",
                        "risky",
                        "unscored",
                        "custom"
                    ],
                    "description": "Completed-response confidence filter: all, trusted (80-100), review (40-79), risky (0-39), unscored, or custom. Partials have no confidence score."
                },
                "confidence_min": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "Inclusive minimum Confidence score. Supplying a threshold with confidence omitted or all selects a custom range."
                },
                "confidence_max": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "Inclusive maximum Confidence score. Supplying a threshold with confidence omitted or all selects a custom range."
                },
                "include_screened_out": {
                    "type": "boolean",
                    "description": "Include screened-out terminal responses. Defaults to false so they are not exported or billed accidentally."
                },
                "confidence_bands": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 4,
                    "uniqueItems": true,
                    "items": {
                        "type": "string",
                        "enum": [
                            "trusted",
                            "review",
                            "risky",
                            "unscored"
                        ]
                    },
                    "description": "OR-combined confidence bands. Requires confidence=all or omitted. Custom intervals are exclusive. Existing single-band confidence remains supported."
                },
                "partial_answered_questions": {
                    "type": "array",
                    "maxItems": 50,
                    "uniqueItems": true,
                    "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                    },
                    "description": "Legacy compatibility only. For new selections omit for all partials or use one partial_reached_target as a minimum progress point."
                },
                "partial_questions_operator": {
                    "type": "string",
                    "enum": [
                        "all",
                        "any"
                    ],
                    "default": "all",
                    "description": "AND or OR inside the answered-question set."
                },
                "partial_criteria_operator": {
                    "type": "string",
                    "enum": [
                        "all",
                        "any"
                    ],
                    "default": "all",
                    "description": "AND or OR between the completion threshold and answered-question criterion. Absent criteria do not qualify an OR by themselves. Completed cases still use general confidence/screened criteria."
                }
            },
            "required": [],
            "additionalProperties": false
        },
        "expected_acquisition_revision_id": {
            "type": [
                "string",
                "null"
            ],
            "format": "uuid",
            "description": "Current acquisition revision, or null for initial configuration."
        }
    },
    "required": [
        "report_id",
        "request_id",
        "selection",
        "expected_acquisition_revision_id"
    ],
    "additionalProperties": false
}
calculate_report_acquisition_criteria responses:export Free+

Advance a prepared criteria generation. It replaces the current shared criteria when ready and can calculate the paid-only Source and affected Analysis outputs. It never acquires unpaid responses.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
ID of an owned, connected Report.
generation_id
string
yes
expected_acquisition_revision_id
string | null
yes
Current acquisition revision, or null for initial configuration.
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1,
            "description": "ID of an owned, connected Report."
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        },
        "expected_acquisition_revision_id": {
            "type": [
                "string",
                "null"
            ],
            "format": "uuid",
            "description": "Current acquisition revision, or null for initial configuration."
        }
    },
    "required": [
        "report_id",
        "generation_id",
        "expected_acquisition_revision_id"
    ],
    "additionalProperties": false
}
prepare_report_acquisition_backlog responses:export Free+

Freeze a private preparation of pending responses using the current shared criteria and revision. No charge or authorization change. Reuse the request ID on retry.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
ID of an owned, connected Report.
request_id
string
yes
expected_acquisition_revision_id
string
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1,
            "description": "ID of an owned, connected Report."
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "expected_acquisition_revision_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "report_id",
        "request_id",
        "expected_acquisition_revision_id"
    ],
    "additionalProperties": false
}
calculate_report_acquisition_backlog responses:export Free+

Capture one bounded batch for the prepared backlog generation. Returns saved progress without acquiring responses or charging the wallet.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
ID of an owned, connected Report.
generation_id
string
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1,
            "description": "ID of an owned, connected Report."
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "report_id",
        "generation_id"
    ],
    "additionalProperties": false
}
quote_report_acquisition_backlog responses:export Free+

Save and return the exact price, frozen selection and confirmation token for a captured backlog. No purchase or charge. Reuse the request ID on retry.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
ID of an owned, connected Report.
generation_id
string
yes
request_id
string
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1,
            "description": "ID of an owned, connected Report."
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "report_id",
        "generation_id",
        "request_id"
    ],
    "additionalProperties": false
}
confirm_report_acquisition_backlog responses:export Free+

Acquire the quoted backlog only after the user explicitly approves its exact selection and amount. Can debit the wallet and replace the current shared Source. Does not restart automatic acquisition.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
ID of an owned, connected Report.
selection_id
string
yes
confirmation_token
string
yes
min length 1
approved_amount_cents
integer
yes
min 0
confirm_acquire
boolean
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1,
            "description": "ID of an owned, connected Report."
        },
        "selection_id": {
            "type": "string",
            "format": "uuid"
        },
        "confirmation_token": {
            "type": "string",
            "minLength": 1
        },
        "approved_amount_cents": {
            "type": "integer",
            "minimum": 0
        },
        "confirm_acquire": {
            "type": "boolean",
            "const": true
        }
    },
    "required": [
        "report_id",
        "selection_id",
        "confirmation_token",
        "approved_amount_cents",
        "confirm_acquire"
    ],
    "additionalProperties": false
}

Quotas

5 tools
list_survey_quotas surveys:read Sandbox Free+

List survey-level quotas plus read-only link and link set quota summaries and condition source metadata.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}
create_survey_quota surveys:write Sandbox Free+

Create a survey-level quota with label, limit, optional count, active flag and Dayalogs condition JSON.

Parameter
Type
Req.
Details
quota_id
string
no
Optional stable quota id. Defaults to a slugified label.
id
string
no
Alias for quota_id.
slug
string
yes
Survey slug.
label
string
yes
Quota display name. Required on create.
name
string
no
Alias for label.
limit
integer
yes
min 1
Quota threshold.
count
integer
no
min 0
Current accepted count. Optional; defaults to 0 on create.
active
boolean
no
Whether the quota is active. Defaults to true on create.
condition
object
no
Dayalogs condition JSON. Use {question, op, value}, {var, op, value}, groups {all:[...]}, {any:[...]}, or {not:{...}}. Operators are normalized to canonical forms such as eq, not_eq, contains, gt, gte, lt, lte, answered and not_answered.
if
object
no
Alias for condition.
condition_json
string
no
Alternative to condition: JSON object string.
clear_condition
boolean
no
On update, remove the quota condition and turn it into a total survey quota.
View input JSON schema
{
    "type": "object",
    "properties": {
        "quota_id": {
            "type": "string",
            "description": "Optional stable quota id. Defaults to a slugified label."
        },
        "id": {
            "type": "string",
            "description": "Alias for quota_id."
        },
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "label": {
            "type": "string",
            "description": "Quota display name. Required on create."
        },
        "name": {
            "type": "string",
            "description": "Alias for label."
        },
        "limit": {
            "type": "integer",
            "minimum": 1,
            "description": "Quota threshold."
        },
        "count": {
            "type": "integer",
            "minimum": 0,
            "description": "Current accepted count. Optional; defaults to 0 on create."
        },
        "active": {
            "type": "boolean",
            "description": "Whether the quota is active. Defaults to true on create."
        },
        "condition": {
            "type": "object",
            "description": "Dayalogs condition JSON. Use {question, op, value}, {var, op, value}, groups {all:[...]}, {any:[...]}, or {not:{...}}. Operators are normalized to canonical forms such as eq, not_eq, contains, gt, gte, lt, lte, answered and not_answered."
        },
        "if": {
            "type": "object",
            "description": "Alias for condition."
        },
        "condition_json": {
            "type": "string",
            "description": "Alternative to condition: JSON object string."
        },
        "clear_condition": {
            "type": "boolean",
            "description": "On update, remove the quota condition and turn it into a total survey quota."
        }
    },
    "required": [
        "slug",
        "label",
        "limit"
    ]
}
update_survey_quota surveys:write Sandbox Free+

Update a survey-level quota label, limit, count, active flag or condition.

Parameter
Type
Req.
Details
quota_id
string
yes
Survey-level quota id.
id
string
no
Alias for quota_id.
slug
string
yes
Survey slug.
label
string
no
Quota display name. Required on create.
name
string
no
Alias for label.
limit
integer
no
min 1
Quota threshold.
count
integer
no
min 0
Current accepted count. Optional; defaults to 0 on create.
active
boolean
no
Whether the quota is active. Defaults to true on create.
condition
object
no
Dayalogs condition JSON. Use {question, op, value}, {var, op, value}, groups {all:[...]}, {any:[...]}, or {not:{...}}. Operators are normalized to canonical forms such as eq, not_eq, contains, gt, gte, lt, lte, answered and not_answered.
if
object
no
Alias for condition.
condition_json
string
no
Alternative to condition: JSON object string.
clear_condition
boolean
no
On update, remove the quota condition and turn it into a total survey quota.
View input JSON schema
{
    "type": "object",
    "properties": {
        "quota_id": {
            "type": "string",
            "description": "Survey-level quota id."
        },
        "id": {
            "type": "string",
            "description": "Alias for quota_id."
        },
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "label": {
            "type": "string",
            "description": "Quota display name. Required on create."
        },
        "name": {
            "type": "string",
            "description": "Alias for label."
        },
        "limit": {
            "type": "integer",
            "minimum": 1,
            "description": "Quota threshold."
        },
        "count": {
            "type": "integer",
            "minimum": 0,
            "description": "Current accepted count. Optional; defaults to 0 on create."
        },
        "active": {
            "type": "boolean",
            "description": "Whether the quota is active. Defaults to true on create."
        },
        "condition": {
            "type": "object",
            "description": "Dayalogs condition JSON. Use {question, op, value}, {var, op, value}, groups {all:[...]}, {any:[...]}, or {not:{...}}. Operators are normalized to canonical forms such as eq, not_eq, contains, gt, gte, lt, lte, answered and not_answered."
        },
        "if": {
            "type": "object",
            "description": "Alias for condition."
        },
        "condition_json": {
            "type": "string",
            "description": "Alternative to condition: JSON object string."
        },
        "clear_condition": {
            "type": "boolean",
            "description": "On update, remove the quota condition and turn it into a total survey quota."
        }
    },
    "required": [
        "slug",
        "quota_id"
    ]
}
delete_survey_quota surveys:write Sandbox Free+

Delete a survey-level quota. Link and link set quotas are managed through link and link set tools.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
quota_id
string
yes
Survey-level quota id.
id
string
no
Alias for quota_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "quota_id": {
            "type": "string",
            "description": "Survey-level quota id."
        },
        "id": {
            "type": "string",
            "description": "Alias for quota_id."
        }
    },
    "required": [
        "slug",
        "quota_id"
    ]
}
set_survey_quota_version_inclusion surveys:write Sandbox Free+

Include or exclude one survey version from effective quota progress without deleting responses or counters. Exclusion requires an explicit user confirmation and audit reason; without confirmation the tool returns a normal confirmation_required result and does not mutate quota state. Changes existing effective quota accounting; exclusion requires explicit confirmation and a reason.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
version
integer
yes
min 1
Concrete survey version number.
included
boolean
yes
false excludes this version contribution; true restores it.
quota_id
string
no
Optional quota id. Omit to apply to every survey-level quota.
reason
string
no
Audit reason. Required when excluding a version.
confirm_exclusion
boolean
no
Must be true when included=false, after the user explicitly confirms excluding this version from quota progress.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "version": {
            "type": "integer",
            "minimum": 1,
            "description": "Concrete survey version number."
        },
        "included": {
            "type": "boolean",
            "description": "false excludes this version contribution; true restores it."
        },
        "quota_id": {
            "type": "string",
            "description": "Optional quota id. Omit to apply to every survey-level quota."
        },
        "reason": {
            "type": "string",
            "description": "Audit reason. Required when excluding a version."
        },
        "confirm_exclusion": {
            "type": "boolean",
            "description": "Must be true when included=false, after the user explicitly confirms excluding this version from quota progress."
        }
    },
    "required": [
        "slug",
        "version",
        "included"
    ]
}

Responses

4 tools
list_survey_responses responses:read Free+

List metadata only for completed responses already included in a confirmed export. Unbilled rows are withheld; use export_survey_responses to preview their cost and obtain explicit confirmation before accessing response-level data.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
version
string | integer
no
current, all or a specific version number. Defaults to current.
page
integer
no
min 1
Page number. Defaults to 1.
limit
integer
no
min 1 · max 100
Responses per page. Defaults to 25, maximum 100.
submitted_from
string
no
Optional ISO-8601 lower datetime bound.
submitted_to
string
no
Optional ISO-8601 upper datetime bound.
ending_key
string
no
Optional ending key filter.
share_link_id
integer
no
Optional share-link id filter.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "version": {
            "type": [
                "string",
                "integer"
            ],
            "description": "current, all or a specific version number. Defaults to current."
        },
        "page": {
            "type": "integer",
            "minimum": 1,
            "description": "Page number. Defaults to 1."
        },
        "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Responses per page. Defaults to 25, maximum 100."
        },
        "submitted_from": {
            "type": "string",
            "description": "Optional ISO-8601 lower datetime bound."
        },
        "submitted_to": {
            "type": "string",
            "description": "Optional ISO-8601 upper datetime bound."
        },
        "ending_key": {
            "type": "string",
            "description": "Optional ending key filter."
        },
        "share_link_id": {
            "type": "integer",
            "description": "Optional share-link id filter."
        }
    },
    "required": [
        "slug"
    ]
}
get_survey_response responses:read Free+

Return one completed survey response, including variables, share-link metadata and individual answer rows, only after that response was included in a confirmed export. An unbilled response returns response_export_required with its current cost preview; use export_survey_responses and wait for explicit user confirmation.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
response_id
integer
yes
min 1
Survey response id.
id
integer
no
min 1
Alias for response_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "response_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Survey response id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for response_id."
        }
    },
    "required": [
        "slug",
        "response_id"
    ]
}
delete_survey_response responses:delete Free+

Delete one completed survey response from the current account. Use carefully; this mirrors the admin delete action.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
response_id
integer
yes
min 1
Survey response id.
id
integer
no
min 1
Alias for response_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "response_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Survey response id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for response_id."
        }
    },
    "required": [
        "slug",
        "response_id"
    ]
}
export_survey_responses responses:export Free+

Count or export the selected survey responses in JSON, NDJSON, CSV, CSV with codebook (csv_zip), XLSX or SAV. The CSV ZIP uses the shared Analysis data and codebook layout. Use count_only for counts without rows or a charge. Use preview to see the exact selection and wallet cost, then confirm the export only after the user approves both. A stale preview requires fresh approval.

Formats json, ndjson, csv, csv_zip and xlsx are standard exports. Format sav requires Pro or higher.
Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
format
string
no
json, ndjson, csv, xlsx, sav, csv_zip
Export format. Defaults to json.
versions
string | integer | array
no
current, all, one version number, comma-separated version numbers, or an array of version numbers. Defaults to current.
version
string | integer
no
Alias for versions when selecting a single version/current/all.
wave_version_ids
array<integer>
no
items integer
Concrete version IDs from Surveys linked to this study. Use instead of versions or version. Multiple waves return one ZIP with a combined data.csv or data.sav and codebook.csv. SAV requires SPSS export access.
attempts
string
no
completed, all, partials
Whether to export completed responses, partial attempts, or both. Defaults to completed.
partial_min_completion_percent
number
no
min 0 · max 100
Legacy compatibility only. For new selections omit this and include all partials or use one partial_reached_target as a minimum progress point.
partial_answered_question
string
no
Historical actual-answer criterion, distinct from progress. Preserves saved-client semantics: merely reaching does not qualify; explicit NS/NC and numeric zero are answers. Completed responses are unaffected. For new selections prefer partial_reached_target as a minimum progress point or omit both for all partials.
partial_reached_target
string
no
Minimum progress point for partial attempts: a native question code they must have reached or passed, including through conditional skips, without needing to answer or see it. Omit for all partials. Completed responses are not filtered. The author chooses the appropriate cutoff. Historical combinations with answered criteria remain supported.
confidence
string
no
all, trusted, review, risky, unscored, custom
Completed-response confidence filter: all, trusted (80-100), review (40-79), risky (0-39), unscored, or custom. Partials have no confidence score.
confidence_min
integer
no
min 0 · max 100
Inclusive minimum Confidence score. Supplying a threshold with confidence omitted or all selects a custom range.
confidence_max
integer
no
min 0 · max 100
Inclusive maximum Confidence score. Supplying a threshold with confidence omitted or all selects a custom range.
include_screened_out
boolean
no
Include screened-out terminal responses. Defaults to false so they are not exported or billed accidentally.
option_value_mode
string
no
code, alias
Use numeric codes or option aliases in CSV or XLSX when aliases exist. CSV with codebook (csv_zip) always uses numeric codes.
preview
boolean
no
Set true to calculate candidates, first-export cost and wallet balance without downloading or charging.
count_only
boolean
no
Set true for read-only aggregate total/completed/partials counts, without export rows, billing quote, confirmation token or charging. Takes precedence over preview and confirm_export. Use to adjust sample criteria before requesting a paid-export preview.
confirm_export
boolean
no
Set true only after explicit user confirmation of the current preview. Must be sent with that preview confirmation_token.
confirmation_token
string
no
Exact token returned by the approved preview. If candidates or options changed, the export returns a refreshed preview and requires renewed approval.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "format": {
            "type": "string",
            "enum": [
                "json",
                "ndjson",
                "csv",
                "xlsx",
                "sav",
                "csv_zip"
            ],
            "description": "Export format. Defaults to json."
        },
        "versions": {
            "type": [
                "string",
                "integer",
                "array"
            ],
            "items": {
                "type": "integer"
            },
            "description": "current, all, one version number, comma-separated version numbers, or an array of version numbers. Defaults to current."
        },
        "version": {
            "type": [
                "string",
                "integer"
            ],
            "description": "Alias for versions when selecting a single version/current/all."
        },
        "wave_version_ids": {
            "type": "array",
            "items": {
                "type": "integer",
                "minimum": 1
            },
            "minItems": 1,
            "uniqueItems": true,
            "description": "Concrete version IDs from Surveys linked to this study. Use instead of versions or version. Multiple waves return one ZIP with a combined data.csv or data.sav and codebook.csv. SAV requires SPSS export access."
        },
        "attempts": {
            "type": "string",
            "enum": [
                "completed",
                "all",
                "partials"
            ],
            "description": "Whether to export completed responses, partial attempts, or both. Defaults to completed."
        },
        "partial_min_completion_percent": {
            "type": "number",
            "minimum": 0,
            "maximum": 100,
            "description": "Legacy compatibility only. For new selections omit this and include all partials or use one partial_reached_target as a minimum progress point."
        },
        "partial_answered_question": {
            "type": "string",
            "description": "Historical actual-answer criterion, distinct from progress. Preserves saved-client semantics: merely reaching does not qualify; explicit NS/NC and numeric zero are answers. Completed responses are unaffected. For new selections prefer partial_reached_target as a minimum progress point or omit both for all partials."
        },
        "partial_reached_target": {
            "type": "string",
            "description": "Minimum progress point for partial attempts: a native question code they must have reached or passed, including through conditional skips, without needing to answer or see it. Omit for all partials. Completed responses are not filtered. The author chooses the appropriate cutoff. Historical combinations with answered criteria remain supported."
        },
        "confidence": {
            "type": "string",
            "enum": [
                "all",
                "trusted",
                "review",
                "risky",
                "unscored",
                "custom"
            ],
            "description": "Completed-response confidence filter: all, trusted (80-100), review (40-79), risky (0-39), unscored, or custom. Partials have no confidence score."
        },
        "confidence_min": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "description": "Inclusive minimum Confidence score. Supplying a threshold with confidence omitted or all selects a custom range."
        },
        "confidence_max": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "description": "Inclusive maximum Confidence score. Supplying a threshold with confidence omitted or all selects a custom range."
        },
        "include_screened_out": {
            "type": "boolean",
            "description": "Include screened-out terminal responses. Defaults to false so they are not exported or billed accidentally."
        },
        "option_value_mode": {
            "type": "string",
            "enum": [
                "code",
                "alias"
            ],
            "description": "Use numeric codes or option aliases in CSV or XLSX when aliases exist. CSV with codebook (csv_zip) always uses numeric codes."
        },
        "preview": {
            "type": "boolean",
            "description": "Set true to calculate candidates, first-export cost and wallet balance without downloading or charging."
        },
        "count_only": {
            "type": "boolean",
            "description": "Set true for read-only aggregate total/completed/partials counts, without export rows, billing quote, confirmation token or charging. Takes precedence over preview and confirm_export. Use to adjust sample criteria before requesting a paid-export preview."
        },
        "confirm_export": {
            "type": "boolean",
            "description": "Set true only after explicit user confirmation of the current preview. Must be sent with that preview confirmation_token."
        },
        "confirmation_token": {
            "type": "string",
            "description": "Exact token returned by the approved preview. If candidates or options changed, the export returns a refreshed preview and requires renewed approval."
        }
    },
    "required": [
        "slug"
    ]
}

Audiences

7 tools
get_audience_summary audiences:read Free+

Return account audience counts, top tags, saved segment summaries and recent imports.

No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}
list_audience_contacts audiences:read Free+

Search and paginate contacts in the current account, optionally filtering by all provided tag slugs or names.

Parameter
Type
Req.
Details
q
string
no
Optional text search across name, email, phone, external id and UUID.
query
string
no
Alias for q.
tags
array | string
no
Optional tag slugs/names. Multiple tags are combined with AND. Accepts an array or comma-separated string.
tag_slugs
array | string
no
Alias for tags.
page
integer
no
min 1
Page number. Defaults to 1.
limit
integer
no
min 1 · max 100
Contacts per page. Defaults to 20, maximum 100.
View input JSON schema
{
    "type": "object",
    "properties": {
        "q": {
            "type": "string",
            "description": "Optional text search across name, email, phone, external id and UUID."
        },
        "query": {
            "type": "string",
            "description": "Alias for q."
        },
        "tags": {
            "type": [
                "array",
                "string"
            ],
            "items": {
                "type": "string"
            },
            "description": "Optional tag slugs/names. Multiple tags are combined with AND. Accepts an array or comma-separated string."
        },
        "tag_slugs": {
            "type": [
                "array",
                "string"
            ],
            "items": {
                "type": "string"
            },
            "description": "Alias for tags."
        },
        "page": {
            "type": "integer",
            "minimum": 1,
            "description": "Page number. Defaults to 1."
        },
        "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Contacts per page. Defaults to 20, maximum 100."
        }
    },
    "required": []
}
get_audience_contact audiences:read Free+

Return one contact with tags, extra JSON, account-level data and survey-scoped data.

Parameter
Type
Req.
Details
contact_id
integer
yes
min 1
Audience contact id.
id
integer
no
min 1
Alias for contact_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "contact_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Audience contact id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for contact_id."
        }
    },
    "required": [
        "contact_id"
    ]
}
create_audience_import audiences:import Free+

Create a JSON-first audience import session. The caller should transform Excel, CRM, Word or copied lists into normalized contact JSON before appending chunks.

Parameter
Type
Req.
Details
label
string
yes
Human import name, for example "Directors escoles juny 2026".
name
string
no
Alias for label.
tags
array | string
no
Optional import tags as array or comma-separated string. Dayalogs also adds an import-YYMMDD-HHMM tag automatically.
tag_names
array | string
no
Alias for tags.
data_survey_slug
string
no
Optional survey slug. When set, each contact data object is stored as survey-scoped @contact.survey_data for that survey.
survey_slug
string
no
Alias for data_survey_slug.
source_metadata
object
no
Optional metadata about the upstream source, such as CRM name, file title or agent trace id.
metadata
object
no
Alias for source_metadata.
View input JSON schema
{
    "type": "object",
    "properties": {
        "label": {
            "type": "string",
            "description": "Human import name, for example \"Directors escoles juny 2026\"."
        },
        "name": {
            "type": "string",
            "description": "Alias for label."
        },
        "tags": {
            "type": [
                "array",
                "string"
            ],
            "items": {
                "type": "string"
            },
            "description": "Optional import tags as array or comma-separated string. Dayalogs also adds an import-YYMMDD-HHMM tag automatically."
        },
        "tag_names": {
            "type": [
                "array",
                "string"
            ],
            "items": {
                "type": "string"
            },
            "description": "Alias for tags."
        },
        "data_survey_slug": {
            "type": "string",
            "description": "Optional survey slug. When set, each contact data object is stored as survey-scoped @contact.survey_data for that survey."
        },
        "survey_slug": {
            "type": "string",
            "description": "Alias for data_survey_slug."
        },
        "source_metadata": {
            "type": "object",
            "description": "Optional metadata about the upstream source, such as CRM name, file title or agent trace id."
        },
        "metadata": {
            "type": "object",
            "description": "Alias for source_metadata."
        }
    },
    "required": [
        "label"
    ]
}
append_audience_import_contacts audiences:import Free+

Append normalized contact JSON to an open import inside the authenticated account. Matching contacts are updated immediately: incoming values can overwrite existing fields and structured-data keys. Uses chunk_id for idempotency. Does not send invitations or fetch an external CRM.

Parameter
Type
Req.
Details
import_id
integer
yes
min 1
Audience import id.
id
integer
no
min 1
Alias for import_id.
chunk_id
string
no
Optional idempotency key. Re-sending the same chunk_id is a no-op.
contacts
array<object>
no
items object
Chunk of already-normalized Dayalogs contact JSON objects. Do not send raw Excel/CSV rows here.
items
array<object>
no
items object
Alias for contacts.
contacts_json
string
no
Alternative to contacts: JSON string containing an array of normalized contact objects.
View input JSON schema
{
    "type": "object",
    "properties": {
        "import_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Audience import id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for import_id."
        },
        "chunk_id": {
            "type": "string",
            "description": "Optional idempotency key. Re-sending the same chunk_id is a no-op."
        },
        "contacts": {
            "type": "array",
            "description": "Chunk of already-normalized Dayalogs contact JSON objects. Do not send raw Excel/CSV rows here.",
            "items": {
                "type": "object",
                "description": "Normalized contact object. Canonical fields: external_id, email, phone, first_name, last_name, full_name, age, gender, tags, extra, data, survey_data.",
                "properties": {
                    "external_id": {
                        "type": "string"
                    },
                    "email": {
                        "type": "string"
                    },
                    "phone": {
                        "type": "string"
                    },
                    "first_name": {
                        "type": "string"
                    },
                    "last_name": {
                        "type": "string"
                    },
                    "full_name": {
                        "type": "string"
                    },
                    "age": {
                        "type": [
                            "integer",
                            "string"
                        ]
                    },
                    "gender": {
                        "type": "string"
                    },
                    "tags": {
                        "type": [
                            "array",
                            "string"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "extra": {
                        "type": "object",
                        "description": "Unmapped flat or structured metadata. Exposed under @contact.extra and merged into contact payload."
                    },
                    "data": {
                        "type": "object",
                        "description": "Structured account-level contact data, or survey-scoped data when the import session has data_survey_slug."
                    },
                    "survey_data": {
                        "type": "object",
                        "description": "Optional object keyed by survey slug, each value a JSON object."
                    }
                }
            }
        },
        "items": {
            "type": "array",
            "description": "Alias for contacts.",
            "items": {
                "type": "object",
                "description": "Normalized contact object. Canonical fields: external_id, email, phone, first_name, last_name, full_name, age, gender, tags, extra, data, survey_data.",
                "properties": {
                    "external_id": {
                        "type": "string"
                    },
                    "email": {
                        "type": "string"
                    },
                    "phone": {
                        "type": "string"
                    },
                    "first_name": {
                        "type": "string"
                    },
                    "last_name": {
                        "type": "string"
                    },
                    "full_name": {
                        "type": "string"
                    },
                    "age": {
                        "type": [
                            "integer",
                            "string"
                        ]
                    },
                    "gender": {
                        "type": "string"
                    },
                    "tags": {
                        "type": [
                            "array",
                            "string"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "extra": {
                        "type": "object",
                        "description": "Unmapped flat or structured metadata. Exposed under @contact.extra and merged into contact payload."
                    },
                    "data": {
                        "type": "object",
                        "description": "Structured account-level contact data, or survey-scoped data when the import session has data_survey_slug."
                    },
                    "survey_data": {
                        "type": "object",
                        "description": "Optional object keyed by survey slug, each value a JSON object."
                    }
                }
            }
        },
        "contacts_json": {
            "type": "string",
            "description": "Alternative to contacts: JSON string containing an array of normalized contact objects."
        }
    },
    "required": [
        "import_id"
    ]
}
get_audience_import_status audiences:import Free+

Return import status, counters, processed chunks, warnings/errors and metadata for an audience import session.

Parameter
Type
Req.
Details
import_id
integer
yes
min 1
Audience import id.
id
integer
no
min 1
Alias for import_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "import_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Audience import id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for import_id."
        }
    },
    "required": [
        "import_id"
    ]
}
commit_audience_import audiences:import Free+

Finalize an open audience import session. Contacts are already persisted during chunk append; commit marks the import complete. Marks the import closed and prevents additional chunks. Does not send invitations.

Parameter
Type
Req.
Details
import_id
integer
yes
min 1
Audience import id.
id
integer
no
min 1
Alias for import_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "import_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Audience import id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for import_id."
        }
    },
    "required": [
        "import_id"
    ]
}

Tags

5 tools
list_tags tags:read Free+

List global account tags and current contact assignment counts.

No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}
suggest_tags tags:read Free+

Autocomplete existing global account tags by name or slug.

Parameter
Type
Req.
Details
q
string
yes
Text to search in tag name or slug.
limit
integer
no
min 1 · max 25
Maximum suggestions. Defaults to 8.
View input JSON schema
{
    "type": "object",
    "properties": {
        "q": {
            "type": "string",
            "description": "Text to search in tag name or slug."
        },
        "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 25,
            "description": "Maximum suggestions. Defaults to 8."
        }
    },
    "required": [
        "q"
    ]
}
create_tag tags:write Free+

Create a global account tag that can be used by audiences now and other resource types later.

Parameter
Type
Req.
Details
name
string
yes
Tag display name.
slug
string
no
Optional stable slug. Defaults to a slugified name on create.
View input JSON schema
{
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "description": "Tag display name."
        },
        "slug": {
            "type": "string",
            "description": "Optional stable slug. Defaults to a slugified name on create."
        }
    },
    "required": [
        "name"
    ]
}
update_tag tags:write Free+

Update a global account tag name or slug. Overwrites the existing name or slug without retaining the prior value on this record.

Parameter
Type
Req.
Details
tag_id
integer
yes
min 1
Tag id.
id
integer
no
min 1
Alias for tag_id.
name
string
no
Tag display name.
slug
string
no
Optional stable slug. Defaults to a slugified name on create.
View input JSON schema
{
    "type": "object",
    "properties": {
        "tag_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Tag id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for tag_id."
        },
        "name": {
            "type": "string",
            "description": "Tag display name."
        },
        "slug": {
            "type": "string",
            "description": "Optional stable slug. Defaults to a slugified name on create."
        }
    },
    "required": [
        "tag_id"
    ]
}
delete_tag tags:write Free+

Delete a global account tag. If assigned to contacts, pass detach=true to remove assignments.

Parameter
Type
Req.
Details
tag_id
integer
yes
min 1
Tag id.
id
integer
no
min 1
Alias for tag_id.
detach
boolean
no
When true, delete even if assigned to contacts, detaching those contact assignments.
View input JSON schema
{
    "type": "object",
    "properties": {
        "tag_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Tag id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for tag_id."
        },
        "detach": {
            "type": "boolean",
            "description": "When true, delete even if assigned to contacts, detaching those contact assignments."
        }
    },
    "required": [
        "tag_id"
    ]
}

Segments

7 tools
list_audience_segments audiences:segments Free+

List saved audience segments with normalized query criteria.

No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}
count_audience_segment audiences:segments Free+

Normalize an audience segment criteria JSON object and return the matching contact count plus a small sample.

Parameter
Type
Req.
Details
criteria
object
no
Segment query object using combinator and rules. Rule sources: tag, field, extra, data, survey_data. Canonical operators: exists, not_exists, eq, not_eq, contains, not_contains, starts_with, ends_with, gt, gte, lt, lte, count_eq, count_gt, count_gte, count_lt, count_lte.
criteria_json
string
no
Alternative to criteria: JSON string containing the segment query object.
sample_limit
integer
no
min 1 · max 20
Maximum sample contacts to return. Defaults to 5.
View input JSON schema
{
    "type": "object",
    "properties": {
        "criteria": {
            "type": "object",
            "description": "Segment query object using combinator and rules. Rule sources: tag, field, extra, data, survey_data. Canonical operators: exists, not_exists, eq, not_eq, contains, not_contains, starts_with, ends_with, gt, gte, lt, lte, count_eq, count_gt, count_gte, count_lt, count_lte."
        },
        "criteria_json": {
            "type": "string",
            "description": "Alternative to criteria: JSON string containing the segment query object."
        },
        "sample_limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20,
            "description": "Maximum sample contacts to return. Defaults to 5."
        }
    },
    "required": []
}
create_audience_segment audiences:segments Free+

Create a saved audience segment from a normalized criteria JSON object and return the calculated contact count.

Parameter
Type
Req.
Details
name
string
yes
Segment display name. Required on create.
slug
string
no
Optional stable slug. Defaults to a slugified name on create.
description
string
no
Optional internal description.
criteria
object
no
Segment query object using combinator and rules. Rule sources: tag, field, extra, data, survey_data. Canonical operators: exists, not_exists, eq, not_eq, contains, not_contains, starts_with, ends_with, gt, gte, lt, lte, count_eq, count_gt, count_gte, count_lt, count_lte.
criteria_json
string
no
Alternative to criteria: JSON string containing the segment query object.
refresh_count
boolean
no
On update, recalculate last_count even when criteria is unchanged.
View input JSON schema
{
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "description": "Segment display name. Required on create."
        },
        "slug": {
            "type": "string",
            "description": "Optional stable slug. Defaults to a slugified name on create."
        },
        "description": {
            "type": "string",
            "description": "Optional internal description."
        },
        "criteria": {
            "type": "object",
            "description": "Segment query object using combinator and rules. Rule sources: tag, field, extra, data, survey_data. Canonical operators: exists, not_exists, eq, not_eq, contains, not_contains, starts_with, ends_with, gt, gte, lt, lte, count_eq, count_gt, count_gte, count_lt, count_lte."
        },
        "criteria_json": {
            "type": "string",
            "description": "Alternative to criteria: JSON string containing the segment query object."
        },
        "refresh_count": {
            "type": "boolean",
            "description": "On update, recalculate last_count even when criteria is unchanged."
        }
    },
    "required": [
        "name"
    ]
}
update_audience_segment audiences:segments Free+

Update a saved audience segment name, description, slug or criteria. When criteria changes, Dayalogs recalculates the count. Overwrites existing metadata and membership criteria; contacts are not deleted. Does not send invitations.

Parameter
Type
Req.
Details
segment_id
integer
yes
min 1
Audience segment id.
id
integer
no
min 1
Alias for segment_id.
name
string
no
Segment display name. Required on create.
slug
string
no
Optional stable slug. Defaults to a slugified name on create.
description
string
no
Optional internal description.
criteria
object
no
Segment query object using combinator and rules. Rule sources: tag, field, extra, data, survey_data. Canonical operators: exists, not_exists, eq, not_eq, contains, not_contains, starts_with, ends_with, gt, gte, lt, lte, count_eq, count_gt, count_gte, count_lt, count_lte.
criteria_json
string
no
Alternative to criteria: JSON string containing the segment query object.
refresh_count
boolean
no
On update, recalculate last_count even when criteria is unchanged.
View input JSON schema
{
    "type": "object",
    "properties": {
        "segment_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Audience segment id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for segment_id."
        },
        "name": {
            "type": "string",
            "description": "Segment display name. Required on create."
        },
        "slug": {
            "type": "string",
            "description": "Optional stable slug. Defaults to a slugified name on create."
        },
        "description": {
            "type": "string",
            "description": "Optional internal description."
        },
        "criteria": {
            "type": "object",
            "description": "Segment query object using combinator and rules. Rule sources: tag, field, extra, data, survey_data. Canonical operators: exists, not_exists, eq, not_eq, contains, not_contains, starts_with, ends_with, gt, gte, lt, lte, count_eq, count_gt, count_gte, count_lt, count_lte."
        },
        "criteria_json": {
            "type": "string",
            "description": "Alternative to criteria: JSON string containing the segment query object."
        },
        "refresh_count": {
            "type": "boolean",
            "description": "On update, recalculate last_count even when criteria is unchanged."
        }
    },
    "required": [
        "segment_id"
    ]
}
delete_audience_segment audiences:segments Free+

Delete a saved audience segment. Contacts are not deleted.

Parameter
Type
Req.
Details
segment_id
integer
yes
min 1
Audience segment id.
id
integer
no
min 1
Alias for segment_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "segment_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Audience segment id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for segment_id."
        }
    },
    "required": [
        "segment_id"
    ]
}
get_audience_segment_json_paths audiences:segments Free+

List detected JSON paths for contact extra, contact data, or survey-scoped contact data to help build segment rules.

Parameter
Type
Req.
Details
source
string
yes
extra, data, survey_data
JSON source to inspect.
survey_slug
string
no
Required when source is survey_data.
limit
integer
no
min 1 · max 500
Maximum paths to return. Defaults to 250.
View input JSON schema
{
    "type": "object",
    "properties": {
        "source": {
            "type": "string",
            "enum": [
                "extra",
                "data",
                "survey_data"
            ],
            "description": "JSON source to inspect."
        },
        "survey_slug": {
            "type": "string",
            "description": "Required when source is survey_data."
        },
        "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 500,
            "description": "Maximum paths to return. Defaults to 250."
        }
    },
    "required": [
        "source"
    ]
}
suggest_audience_segment_values audiences:segments Free+

Suggest existing values for a segment rule field or JSON path. Returns requires_query=true instead of a huge list when too many values exist.

Parameter
Type
Req.
Details
source
string
yes
field, extra, data, survey_data
Source to inspect for existing values.
field
string
no
Required when source is field. Example: email, full_name, age, gender.
path
string
no
Required for extra, data and survey_data sources.
survey_slug
string
no
Required when source is survey_data.
q
string
no
Optional autocomplete query.
query
string
no
Alias for q.
View input JSON schema
{
    "type": "object",
    "properties": {
        "source": {
            "type": "string",
            "enum": [
                "field",
                "extra",
                "data",
                "survey_data"
            ],
            "description": "Source to inspect for existing values."
        },
        "field": {
            "type": "string",
            "description": "Required when source is field. Example: email, full_name, age, gender."
        },
        "path": {
            "type": "string",
            "description": "Required for extra, data and survey_data sources."
        },
        "survey_slug": {
            "type": "string",
            "description": "Required when source is survey_data."
        },
        "q": {
            "type": "string",
            "description": "Optional autocomplete query."
        },
        "query": {
            "type": "string",
            "description": "Alias for q."
        }
    },
    "required": [
        "source"
    ]
}

Embeds

5 tools
list_survey_embeds link_sets:read Free+

List website embed placements for a survey, including generated one-tag loader snippets, allowed origins, lifecycle settings and compatibility warnings.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}
get_survey_embed_compatibility link_sets:read Free+

Check whether the current survey version is suitable for responsive embedded viewports. Warnings are advisory and do not block creating an embed.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}
create_survey_embed link_sets:write Free+

Create a website embed placement. Optionally bind it to an anonymous reusable single-link link set so its fixed metadata and runtime availability rules are used; otherwise the survey default link is resolved or created transparently. Draft embeds can be prepared without confirmation. Activating a real public embed requires exact or wildcard-subdomain allowed origins and confirm_public_embed=true after explicit user approval. Returns a one-tag script snippet.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
name
string
yes
max length 160
Human-readable placement name.
share_link_id
integer | null
no
Optional anonymous reusable single-link link set id for this survey. Fixed metadata, dates, quota and cookie protection remain effective at runtime. Null resolves or creates the survey default link.
allowed_origins
array<string>
no
items string
Exact HTTP(S) origins or wildcard subdomain origins such as https://*.example.com. Never use *.
origins
array<string>
no
items string
Alias for allowed_origins.
settings
object
no
active
boolean
no
Create the placement active. At least one allowed origin is required.
confirm_public_embed
boolean
no
Set true only after the user explicitly approves activating this real public website embed.
status
string
no
draft, active, revoked
Update lifecycle status. Activating requires at least one allowed origin.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "name": {
            "type": "string",
            "maxLength": 160,
            "description": "Human-readable placement name."
        },
        "share_link_id": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Optional anonymous reusable single-link link set id for this survey. Fixed metadata, dates, quota and cookie protection remain effective at runtime. Null resolves or creates the survey default link."
        },
        "allowed_origins": {
            "type": "array",
            "description": "Exact HTTP(S) origins or wildcard subdomain origins such as https://*.example.com. Never use *.",
            "items": {
                "type": "string"
            }
        },
        "origins": {
            "type": "array",
            "description": "Alias for allowed_origins.",
            "items": {
                "type": "string"
            }
        },
        "settings": {
            "type": "object",
            "properties": {
                "mode": {
                    "type": "string",
                    "enum": [
                        "modal"
                    ]
                },
                "trigger": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "type": "string",
                            "enum": [
                                "immediate",
                                "delay",
                                "scroll",
                                "launcher",
                                "programmatic",
                                "custom_event"
                            ]
                        },
                        "delay_ms": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 3600000
                        },
                        "scroll_percent": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                        },
                        "event_name": {
                            "type": "string",
                            "maxLength": 120
                        },
                        "launcher_label": {
                            "type": "string",
                            "maxLength": 120
                        }
                    },
                    "required": [],
                    "additionalProperties": false
                },
                "frequency": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "type": "string",
                            "enum": [
                                "always",
                                "session",
                                "once",
                                "cooldown"
                            ]
                        },
                        "cooldown_days": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 3650
                        }
                    },
                    "required": [],
                    "additionalProperties": false
                },
                "layout": {
                    "type": "object",
                    "properties": {
                        "desktop_width": {
                            "type": "integer",
                            "minimum": 320,
                            "maximum": 1200
                        },
                        "mobile_width": {
                            "type": "integer",
                            "minimum": 280,
                            "maximum": 600
                        },
                        "max_height": {
                            "type": "integer",
                            "minimum": 320,
                            "maximum": 1600
                        },
                        "drawer_side": {
                            "type": "string",
                            "enum": [
                                "left",
                                "right"
                            ]
                        }
                    },
                    "required": [],
                    "additionalProperties": false
                },
                "appearance": {
                    "type": "object",
                    "properties": {
                        "border_width": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 8
                        },
                        "border_color": {
                            "type": "string",
                            "pattern": "^#[0-9a-fA-F]{6}$"
                        },
                        "border_radius": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 40
                        },
                        "shadow": {
                            "type": "string",
                            "enum": [
                                "none",
                                "soft",
                                "strong"
                            ]
                        },
                        "backdrop_color": {
                            "type": "string",
                            "pattern": "^#[0-9a-fA-F]{6}$"
                        },
                        "backdrop_opacity": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 90
                        }
                    },
                    "required": [],
                    "additionalProperties": false
                },
                "target_selector": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "maxLength": 240
                },
                "locale": {
                    "type": [
                        "string",
                        "null"
                    ]
                }
            },
            "required": [],
            "additionalProperties": false
        },
        "active": {
            "type": "boolean",
            "description": "Create the placement active. At least one allowed origin is required."
        },
        "confirm_public_embed": {
            "type": "boolean",
            "description": "Set true only after the user explicitly approves activating this real public website embed."
        },
        "status": {
            "type": "string",
            "enum": [
                "draft",
                "active",
                "revoked"
            ],
            "description": "Update lifecycle status. Activating requires at least one allowed origin."
        }
    },
    "required": [
        "slug",
        "name"
    ],
    "additionalProperties": false
}
update_survey_embed link_sets:write Free+

Update an embed placement name, compatible share link, allowed origins, trigger, frequency, responsive layout, locale or status. A null share_link_id restores the compatible default link. Transitioning a draft embed to active requires allowed origins and confirm_public_embed=true after explicit user approval.

Parameter
Type
Req.
Details
embed_id
integer
yes
Website embed placement id.
id
integer
no
Alias for embed_id.
slug
string
yes
Survey slug.
name
string
no
max length 160
Human-readable placement name.
share_link_id
integer | null
no
Optional anonymous reusable single-link link set id for this survey. Fixed metadata, dates, quota and cookie protection remain effective at runtime. Null resolves or creates the survey default link.
allowed_origins
array<string>
no
items string
Exact HTTP(S) origins or wildcard subdomain origins such as https://*.example.com. Never use *.
origins
array<string>
no
items string
Alias for allowed_origins.
settings
object
no
active
boolean
no
Create the placement active. At least one allowed origin is required.
confirm_public_embed
boolean
no
Set true only after the user explicitly approves activating this real public website embed.
status
string
no
draft, active, revoked
Update lifecycle status. Activating requires at least one allowed origin.
View input JSON schema
{
    "type": "object",
    "properties": {
        "embed_id": {
            "type": "integer",
            "description": "Website embed placement id."
        },
        "id": {
            "type": "integer",
            "description": "Alias for embed_id."
        },
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "name": {
            "type": "string",
            "maxLength": 160,
            "description": "Human-readable placement name."
        },
        "share_link_id": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Optional anonymous reusable single-link link set id for this survey. Fixed metadata, dates, quota and cookie protection remain effective at runtime. Null resolves or creates the survey default link."
        },
        "allowed_origins": {
            "type": "array",
            "description": "Exact HTTP(S) origins or wildcard subdomain origins such as https://*.example.com. Never use *.",
            "items": {
                "type": "string"
            }
        },
        "origins": {
            "type": "array",
            "description": "Alias for allowed_origins.",
            "items": {
                "type": "string"
            }
        },
        "settings": {
            "type": "object",
            "properties": {
                "mode": {
                    "type": "string",
                    "enum": [
                        "modal"
                    ]
                },
                "trigger": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "type": "string",
                            "enum": [
                                "immediate",
                                "delay",
                                "scroll",
                                "launcher",
                                "programmatic",
                                "custom_event"
                            ]
                        },
                        "delay_ms": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 3600000
                        },
                        "scroll_percent": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                        },
                        "event_name": {
                            "type": "string",
                            "maxLength": 120
                        },
                        "launcher_label": {
                            "type": "string",
                            "maxLength": 120
                        }
                    },
                    "required": [],
                    "additionalProperties": false
                },
                "frequency": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "type": "string",
                            "enum": [
                                "always",
                                "session",
                                "once",
                                "cooldown"
                            ]
                        },
                        "cooldown_days": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 3650
                        }
                    },
                    "required": [],
                    "additionalProperties": false
                },
                "layout": {
                    "type": "object",
                    "properties": {
                        "desktop_width": {
                            "type": "integer",
                            "minimum": 320,
                            "maximum": 1200
                        },
                        "mobile_width": {
                            "type": "integer",
                            "minimum": 280,
                            "maximum": 600
                        },
                        "max_height": {
                            "type": "integer",
                            "minimum": 320,
                            "maximum": 1600
                        },
                        "drawer_side": {
                            "type": "string",
                            "enum": [
                                "left",
                                "right"
                            ]
                        }
                    },
                    "required": [],
                    "additionalProperties": false
                },
                "appearance": {
                    "type": "object",
                    "properties": {
                        "border_width": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 8
                        },
                        "border_color": {
                            "type": "string",
                            "pattern": "^#[0-9a-fA-F]{6}$"
                        },
                        "border_radius": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 40
                        },
                        "shadow": {
                            "type": "string",
                            "enum": [
                                "none",
                                "soft",
                                "strong"
                            ]
                        },
                        "backdrop_color": {
                            "type": "string",
                            "pattern": "^#[0-9a-fA-F]{6}$"
                        },
                        "backdrop_opacity": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 90
                        }
                    },
                    "required": [],
                    "additionalProperties": false
                },
                "target_selector": {
                    "type": [
                        "string",
                        "null"
                    ],
                    "maxLength": 240
                },
                "locale": {
                    "type": [
                        "string",
                        "null"
                    ]
                }
            },
            "required": [],
            "additionalProperties": false
        },
        "active": {
            "type": "boolean",
            "description": "Create the placement active. At least one allowed origin is required."
        },
        "confirm_public_embed": {
            "type": "boolean",
            "description": "Set true only after the user explicitly approves activating this real public website embed."
        },
        "status": {
            "type": "string",
            "enum": [
                "draft",
                "active",
                "revoked"
            ],
            "description": "Update lifecycle status. Activating requires at least one allowed origin."
        }
    },
    "required": [
        "slug",
        "embed_id"
    ],
    "additionalProperties": false
}
delete_survey_embed link_sets:write Free+

Revoke a website embed placement. Existing survey responses are retained, but the public embed identifier can no longer launch the survey.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
embed_id
integer
yes
Website embed placement id.
id
integer
no
Alias for embed_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "embed_id": {
            "type": "integer",
            "description": "Website embed placement id."
        },
        "id": {
            "type": "integer",
            "description": "Alias for embed_id."
        }
    },
    "required": [
        "slug",
        "embed_id"
    ],
    "additionalProperties": false
}

Campaigns

19 tools
get_survey_distribution_summary responses:read Free+

Read bounded campaign/origin and LinkSet sent/completed/conversion aggregates for a logical Survey. Campaigns and LinkSets follow their own read scopes. Missing or ambiguous attribution stays unavailable. Never sends, imports or acquires responses.

Parameter
Type
Req.
Details
slug
string
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string"
        }
    },
    "required": [
        "slug"
    ]
}
list_survey_campaigns campaigns:read Pro+

List email campaigns for a survey, optionally including archived campaigns.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
include_archived
boolean
no
Include archived campaigns in the list.
archived
boolean
no
Return only archived campaigns.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "include_archived": {
            "type": "boolean",
            "description": "Include archived campaigns in the list."
        },
        "archived": {
            "type": "boolean",
            "description": "Return only archived campaigns."
        }
    },
    "required": [
        "slug"
    ]
}
list_sender_identities campaigns:write Pro+

List every approved From identity available for campaign creation, including the fixed shared surveys@dayalogs.com identity and active identities on ready custom domains. Pass the selected key as sender_identity.

No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}
get_survey_campaign campaigns:read Pro+

Return one survey email campaign, optionally including recipients and their link status.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
campaign_id
integer
yes
Survey campaign id.
id
integer
no
Alias for campaign_id.
include_recipients
boolean
no
Include recipients. Defaults to true.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "campaign_id": {
            "type": "integer",
            "description": "Survey campaign id."
        },
        "id": {
            "type": "integer",
            "description": "Alias for campaign_id."
        },
        "include_recipients": {
            "type": "boolean",
            "description": "Include recipients. Defaults to true."
        }
    },
    "required": [
        "slug",
        "campaign_id"
    ]
}
list_survey_campaign_events campaigns:read Pro+

List recent provider delivery events for one survey campaign, including delivery, bounce, complaint, reject and delay events.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
campaign_id
integer
yes
Survey campaign id.
limit
integer
no
min 1 · max 500
Maximum recent events to return. Defaults to 100.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "campaign_id": {
            "type": "integer",
            "description": "Survey campaign id."
        },
        "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 500,
            "description": "Maximum recent events to return. Defaults to 100."
        }
    },
    "required": [
        "slug",
        "campaign_id"
    ]
}
create_survey_campaign campaigns:write Pro+

Create a saved email campaign draft for an existing multi-link LinkSet. This does not send email or queue recipients; campaigns consume LinkSets and do not create links.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
name
string
no
Campaign display name.
link_set_id
integer
yes
Existing multi-link link set id. Required on create.
subject
string
yes
Email subject. Required on create. Supports campaign/contact/link placeholders.
sender_identity
string
no
Approved identity key returned by list_sender_identities: shared or custom:<id>. Defaults to shared. Free-form From addresses are not accepted.
sender_name
string
no
Display name for the shared identity. Custom identities use their approved display name.
email_template
string
no
Template selector: base:dayalogs-basic, base:dayalogs-plain or custom:<id>.
template
string
no
Alias for email_template.
email_template_id
integer
no
Ready custom email template id. Alias for custom:<id>.
template_id
integer
no
Alias for email_template_id.
email_template_base_key
string
no
Base template key. Alias for base:<key>.
template_base_key
string
no
Alias for email_template_base_key.
body_html
string
yes
Campaign email body HTML. Required on create. Use {{ @link.url }} or Dayalogs will append a link.
html
string
no
Alias for body_html.
body
string
no
Alias for body_html.
body_text
string
no
Optional plain-text body override.
text
string
no
Alias for body_text.
disclaimer_html
string
no
Optional legal/disclaimer HTML. Falls back to account default.
disclaimer
string
no
Alias for disclaimer_html.
disclaimer_text
string
no
Optional plain-text disclaimer override.
include_branding
boolean
no
Whether the campaign includes account/survey branding.
save_account_disclaimer
boolean
no
Also save this disclaimer as the account default.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "name": {
            "type": "string",
            "description": "Campaign display name."
        },
        "link_set_id": {
            "type": "integer",
            "description": "Existing multi-link link set id. Required on create."
        },
        "subject": {
            "type": "string",
            "description": "Email subject. Required on create. Supports campaign/contact/link placeholders."
        },
        "sender_identity": {
            "type": "string",
            "description": "Approved identity key returned by list_sender_identities: shared or custom:<id>. Defaults to shared. Free-form From addresses are not accepted."
        },
        "sender_name": {
            "type": "string",
            "description": "Display name for the shared identity. Custom identities use their approved display name."
        },
        "email_template": {
            "type": "string",
            "description": "Template selector: base:dayalogs-basic, base:dayalogs-plain or custom:<id>."
        },
        "template": {
            "type": "string",
            "description": "Alias for email_template."
        },
        "email_template_id": {
            "type": "integer",
            "description": "Ready custom email template id. Alias for custom:<id>."
        },
        "template_id": {
            "type": "integer",
            "description": "Alias for email_template_id."
        },
        "email_template_base_key": {
            "type": "string",
            "description": "Base template key. Alias for base:<key>."
        },
        "template_base_key": {
            "type": "string",
            "description": "Alias for email_template_base_key."
        },
        "body_html": {
            "type": "string",
            "description": "Campaign email body HTML. Required on create. Use {{ @link.url }} or Dayalogs will append a link."
        },
        "html": {
            "type": "string",
            "description": "Alias for body_html."
        },
        "body": {
            "type": "string",
            "description": "Alias for body_html."
        },
        "body_text": {
            "type": "string",
            "description": "Optional plain-text body override."
        },
        "text": {
            "type": "string",
            "description": "Alias for body_text."
        },
        "disclaimer_html": {
            "type": "string",
            "description": "Optional legal/disclaimer HTML. Falls back to account default."
        },
        "disclaimer": {
            "type": "string",
            "description": "Alias for disclaimer_html."
        },
        "disclaimer_text": {
            "type": "string",
            "description": "Optional plain-text disclaimer override."
        },
        "include_branding": {
            "type": "boolean",
            "description": "Whether the campaign includes account/survey branding."
        },
        "save_account_disclaimer": {
            "type": "boolean",
            "description": "Also save this disclaimer as the account default."
        }
    },
    "required": [
        "slug",
        "link_set_id",
        "subject",
        "body_html"
    ]
}
create_continuous_survey_campaign campaigns:write Pro+

Create an empty continuous campaign draft for a logical survey. Preview its message before explicit activation; an isolated test email is optional and does not test the event trigger. This never sends an invitation.

Parameter
Type
Req.
Details
survey_id
integer
yes
Logical survey id.
name
string
yes
Campaign display name.
subject
string
yes
Email subject. Required on create. Supports campaign/contact/link placeholders.
sender_identity
string
no
Approved identity key returned by list_sender_identities: shared or custom:<id>. Defaults to shared. Free-form From addresses are not accepted.
sender_name
string
no
Display name for the shared identity. Custom identities use their approved display name.
email_template
string
no
Template selector: base:dayalogs-basic, base:dayalogs-plain or custom:<id>.
template
string
no
Alias for email_template.
email_template_id
integer
no
Ready custom email template id. Alias for custom:<id>.
template_id
integer
no
Alias for email_template_id.
email_template_base_key
string
no
Base template key. Alias for base:<key>.
template_base_key
string
no
Alias for email_template_base_key.
body_html
string
yes
Campaign email body HTML. Required on create. Use {{ @link.url }} or Dayalogs will append a link.
html
string
no
Alias for body_html.
body
string
no
Alias for body_html.
body_text
string
no
Optional plain-text body override.
text
string
no
Alias for body_text.
disclaimer_html
string
no
Optional legal/disclaimer HTML. Falls back to account default.
disclaimer
string
no
Alias for disclaimer_html.
disclaimer_text
string
no
Optional plain-text disclaimer override.
include_branding
boolean
no
Whether the campaign includes account/survey branding.
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "description": "Logical survey id."
        },
        "name": {
            "type": "string",
            "description": "Campaign display name."
        },
        "subject": {
            "type": "string",
            "description": "Email subject. Required on create. Supports campaign/contact/link placeholders."
        },
        "sender_identity": {
            "type": "string",
            "description": "Approved identity key returned by list_sender_identities: shared or custom:<id>. Defaults to shared. Free-form From addresses are not accepted."
        },
        "sender_name": {
            "type": "string",
            "description": "Display name for the shared identity. Custom identities use their approved display name."
        },
        "email_template": {
            "type": "string",
            "description": "Template selector: base:dayalogs-basic, base:dayalogs-plain or custom:<id>."
        },
        "template": {
            "type": "string",
            "description": "Alias for email_template."
        },
        "email_template_id": {
            "type": "integer",
            "description": "Ready custom email template id. Alias for custom:<id>."
        },
        "template_id": {
            "type": "integer",
            "description": "Alias for email_template_id."
        },
        "email_template_base_key": {
            "type": "string",
            "description": "Base template key. Alias for base:<key>."
        },
        "template_base_key": {
            "type": "string",
            "description": "Alias for email_template_base_key."
        },
        "body_html": {
            "type": "string",
            "description": "Campaign email body HTML. Required on create. Use {{ @link.url }} or Dayalogs will append a link."
        },
        "html": {
            "type": "string",
            "description": "Alias for body_html."
        },
        "body": {
            "type": "string",
            "description": "Alias for body_html."
        },
        "body_text": {
            "type": "string",
            "description": "Optional plain-text body override."
        },
        "text": {
            "type": "string",
            "description": "Alias for body_text."
        },
        "disclaimer_html": {
            "type": "string",
            "description": "Optional legal/disclaimer HTML. Falls back to account default."
        },
        "disclaimer": {
            "type": "string",
            "description": "Alias for disclaimer_html."
        },
        "disclaimer_text": {
            "type": "string",
            "description": "Optional plain-text disclaimer override."
        },
        "include_branding": {
            "type": "boolean",
            "description": "Whether the campaign includes account/survey branding."
        }
    },
    "required": [
        "survey_id",
        "name",
        "subject",
        "body_html"
    ]
}
get_continuous_survey_campaign_input_schema campaigns:read Pro+

Read the current versioned mapping contract for a continuous campaign. Required event fields are derived from the survey and message.

Parameter
Type
Req.
Details
campaign_id
integer
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "campaign_id": {
            "type": "integer"
        }
    },
    "required": [
        "campaign_id"
    ]
}
set_continuous_survey_campaign_status campaigns:write Pro+

Activate, pause or permanently close an owned continuous campaign. Activation requires reviewed content and confirm_activation=true. A closed campaign cannot be reopened. For status=closed, obtain explicit user approval of permanent closure, then set confirm_close=true. Closing stops new invitations while preserving queued delivery and issued links under the normal Survey access rules.

Parameter
Type
Req.
Details
campaign_id
integer
yes
status
string
yes
active, paused, closed
confirm_activation
boolean
no
confirm_close
boolean
no
Required and true for status=closed, after explicit user approval of permanent closure.
reason
string
no
View input JSON schema
{
    "type": "object",
    "properties": {
        "campaign_id": {
            "type": "integer"
        },
        "status": {
            "type": "string",
            "enum": [
                "active",
                "paused",
                "closed"
            ]
        },
        "confirm_activation": {
            "type": "boolean"
        },
        "confirm_close": {
            "type": "boolean",
            "description": "Required and true for status=closed, after explicit user approval of permanent closure."
        },
        "reason": {
            "type": "string"
        }
    },
    "required": [
        "campaign_id",
        "status"
    ]
}
trigger_continuous_survey_campaign campaigns:send Pro+

Admit one invitation to a continuous campaign. Optional campaign-scoped idEvent reuses the original invitation without resending, even when data changes. Omitted idEvent always creates a new invitation. This queues real email and requires explicit user authorization.

Parameter
Type
Req.
Details
campaign_id
integer
yes
integration_id
string | null
no
max length 160
Optional literal source label for attribution only. Never changes campaign-scoped idEvent deduplication.
idEvent
string | null
no
max length 160
Optional campaign-scoped business id. Repeated ids return the original invitation without mutations or resending. Omit for a new invitation every time.
idempotency_key
string
no
Optional legacy alias for idEvent; never required.
contact
object
no
event_data
object
no
Canonical occasion fields from the campaign input schema; frozen per invitation.
additional_fields
object
no
Alias for canonical event_data.
View input JSON schema
{
    "type": "object",
    "properties": {
        "campaign_id": {
            "type": "integer"
        },
        "integration_id": {
            "type": [
                "string",
                "null"
            ],
            "maxLength": 160,
            "description": "Optional literal source label for attribution only. Never changes campaign-scoped idEvent deduplication."
        },
        "idEvent": {
            "type": [
                "string",
                "null"
            ],
            "maxLength": 160,
            "description": "Optional campaign-scoped business id. Repeated ids return the original invitation without mutations or resending. Omit for a new invitation every time."
        },
        "idempotency_key": {
            "type": "string",
            "description": "Optional legacy alias for idEvent; never required."
        },
        "contact": {
            "type": "object",
            "properties": {
                "email": {
                    "type": "string",
                    "description": "Required for every new invitation, even when matching an existing contact by phone."
                },
                "phone": {
                    "type": "string"
                },
                "external_id": {
                    "type": "string"
                },
                "first_name": {
                    "type": "string"
                },
                "last_name": {
                    "type": "string"
                },
                "full_name": {
                    "type": "string"
                },
                "gender": {
                    "type": "string"
                },
                "age": {
                    "type": "integer"
                },
                "tags": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "custom_fields": {
                    "type": "object"
                }
            },
            "required": []
        },
        "event_data": {
            "type": "object",
            "description": "Canonical occasion fields from the campaign input schema; frozen per invitation."
        },
        "additional_fields": {
            "type": "object",
            "description": "Alias for canonical event_data."
        }
    },
    "required": [
        "campaign_id"
    ]
}
add_continuous_survey_campaign_batch campaigns:send Pro+

Admit already mapped canonical invitation rows, atomically per row. Returns new, reused and invalid rows. idEvent is optional and campaign-scoped; retrying rows without it creates new invitations. Queues real emails and requires explicit user authorization. No file upload or source mapping is performed.

Parameter
Type
Req.
Details
campaign_id
integer
yes
rows
array<object>
yes
items object
View input JSON schema
{
    "type": "object",
    "properties": {
        "campaign_id": {
            "type": "integer"
        },
        "rows": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "items": {
                "type": "object",
                "properties": {
                    "integration_id": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 160,
                        "description": "Optional literal source label for attribution only. Never changes campaign-scoped idEvent deduplication."
                    },
                    "idEvent": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 160,
                        "description": "Optional campaign-scoped business id. Repeated ids return the original invitation without mutations or resending. Omit for a new invitation every time."
                    },
                    "idempotency_key": {
                        "type": "string",
                        "description": "Optional legacy alias for idEvent; never required."
                    },
                    "contact": {
                        "type": "object",
                        "properties": {
                            "email": {
                                "type": "string",
                                "description": "Required for every new invitation, even when matching an existing contact by phone."
                            },
                            "phone": {
                                "type": "string"
                            },
                            "external_id": {
                                "type": "string"
                            },
                            "first_name": {
                                "type": "string"
                            },
                            "last_name": {
                                "type": "string"
                            },
                            "full_name": {
                                "type": "string"
                            },
                            "gender": {
                                "type": "string"
                            },
                            "age": {
                                "type": "integer"
                            },
                            "tags": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "custom_fields": {
                                "type": "object"
                            }
                        },
                        "required": []
                    },
                    "event_data": {
                        "type": "object",
                        "description": "Canonical occasion fields from the campaign input schema; frozen per invitation."
                    }
                },
                "required": []
            }
        }
    },
    "required": [
        "campaign_id",
        "rows"
    ]
}
update_survey_campaign campaigns:write Pro+

Update a saved campaign draft without sending email. After real send activity, only the campaign name can be changed.

Parameter
Type
Req.
Details
campaign_id
integer
yes
Survey campaign id.
id
integer
no
Alias for campaign_id.
slug
string
yes
Survey slug.
name
string
no
Campaign display name.
link_set_id
integer
no
Existing multi-link link set id. Required on create.
subject
string
no
Email subject. Required on create. Supports campaign/contact/link placeholders.
sender_identity
string
no
Approved identity key returned by list_sender_identities: shared or custom:<id>. Defaults to shared. Free-form From addresses are not accepted.
sender_name
string
no
Display name for the shared identity. Custom identities use their approved display name.
email_template
string
no
Template selector: base:dayalogs-basic, base:dayalogs-plain or custom:<id>.
template
string
no
Alias for email_template.
email_template_id
integer
no
Ready custom email template id. Alias for custom:<id>.
template_id
integer
no
Alias for email_template_id.
email_template_base_key
string
no
Base template key. Alias for base:<key>.
template_base_key
string
no
Alias for email_template_base_key.
body_html
string
no
Campaign email body HTML. Required on create. Use {{ @link.url }} or Dayalogs will append a link.
html
string
no
Alias for body_html.
body
string
no
Alias for body_html.
body_text
string
no
Optional plain-text body override.
text
string
no
Alias for body_text.
disclaimer_html
string
no
Optional legal/disclaimer HTML. Falls back to account default.
disclaimer
string
no
Alias for disclaimer_html.
disclaimer_text
string
no
Optional plain-text disclaimer override.
include_branding
boolean
no
Whether the campaign includes account/survey branding.
save_account_disclaimer
boolean
no
Also save this disclaimer as the account default.
View input JSON schema
{
    "type": "object",
    "properties": {
        "campaign_id": {
            "type": "integer",
            "description": "Survey campaign id."
        },
        "id": {
            "type": "integer",
            "description": "Alias for campaign_id."
        },
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "name": {
            "type": "string",
            "description": "Campaign display name."
        },
        "link_set_id": {
            "type": "integer",
            "description": "Existing multi-link link set id. Required on create."
        },
        "subject": {
            "type": "string",
            "description": "Email subject. Required on create. Supports campaign/contact/link placeholders."
        },
        "sender_identity": {
            "type": "string",
            "description": "Approved identity key returned by list_sender_identities: shared or custom:<id>. Defaults to shared. Free-form From addresses are not accepted."
        },
        "sender_name": {
            "type": "string",
            "description": "Display name for the shared identity. Custom identities use their approved display name."
        },
        "email_template": {
            "type": "string",
            "description": "Template selector: base:dayalogs-basic, base:dayalogs-plain or custom:<id>."
        },
        "template": {
            "type": "string",
            "description": "Alias for email_template."
        },
        "email_template_id": {
            "type": "integer",
            "description": "Ready custom email template id. Alias for custom:<id>."
        },
        "template_id": {
            "type": "integer",
            "description": "Alias for email_template_id."
        },
        "email_template_base_key": {
            "type": "string",
            "description": "Base template key. Alias for base:<key>."
        },
        "template_base_key": {
            "type": "string",
            "description": "Alias for email_template_base_key."
        },
        "body_html": {
            "type": "string",
            "description": "Campaign email body HTML. Required on create. Use {{ @link.url }} or Dayalogs will append a link."
        },
        "html": {
            "type": "string",
            "description": "Alias for body_html."
        },
        "body": {
            "type": "string",
            "description": "Alias for body_html."
        },
        "body_text": {
            "type": "string",
            "description": "Optional plain-text body override."
        },
        "text": {
            "type": "string",
            "description": "Alias for body_text."
        },
        "disclaimer_html": {
            "type": "string",
            "description": "Optional legal/disclaimer HTML. Falls back to account default."
        },
        "disclaimer": {
            "type": "string",
            "description": "Alias for disclaimer_html."
        },
        "disclaimer_text": {
            "type": "string",
            "description": "Optional plain-text disclaimer override."
        },
        "include_branding": {
            "type": "boolean",
            "description": "Whether the campaign includes account/survey branding."
        },
        "save_account_disclaimer": {
            "type": "boolean",
            "description": "Also save this disclaimer as the account default."
        }
    },
    "required": [
        "slug",
        "campaign_id"
    ]
}
clone_survey_campaign campaigns:write Pro+

Clone a survey email campaign as a new draft campaign.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
campaign_id
integer
yes
Source campaign id.
id
integer
no
Alias for campaign_id.
name
string
no
Optional clone name. If omitted, Dayalogs creates a copy name.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "campaign_id": {
            "type": "integer",
            "description": "Source campaign id."
        },
        "id": {
            "type": "integer",
            "description": "Alias for campaign_id."
        },
        "name": {
            "type": "string",
            "description": "Optional clone name. If omitted, Dayalogs creates a copy name."
        }
    },
    "required": [
        "slug",
        "campaign_id"
    ]
}
delete_survey_campaign campaigns:write Pro+

Delete an unsent campaign or archive it when it already has send activity.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
campaign_id
integer
yes
Survey campaign id.
id
integer
no
Alias for campaign_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "campaign_id": {
            "type": "integer",
            "description": "Survey campaign id."
        },
        "id": {
            "type": "integer",
            "description": "Alias for campaign_id."
        }
    },
    "required": [
        "slug",
        "campaign_id"
    ]
}
archive_survey_campaign campaigns:write Pro+

Archive a survey email campaign so it no longer appears in the active campaign list. Archived state blocks subsequent test sends and queueing until restored. Does not send email or cancel already-queued deliveries.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
campaign_id
integer
yes
Survey campaign id.
id
integer
no
Alias for campaign_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "campaign_id": {
            "type": "integer",
            "description": "Survey campaign id."
        },
        "id": {
            "type": "integer",
            "description": "Alias for campaign_id."
        }
    },
    "required": [
        "slug",
        "campaign_id"
    ]
}
restore_survey_campaign campaigns:write Pro+

Restore an archived survey email campaign.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
campaign_id
integer
yes
Survey campaign id.
id
integer
no
Alias for campaign_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "campaign_id": {
            "type": "integer",
            "description": "Survey campaign id."
        },
        "id": {
            "type": "integer",
            "description": "Alias for campaign_id."
        }
    },
    "required": [
        "slug",
        "campaign_id"
    ]
}
preview_survey_campaign campaigns:write Pro+

Render campaign content without sending email or queueing recipients. Pass campaign_id for a saved draft, or draft fields plus link_set_id for a transient preview.

Parameter
Type
Req.
Details
campaign_id
integer
no
Optional saved campaign id. If present, draft fields are ignored.
id
integer
no
Alias for campaign_id.
slug
string
yes
Survey slug.
name
string
no
Campaign display name.
link_set_id
integer
no
Existing multi-link link set id. Required on create.
subject
string
no
Email subject. Required on create. Supports campaign/contact/link placeholders.
sender_identity
string
no
Approved identity key returned by list_sender_identities: shared or custom:<id>. Defaults to shared. Free-form From addresses are not accepted.
sender_name
string
no
Display name for the shared identity. Custom identities use their approved display name.
email_template
string
no
Template selector: base:dayalogs-basic, base:dayalogs-plain or custom:<id>.
template
string
no
Alias for email_template.
email_template_id
integer
no
Ready custom email template id. Alias for custom:<id>.
template_id
integer
no
Alias for email_template_id.
email_template_base_key
string
no
Base template key. Alias for base:<key>.
template_base_key
string
no
Alias for email_template_base_key.
body_html
string
no
Campaign email body HTML. Required on create. Use {{ @link.url }} or Dayalogs will append a link.
html
string
no
Alias for body_html.
body
string
no
Alias for body_html.
body_text
string
no
Optional plain-text body override.
text
string
no
Alias for body_text.
disclaimer_html
string
no
Optional legal/disclaimer HTML. Falls back to account default.
disclaimer
string
no
Alias for disclaimer_html.
disclaimer_text
string
no
Optional plain-text disclaimer override.
include_branding
boolean
no
Whether the campaign includes account/survey branding.
save_account_disclaimer
boolean
no
Also save this disclaimer as the account default.
View input JSON schema
{
    "type": "object",
    "properties": {
        "campaign_id": {
            "type": "integer",
            "description": "Optional saved campaign id. If present, draft fields are ignored."
        },
        "id": {
            "type": "integer",
            "description": "Alias for campaign_id."
        },
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "name": {
            "type": "string",
            "description": "Campaign display name."
        },
        "link_set_id": {
            "type": "integer",
            "description": "Existing multi-link link set id. Required on create."
        },
        "subject": {
            "type": "string",
            "description": "Email subject. Required on create. Supports campaign/contact/link placeholders."
        },
        "sender_identity": {
            "type": "string",
            "description": "Approved identity key returned by list_sender_identities: shared or custom:<id>. Defaults to shared. Free-form From addresses are not accepted."
        },
        "sender_name": {
            "type": "string",
            "description": "Display name for the shared identity. Custom identities use their approved display name."
        },
        "email_template": {
            "type": "string",
            "description": "Template selector: base:dayalogs-basic, base:dayalogs-plain or custom:<id>."
        },
        "template": {
            "type": "string",
            "description": "Alias for email_template."
        },
        "email_template_id": {
            "type": "integer",
            "description": "Ready custom email template id. Alias for custom:<id>."
        },
        "template_id": {
            "type": "integer",
            "description": "Alias for email_template_id."
        },
        "email_template_base_key": {
            "type": "string",
            "description": "Base template key. Alias for base:<key>."
        },
        "template_base_key": {
            "type": "string",
            "description": "Alias for email_template_base_key."
        },
        "body_html": {
            "type": "string",
            "description": "Campaign email body HTML. Required on create. Use {{ @link.url }} or Dayalogs will append a link."
        },
        "html": {
            "type": "string",
            "description": "Alias for body_html."
        },
        "body": {
            "type": "string",
            "description": "Alias for body_html."
        },
        "body_text": {
            "type": "string",
            "description": "Optional plain-text body override."
        },
        "text": {
            "type": "string",
            "description": "Alias for body_text."
        },
        "disclaimer_html": {
            "type": "string",
            "description": "Optional legal/disclaimer HTML. Falls back to account default."
        },
        "disclaimer": {
            "type": "string",
            "description": "Alias for disclaimer_html."
        },
        "disclaimer_text": {
            "type": "string",
            "description": "Optional plain-text disclaimer override."
        },
        "include_branding": {
            "type": "boolean",
            "description": "Whether the campaign includes account/survey branding."
        },
        "save_account_disclaimer": {
            "type": "boolean",
            "description": "Also save this disclaimer as the account default."
        }
    },
    "required": [
        "slug"
    ]
}
send_survey_campaign_test campaigns:send Pro+

For one-off campaigns, inspect a message before a real batch send. For continuous campaigns, this optional isolated email checks appearance only; use a controlled real source event to test the full flow. Sends only to explicit test addresses with a public-preview link and temporary personalization context; it never queues real recipients.

Recommended before one-off batch sends. For continuous campaigns this is optional and checks email appearance only; a controlled real event tests the complete integration. Test messages reach only explicit addresses with an isolated public-preview link and do not mutate the source contact/link.
Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
campaign_id
integer
yes
Survey campaign id.
id
integer
no
Alias for campaign_id.
test_emails
array | string
no
Explicit test recipient emails as an array or comma/newline-separated string. LinkSet recipients are not queued.
emails
array | string
no
Alias for test_emails.
test_email
string
no
Single test email alias.
email
string
no
Single test email alias.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "campaign_id": {
            "type": "integer",
            "description": "Survey campaign id."
        },
        "id": {
            "type": "integer",
            "description": "Alias for campaign_id."
        },
        "test_emails": {
            "type": [
                "array",
                "string"
            ],
            "description": "Explicit test recipient emails as an array or comma/newline-separated string. LinkSet recipients are not queued.",
            "items": {
                "type": "string"
            }
        },
        "emails": {
            "type": [
                "array",
                "string"
            ],
            "description": "Alias for test_emails."
        },
        "test_email": {
            "type": "string",
            "description": "Single test email alias."
        },
        "email": {
            "type": "string",
            "description": "Single test email alias."
        }
    },
    "required": [
        "slug",
        "campaign_id"
    ]
}
send_survey_campaign campaigns:send Pro+

Queue real campaign recipients. First preview and use send_survey_campaign_test, then call this only after the user explicitly requests the real send. scope=auto enforces warmup-first delivery; scope=failed retries only previous failures.

This queues real recipients. Preview and use send_survey_campaign_test first, and proceed only after the user explicitly requests the real send.
scope=auto enforces warmup-first delivery; scope=failed retries only previous failures.
Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
campaign_id
integer
yes
Survey campaign id.
id
integer
no
Alias for campaign_id.
scope
string
no
auto, warmup, remaining, failed
Real-recipient queue scope. Defaults to auto, which starts with the warmup batch and continues with remaining recipients on a later call. failed retries only previous failures.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "campaign_id": {
            "type": "integer",
            "description": "Survey campaign id."
        },
        "id": {
            "type": "integer",
            "description": "Alias for campaign_id."
        },
        "scope": {
            "type": "string",
            "enum": [
                "auto",
                "warmup",
                "remaining",
                "failed"
            ],
            "description": "Real-recipient queue scope. Defaults to auto, which starts with the warmup batch and continues with remaining recipients on a later call. failed retries only previous failures."
        }
    },
    "required": [
        "slug",
        "campaign_id"
    ]
}

Reviews

15 tools
preview_analysis_source_policy responses:read Pro+

Preview fixing the exact current Analysis Source or resuming following the latest confirmed paid Survey acquisition. Pass draft.id and source_policy_epoch from get_analysis_project. Legacy Sources and active protected circuits reject the change. Returns cases, fields and preview_hash, never response values, acquisition or charge.

Parameter
Type
Req.
Details
expected_revision_id
string
yes
expected_policy_epoch
integer
yes
min 0
policy
string
yes
following, fixed
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "expected_revision_id": {
            "type": "string",
            "format": "uuid"
        },
        "expected_policy_epoch": {
            "type": "integer",
            "minimum": 0
        },
        "policy": {
            "type": "string",
            "enum": [
                "following",
                "fixed"
            ]
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "expected_revision_id",
        "expected_policy_epoch",
        "policy",
        "project_id"
    ]
}
preview_survey_acquisition_authorization responses:export Free+

Show the terms for automatic acquisition on a Survey before starting it. Pass max_amount_cents in EUR cents. Returns the saved criteria, price, allowance, proposed end date and confirmation hash. Does not grant consent, start acquisition or charge.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
max_amount_cents
integer
no
min 1 · max 2147483647
max_cases
integer
no
min 1 · max 10000
Legacy case limit. Omit when using max_amount_cents.
timezone
string
yes
ends_at
string | null
no
analysis_ids
array<string>
no
items string
Linked study only with max_amount_cents. Select cumulative Analysis destinations listed by get_survey_acquisition_automation. An empty array with no eligible Analysis enables following for new ones.
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "max_amount_cents": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
        },
        "max_cases": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000,
            "description": "Legacy case limit. Omit when using max_amount_cents."
        },
        "timezone": {
            "type": "string"
        },
        "ends_at": {
            "type": [
                "string",
                "null"
            ]
        },
        "analysis_ids": {
            "type": "array",
            "maxItems": 200,
            "uniqueItems": true,
            "items": {
                "type": "string",
                "format": "uuid"
            },
            "description": "Linked study only with max_amount_cents. Select cumulative Analysis destinations listed by get_survey_acquisition_automation. An empty array with no eligible Analysis enables following for new ones."
        }
    },
    "required": [
        "survey_id",
        "timezone"
    ],
    "additionalProperties": false
}
preview_shared_acquisition_authorization responses:export Free+

Show the terms for automatic acquisition from an owned, connected Report. Pass max_amount_cents in EUR cents. Returns the shared Survey criteria, price, allowance, proposed end date and confirmation hash. Does not grant consent, start acquisition or charge.

Parameter
Type
Req.
Details
report_id
integer
yes
min 1
max_amount_cents
integer
no
min 1 · max 2147483647
max_cases
integer
no
min 1 · max 10000
Legacy case limit. Omit when using max_amount_cents.
timezone
string
yes
ends_at
string | null
no
View input JSON schema
{
    "type": "object",
    "properties": {
        "report_id": {
            "type": "integer",
            "minimum": 1
        },
        "max_amount_cents": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
        },
        "max_cases": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000,
            "description": "Legacy case limit. Omit when using max_amount_cents."
        },
        "timezone": {
            "type": "string"
        },
        "ends_at": {
            "type": [
                "string",
                "null"
            ]
        }
    },
    "required": [
        "report_id",
        "timezone"
    ],
    "additionalProperties": false
}
list_my_review_links reviews:participate user OAuth Team+

List active survey preview-review rounds where the authorized MCP user is a reviewer, including each personal review URL.

Requires a user-authorized OAuth token; organization API keys cannot use this tool.
No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}
list_review_rounds reviews:read Team+

List preview-review rounds for one survey. User-bound connections with review management access include personal rounds. Open them via admin_preview_url. When the result is paged, follow _mcp_result.next_cursor and use get_review_round for participant details.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        }
    },
    "required": [
        "slug"
    ]
}
create_review_round reviews:write Team+

Create a preview-review round with participants. Choose review_locale for the reviewer UI and invitations; it defaults to English and is independent from the survey content locale. This returns personal review URLs but does not send emails.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
name
string
yes
Review round name.
description
string
no
Optional reviewer-facing/internal description.
visibility
string
no
collaborative, private
collaborative lets reviewers see each other comments; private limits visibility.
sender_identity
string
no
Explicit sender key from list_review_rounds.branding_options.senders (shared or custom:id). Defaults to the shared review sender; custom identities require the sender-domain entitlement.
review_hostname
string | null
no
Explicit active hostname from list_review_rounds.branding_options.hostnames. Null uses Dayalogs. Independent from the sender domain.
review_locale
string
no
ca, es, en
Reviewer UI and invitation-email language for the whole round. Defaults to en and is independent from the survey content locale.
close_mode
string
no
manual, all_reviewed, date, date_or_all
How the round should close.
closes_at
string
no
ISO-8601 date/time required when close_mode is date or date_or_all.
participants
array<object>
yes
items object
Review participants. Invitations are not emailed by this tool; use send_review_invitation only after the user authorizes emailing each recipient.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "name": {
            "type": "string",
            "description": "Review round name."
        },
        "description": {
            "type": "string",
            "description": "Optional reviewer-facing/internal description."
        },
        "visibility": {
            "type": "string",
            "enum": [
                "collaborative",
                "private"
            ],
            "description": "collaborative lets reviewers see each other comments; private limits visibility."
        },
        "sender_identity": {
            "type": "string",
            "description": "Explicit sender key from list_review_rounds.branding_options.senders (shared or custom:id). Defaults to the shared review sender; custom identities require the sender-domain entitlement."
        },
        "review_hostname": {
            "type": [
                "string",
                "null"
            ],
            "description": "Explicit active hostname from list_review_rounds.branding_options.hostnames. Null uses Dayalogs. Independent from the sender domain."
        },
        "review_locale": {
            "type": "string",
            "enum": [
                "ca",
                "es",
                "en"
            ],
            "default": "en",
            "description": "Reviewer UI and invitation-email language for the whole round. Defaults to en and is independent from the survey content locale."
        },
        "close_mode": {
            "type": "string",
            "enum": [
                "manual",
                "all_reviewed",
                "date",
                "date_or_all"
            ],
            "description": "How the round should close."
        },
        "closes_at": {
            "type": "string",
            "description": "ISO-8601 date/time required when close_mode is date or date_or_all."
        },
        "participants": {
            "type": "array",
            "description": "Review participants. Invitations are not emailed by this tool; use send_review_invitation only after the user authorizes emailing each recipient.",
            "items": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Full reviewer name. Alternative to first_name/last_name."
                    },
                    "first_name": {
                        "type": "string",
                        "description": "Reviewer first name."
                    },
                    "last_name": {
                        "type": "string",
                        "description": "Reviewer last name."
                    },
                    "email": {
                        "type": "string",
                        "description": "Reviewer email."
                    },
                    "role": {
                        "type": "string",
                        "enum": [
                            "comment",
                            "decision"
                        ],
                        "description": "Reviewer role. Defaults to comment."
                    }
                },
                "required": [
                    "email"
                ]
            }
        }
    },
    "required": [
        "slug",
        "name",
        "participants"
    ]
}
get_review_round reviews:read Team+

Get one preview-review round, including participants and comments. Personal invitation URLs are omitted when managing another user’s personal round.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
round_id
integer
yes
min 1
Review round id.
id
integer
no
min 1
Alias for round_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "round_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Review round id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for round_id."
        }
    },
    "required": [
        "slug",
        "round_id"
    ]
}
update_review_round reviews:write Team+

Update editable preview-review round metadata such as name, description, visibility, review language and close rules. review_locale controls reviewer UI and invitation language, not survey content. Can overwrite visibility, deadlines and close_mode, restricting contribution access or causing automatic closure. Does not send invitations.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
round_id
integer
yes
min 1
Review round id.
id
integer
no
min 1
Alias for round_id.
name
string
no
Optional new review round name.
description
string | null
no
Optional reviewer-facing/internal description.
visibility
string
no
collaborative, private
collaborative lets reviewers see each other comments; private limits visibility.
sender_identity
string
no
Explicit sender key from list_review_rounds.branding_options.senders (shared or custom:id). Defaults to the shared review sender; custom identities require the sender-domain entitlement.
review_hostname
string | null
no
Explicit active hostname from list_review_rounds.branding_options.hostnames. Null uses Dayalogs. Independent from the sender domain.
review_locale
string
no
ca, es, en
Reviewer UI and invitation-email language for the whole round. Independent from the survey content locale.
close_mode
string
no
manual, all_reviewed, date, date_or_all
How the round should close.
closes_at
string | null
no
ISO-8601 date/time required when close_mode is date or date_or_all.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "round_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Review round id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for round_id."
        },
        "name": {
            "type": "string",
            "description": "Optional new review round name."
        },
        "description": {
            "type": [
                "string",
                "null"
            ],
            "description": "Optional reviewer-facing/internal description."
        },
        "visibility": {
            "type": "string",
            "enum": [
                "collaborative",
                "private"
            ],
            "description": "collaborative lets reviewers see each other comments; private limits visibility."
        },
        "sender_identity": {
            "type": "string",
            "description": "Explicit sender key from list_review_rounds.branding_options.senders (shared or custom:id). Defaults to the shared review sender; custom identities require the sender-domain entitlement."
        },
        "review_hostname": {
            "type": [
                "string",
                "null"
            ],
            "description": "Explicit active hostname from list_review_rounds.branding_options.hostnames. Null uses Dayalogs. Independent from the sender domain."
        },
        "review_locale": {
            "type": "string",
            "enum": [
                "ca",
                "es",
                "en"
            ],
            "description": "Reviewer UI and invitation-email language for the whole round. Independent from the survey content locale."
        },
        "close_mode": {
            "type": "string",
            "enum": [
                "manual",
                "all_reviewed",
                "date",
                "date_or_all"
            ],
            "description": "How the round should close."
        },
        "closes_at": {
            "type": [
                "string",
                "null"
            ],
            "description": "ISO-8601 date/time required when close_mode is date or date_or_all."
        }
    },
    "required": [
        "slug",
        "round_id"
    ]
}
list_review_comments reviews:read Team+

List structured comments and replies for one preview-review round.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
round_id
integer
yes
min 1
Review round id.
id
integer
no
min 1
Alias for round_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "round_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Review round id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for round_id."
        }
    },
    "required": [
        "slug",
        "round_id"
    ]
}
add_review_participant reviews:write Team+

Add a participant to an open preview-review round. This returns the personal review URL but does not send an email.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
round_id
integer
yes
min 1
Review round id.
id
integer
no
min 1
Alias for round_id.
name
string
no
Full reviewer name. Alternative to first_name/last_name.
first_name
string
no
Reviewer first name.
last_name
string
no
Reviewer last name.
email
string
yes
Reviewer email.
role
string
no
comment, decision
comment can comment/reply; decision can also decide comments in supported review UIs.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "round_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Review round id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for round_id."
        },
        "name": {
            "type": "string",
            "description": "Full reviewer name. Alternative to first_name/last_name."
        },
        "first_name": {
            "type": "string",
            "description": "Reviewer first name."
        },
        "last_name": {
            "type": "string",
            "description": "Reviewer last name."
        },
        "email": {
            "type": "string",
            "description": "Reviewer email."
        },
        "role": {
            "type": "string",
            "enum": [
                "comment",
                "decision"
            ],
            "description": "comment can comment/reply; decision can also decide comments in supported review UIs."
        }
    },
    "required": [
        "slug",
        "round_id",
        "email"
    ]
}
create_review_comment reviews:write Team+

Create a comment or reply in a preview-review round. User-authorized OAuth tokens infer the author from the logged-in user; organization API keys must pass an author object. A reply to an approved or rejected parent reopens it and clears its decision note, deciding actor and decision timestamp. Does not send invitations or apply survey changes.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
round_id
integer
yes
min 1
Review round id.
id
integer
no
min 1
Alias for round_id.
body
string
no
Comment body text.
text
string
no
Alias for body.
kind
string
no
Target kind such as survey, block, question, option or ending.
target_kind
string
no
Alias for kind.
target_id
string
no
Target fragment/question/item id.
element_id
string
no
Alias for target_id.
label
string
no
Human-readable target label.
target_label
string
no
Alias for label.
parent_id
integer
no
min 1
Optional parent comment id to create a reply.
author
object
no
Optional author object for organization API keys without user context. Ignored for user-authorized OAuth tokens.
participant
object
no
Alias for author.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "round_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Review round id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for round_id."
        },
        "body": {
            "type": "string",
            "description": "Comment body text."
        },
        "text": {
            "type": "string",
            "description": "Alias for body."
        },
        "kind": {
            "type": "string",
            "description": "Target kind such as survey, block, question, option or ending."
        },
        "target_kind": {
            "type": "string",
            "description": "Alias for kind."
        },
        "target_id": {
            "type": "string",
            "description": "Target fragment/question/item id."
        },
        "element_id": {
            "type": "string",
            "description": "Alias for target_id."
        },
        "label": {
            "type": "string",
            "description": "Human-readable target label."
        },
        "target_label": {
            "type": "string",
            "description": "Alias for label."
        },
        "parent_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Optional parent comment id to create a reply."
        },
        "author": {
            "type": "object",
            "description": "Optional author object for organization API keys without user context. Ignored for user-authorized OAuth tokens.",
            "properties": {
                "name": {
                    "type": "string",
                    "description": "Full reviewer name. Alternative to first_name/last_name."
                },
                "first_name": {
                    "type": "string",
                    "description": "Reviewer first name."
                },
                "last_name": {
                    "type": "string",
                    "description": "Reviewer last name."
                },
                "email": {
                    "type": "string",
                    "description": "Reviewer email."
                },
                "role": {
                    "type": "string",
                    "enum": [
                        "comment",
                        "decision"
                    ],
                    "description": "Reviewer role. Defaults to comment."
                }
            },
            "required": [
                "email"
            ]
        },
        "participant": {
            "type": "object",
            "description": "Alias for author.",
            "properties": {
                "name": {
                    "type": "string",
                    "description": "Full reviewer name. Alternative to first_name/last_name."
                },
                "first_name": {
                    "type": "string",
                    "description": "Reviewer first name."
                },
                "last_name": {
                    "type": "string",
                    "description": "Reviewer last name."
                },
                "email": {
                    "type": "string",
                    "description": "Reviewer email."
                },
                "role": {
                    "type": "string",
                    "enum": [
                        "comment",
                        "decision"
                    ],
                    "description": "Reviewer role. Defaults to comment."
                }
            },
            "required": [
                "email"
            ]
        }
    },
    "required": [
        "slug",
        "round_id"
    ]
}
decide_review_comment reviews:decide user OAuth Team+

Approve or reject a review comment, replacing its prior decision and affecting discussion state visible to round participants, including external reviewers. Applied status is assigned automatically when an approved comment is materialized in a new survey version. Do not decide comments unless the user has explicitly approved each individual decision; requires confirm_decision=true after that approval. This is MCP-only and requires a user-bound token with reviews:decide; organization API keys cannot decide. Does not send invitations or edit the survey itself.

Requires a user-authorized OAuth token; organization API keys cannot use this tool.
Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
comment_id
integer
yes
min 1
Review comment id.
id
integer
no
min 1
Alias for comment_id.
status
string
yes
approved, rejected
Decision status to set on the comment.
decision
string
no
approved, rejected
Alias for status.
decision_note
string
no
Optional decision note.
note
string
no
Alias for decision_note.
confirm_decision
boolean
no
Must be true only after the user explicitly approves this specific review comment decision. Without it, the tool returns confirmation guidance and does not mutate the comment.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "comment_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Review comment id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for comment_id."
        },
        "status": {
            "type": "string",
            "enum": [
                "approved",
                "rejected"
            ],
            "description": "Decision status to set on the comment."
        },
        "decision": {
            "type": "string",
            "enum": [
                "approved",
                "rejected"
            ],
            "description": "Alias for status."
        },
        "decision_note": {
            "type": "string",
            "description": "Optional decision note."
        },
        "note": {
            "type": "string",
            "description": "Alias for decision_note."
        },
        "confirm_decision": {
            "type": "boolean",
            "description": "Must be true only after the user explicitly approves this specific review comment decision. Without it, the tool returns confirmation guidance and does not mutate the comment."
        }
    },
    "required": [
        "slug",
        "comment_id",
        "status"
    ]
}
send_review_invitation reviews:write Team+

Send the review invitation email for one existing review participant.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
participant_id
integer
yes
min 1
Review participant id.
id
integer
no
min 1
Alias for participant_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "participant_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Review participant id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for participant_id."
        }
    },
    "required": [
        "slug",
        "participant_id"
    ]
}
close_review_round reviews:write Team+

Close a preview-review round, ending the ability of participants to add comments or decisions through personal review access, including external reviewers. Existing comments and access remain as read-only history. Does not send invitation email.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
round_id
integer
yes
min 1
Review round id.
id
integer
no
min 1
Alias for round_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "round_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Review round id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for round_id."
        }
    },
    "required": [
        "slug",
        "round_id"
    ]
}
export_review_comments reviews:read Team+

Export one preview-review round as structured JSON with participants, comments and target positions.

Parameter
Type
Req.
Details
slug
string
yes
Survey slug.
round_id
integer
yes
min 1
Review round id.
id
integer
no
min 1
Alias for round_id.
View input JSON schema
{
    "type": "object",
    "properties": {
        "slug": {
            "type": "string",
            "description": "Survey slug."
        },
        "round_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Review round id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for round_id."
        }
    },
    "required": [
        "slug",
        "round_id"
    ]
}

Branding & styles

10 tools
get_account_branding branding:read Free+

Return account branding: reusable logos, default logo, block header and current revision for immediate edits.

No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}
update_account_branding branding:write Free+

Commit one account branding action immediately: choose a default logo or add/update/remove/move a header block. No later Save step. Read current expected_revision first; conflicts never retry automatically.

Parameter
Type
Req.
Details
expected_revision
string
no
Current get_account_branding revision, required for header/default-logo actions.
default_logo_id
string
no
Owned logo id from get_account_branding or dayalogs. Default-logo blocks follow this selection; explicit blocks keep their logo.
header_operation
object
no
logo_alignment
string
no
left, center, right
Account default logo alignment.
alignment
string
no
left, center, right
Alias for logo_alignment.
View input JSON schema
{
    "type": "object",
    "properties": {
        "expected_revision": {
            "type": "string",
            "description": "Current get_account_branding revision, required for header/default-logo actions."
        },
        "default_logo_id": {
            "type": "string",
            "description": "Owned logo id from get_account_branding or dayalogs. Default-logo blocks follow this selection; explicit blocks keep their logo."
        },
        "header_operation": {
            "type": "object",
            "properties": {
                "type": {
                    "type": "string",
                    "enum": [
                        "add",
                        "update",
                        "remove",
                        "move",
                        "width_mode"
                    ]
                },
                "block_id": {
                    "type": "string",
                    "description": "Existing block id for update, remove or move."
                },
                "position": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3,
                    "description": "Zero-based move destination."
                },
                "value": {
                    "type": "string",
                    "enum": [
                        "auto",
                        "percentage"
                    ],
                    "description": "Width mode for the complete header."
                },
                "block": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "type": "string",
                            "enum": [
                                "image",
                                "text"
                            ]
                        },
                        "logo_id": {
                            "type": "string",
                            "description": "default, dayalogs or an owned library logo id; survey also selects a retained Survey logo in Survey-design operations."
                        },
                        "text": {
                            "type": "string",
                            "maxLength": 300,
                            "description": "Plain text; never executable HTML."
                        },
                        "align": {
                            "type": "string",
                            "enum": [
                                "left",
                                "center",
                                "right"
                            ]
                        },
                        "width": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 100,
                            "description": "Custom percentages stay fixed. If total exceeds 100%, only the last block is reduced, leaving at least 1%; otherwise the action is rejected."
                        },
                        "hide_on_mobile": {
                            "type": "boolean",
                            "default": false,
                            "description": "Hide only this block on narrow mobile screens. Visible blocks share the available width; desktop layout is unchanged."
                        }
                    },
                    "required": []
                }
            },
            "required": [
                "type"
            ]
        },
        "logo_alignment": {
            "type": "string",
            "enum": [
                "left",
                "center",
                "right"
            ],
            "description": "Account default logo alignment."
        },
        "alignment": {
            "type": "string",
            "enum": [
                "left",
                "center",
                "right"
            ],
            "description": "Alias for logo_alignment."
        }
    },
    "required": []
}
upload_account_logo branding:write Free+

Add an image to the reusable account logo library. make_default defaults to true for compatibility; false only adds it to the library. Existing images are preserved.

Parameter
Type
Req.
Details
content_base64
string
yes
Base64 image content. Data URLs are accepted.
filename
string
no
Original filename for metadata.
mime_type
string
no
image/png, image/jpeg or image/webp. Optional when content_base64 is a data URL.
logo_alignment
string
no
left, center, right
Optional logo alignment to save with the upload.
alignment
string
no
left, center, right
Alias for logo_alignment.
name
string
no
max length 100
make_default
boolean
no
expected_revision
string
no
View input JSON schema
{
    "type": "object",
    "properties": {
        "content_base64": {
            "type": "string",
            "description": "Base64 image content. Data URLs are accepted."
        },
        "filename": {
            "type": "string",
            "description": "Original filename for metadata."
        },
        "mime_type": {
            "type": "string",
            "description": "image/png, image/jpeg or image/webp. Optional when content_base64 is a data URL."
        },
        "logo_alignment": {
            "type": "string",
            "enum": [
                "left",
                "center",
                "right"
            ],
            "description": "Optional logo alignment to save with the upload."
        },
        "alignment": {
            "type": "string",
            "enum": [
                "left",
                "center",
                "right"
            ],
            "description": "Alias for logo_alignment."
        },
        "name": {
            "type": "string",
            "maxLength": 100
        },
        "make_default": {
            "type": "boolean",
            "default": true
        },
        "expected_revision": {
            "type": "string"
        }
    },
    "required": [
        "content_base64"
    ]
}
list_styles branding:read Free+

List base and custom styles available in the authenticated account.

Parameter
Type
Req.
Details
include_css
boolean
no
Include full CSS in the response. Defaults to false.
View input JSON schema
{
    "type": "object",
    "properties": {
        "include_css": {
            "type": "boolean",
            "description": "Include full CSS in the response. Defaults to false."
        }
    },
    "required": []
}
get_style branding:read Free+

Return one custom style by id, optionally including generated CSS.

Parameter
Type
Req.
Details
style_id
integer
yes
min 1
Custom style id.
id
integer
no
min 1
Alias for style_id.
include_css
boolean
no
Include full CSS. Defaults to true for get_style.
View input JSON schema
{
    "type": "object",
    "properties": {
        "style_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Custom style id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for style_id."
        },
        "include_css": {
            "type": "boolean",
            "description": "Include full CSS. Defaults to true for get_style."
        }
    },
    "required": [
        "style_id"
    ]
}
create_style branding:write Free+

Create a custom respondent-facing style from a style config, CSS or generator answers.

Parameter
Type
Req.
Details
name
string
no
Style name.
slug
string
no
Optional style slug for update.
status
string
no
draft, ready
Style status. Ready styles can be assigned to surveys.
base_key
string
no
Base style key used by generated configs.
css
string
no
Scoped CSS using only allowed Dayalogs survey selectors.
extra_css
string
no
Validated CSS appended after generated CSS; retained across config regeneration. Empty string removes the extra layer.
config
object
no
Dayalogs style-config JSON object.
theme
object
no
Alias for config.
definition
object
no
Alias for config.
config_json
string
no
Style config encoded as JSON.
answers
object
no
Generator answer object for quick style generation.
View input JSON schema
{
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "description": "Style name."
        },
        "slug": {
            "type": "string",
            "description": "Optional style slug for update."
        },
        "status": {
            "type": "string",
            "enum": [
                "draft",
                "ready"
            ],
            "description": "Style status. Ready styles can be assigned to surveys."
        },
        "base_key": {
            "type": "string",
            "description": "Base style key used by generated configs."
        },
        "css": {
            "type": "string",
            "description": "Scoped CSS using only allowed Dayalogs survey selectors."
        },
        "extra_css": {
            "type": "string",
            "description": "Validated CSS appended after generated CSS; retained across config regeneration. Empty string removes the extra layer."
        },
        "config": {
            "type": "object",
            "description": "Dayalogs style-config JSON object."
        },
        "theme": {
            "type": "object",
            "description": "Alias for config."
        },
        "definition": {
            "type": "object",
            "description": "Alias for config."
        },
        "config_json": {
            "type": "string",
            "description": "Style config encoded as JSON."
        },
        "answers": {
            "type": "object",
            "description": "Generator answer object for quick style generation."
        }
    },
    "required": []
}
import_style branding:write Free+

Import and persist a validated style config or scoped CSS as a custom draft style.

Parameter
Type
Req.
Details
name
string
no
Style name.
slug
string
no
Optional style slug for update.
status
string
no
draft, ready
Style status. Ready styles can be assigned to surveys.
base_key
string
no
Base style key used by generated configs.
css
string
no
Scoped CSS using only allowed Dayalogs survey selectors.
extra_css
string
no
Validated CSS appended after generated CSS; retained across config regeneration. Empty string removes the extra layer.
config
object
no
Dayalogs style-config JSON object.
theme
object
no
Alias for config.
definition
object
no
Alias for config.
config_json
string
no
Style config encoded as JSON.
answers
object
no
Generator answer object for quick style generation.
View input JSON schema
{
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "description": "Style name."
        },
        "slug": {
            "type": "string",
            "description": "Optional style slug for update."
        },
        "status": {
            "type": "string",
            "enum": [
                "draft",
                "ready"
            ],
            "description": "Style status. Ready styles can be assigned to surveys."
        },
        "base_key": {
            "type": "string",
            "description": "Base style key used by generated configs."
        },
        "css": {
            "type": "string",
            "description": "Scoped CSS using only allowed Dayalogs survey selectors."
        },
        "extra_css": {
            "type": "string",
            "description": "Validated CSS appended after generated CSS; retained across config regeneration. Empty string removes the extra layer."
        },
        "config": {
            "type": "object",
            "description": "Dayalogs style-config JSON object."
        },
        "theme": {
            "type": "object",
            "description": "Alias for config."
        },
        "definition": {
            "type": "object",
            "description": "Alias for config."
        },
        "config_json": {
            "type": "string",
            "description": "Style config encoded as JSON."
        },
        "answers": {
            "type": "object",
            "description": "Generator answer object for quick style generation."
        }
    },
    "required": []
}
clone_base_style branding:write Free+

Clone a locked base style into an editable custom style.

Parameter
Type
Req.
Details
base_key
string
yes
Locked base style key to clone.
name
string
no
Optional new custom style name.
status
string
no
draft, ready
Optional initial status. Defaults to draft.
View input JSON schema
{
    "type": "object",
    "properties": {
        "base_key": {
            "type": "string",
            "description": "Locked base style key to clone."
        },
        "name": {
            "type": "string",
            "description": "Optional new custom style name."
        },
        "status": {
            "type": "string",
            "enum": [
                "draft",
                "ready"
            ],
            "description": "Optional initial status. Defaults to draft."
        }
    },
    "required": [
        "base_key"
    ]
}
update_style branding:write Free+

Update custom style metadata, status, config or scoped CSS. Overwrites previous custom style content and configuration; locked base styles remain protected.

Parameter
Type
Req.
Details
style_id
integer
yes
min 1
Custom style id.
id
integer
no
min 1
Alias for style_id.
name
string
no
Style name.
slug
string
no
Optional style slug for update.
status
string
no
draft, ready
Style status. Ready styles can be assigned to surveys.
base_key
string
no
Base style key used by generated configs.
css
string
no
Scoped CSS using only allowed Dayalogs survey selectors.
extra_css
string
no
Validated CSS appended after generated CSS; retained across config regeneration. Empty string removes the extra layer.
config
object
no
Dayalogs style-config JSON object.
theme
object
no
Alias for config.
definition
object
no
Alias for config.
config_json
string
no
Style config encoded as JSON.
answers
object
no
Generator answer object for quick style generation.
View input JSON schema
{
    "type": "object",
    "properties": {
        "style_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Custom style id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for style_id."
        },
        "name": {
            "type": "string",
            "description": "Style name."
        },
        "slug": {
            "type": "string",
            "description": "Optional style slug for update."
        },
        "status": {
            "type": "string",
            "enum": [
                "draft",
                "ready"
            ],
            "description": "Style status. Ready styles can be assigned to surveys."
        },
        "base_key": {
            "type": "string",
            "description": "Base style key used by generated configs."
        },
        "css": {
            "type": "string",
            "description": "Scoped CSS using only allowed Dayalogs survey selectors."
        },
        "extra_css": {
            "type": "string",
            "description": "Validated CSS appended after generated CSS; retained across config regeneration. Empty string removes the extra layer."
        },
        "config": {
            "type": "object",
            "description": "Dayalogs style-config JSON object."
        },
        "theme": {
            "type": "object",
            "description": "Alias for config."
        },
        "definition": {
            "type": "object",
            "description": "Alias for config."
        },
        "config_json": {
            "type": "string",
            "description": "Style config encoded as JSON."
        },
        "answers": {
            "type": "object",
            "description": "Generator answer object for quick style generation."
        }
    },
    "required": [
        "style_id"
    ]
}
save_style_as branding:write Free+

Duplicate an existing custom style under a new name and optional updated config, CSS or status.

Parameter
Type
Req.
Details
style_id
integer
yes
min 1
Custom style id.
id
integer
no
min 1
Alias for style_id.
name
string
no
Style name.
slug
string
no
Optional style slug for update.
status
string
no
draft, ready
Style status. Ready styles can be assigned to surveys.
base_key
string
no
Base style key used by generated configs.
css
string
no
Scoped CSS using only allowed Dayalogs survey selectors.
extra_css
string
no
Validated CSS appended after generated CSS; retained across config regeneration. Empty string removes the extra layer.
config
object
no
Dayalogs style-config JSON object.
theme
object
no
Alias for config.
definition
object
no
Alias for config.
config_json
string
no
Style config encoded as JSON.
answers
object
no
Generator answer object for quick style generation.
View input JSON schema
{
    "type": "object",
    "properties": {
        "style_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Custom style id."
        },
        "id": {
            "type": "integer",
            "minimum": 1,
            "description": "Alias for style_id."
        },
        "name": {
            "type": "string",
            "description": "Style name."
        },
        "slug": {
            "type": "string",
            "description": "Optional style slug for update."
        },
        "status": {
            "type": "string",
            "enum": [
                "draft",
                "ready"
            ],
            "description": "Style status. Ready styles can be assigned to surveys."
        },
        "base_key": {
            "type": "string",
            "description": "Base style key used by generated configs."
        },
        "css": {
            "type": "string",
            "description": "Scoped CSS using only allowed Dayalogs survey selectors."
        },
        "extra_css": {
            "type": "string",
            "description": "Validated CSS appended after generated CSS; retained across config regeneration. Empty string removes the extra layer."
        },
        "config": {
            "type": "object",
            "description": "Dayalogs style-config JSON object."
        },
        "theme": {
            "type": "object",
            "description": "Alias for config."
        },
        "definition": {
            "type": "object",
            "description": "Alias for config."
        },
        "config_json": {
            "type": "string",
            "description": "Style config encoded as JSON."
        },
        "answers": {
            "type": "object",
            "description": "Generator answer object for quick style generation."
        }
    },
    "required": [
        "style_id"
    ]
}

Audit

1 tools
list_audit_events audit:read Free+

List the authenticated organization’s immutable business audit events. Optionally filter by document type and id.

Parameter
Type
Req.
Details
document_type
string
no
Optional audited document type, for example survey, campaign, link_set or style_theme.
document_id
string
no
Optional document id. Use together with document_type for one record history.
limit
integer
no
min 1 · max 250
Maximum events to return.
View input JSON schema
{
    "type": "object",
    "properties": {
        "document_type": {
            "type": "string",
            "description": "Optional audited document type, for example survey, campaign, link_set or style_theme."
        },
        "document_id": {
            "type": "string",
            "description": "Optional document id. Use together with document_type for one record history."
        },
        "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 250,
            "description": "Maximum events to return."
        }
    },
    "required": []
}

Other

21 tools
get_tool_result_page public Sandbox Free+

Read the next bounded page of a previous result using its _mcp_result.next_cursor. To start at a top-level section, pass its key from sections. Continue with each next_cursor alone. Join json_fragment in offset_bytes order for the same section, then decode as JSON. A page read never repeats the original call. Cursors expire after five minutes.

Available without a specific Dayalogs scope; the OAuth/demo session still controls the connection.
Parameter
Type
Req.
Details
cursor
string
yes
max length 2048
section
string
no
max length 48
View input JSON schema
{
    "type": "object",
    "properties": {
        "cursor": {
            "type": "string",
            "maxLength": 2048
        },
        "section": {
            "type": "string",
            "maxLength": 48
        }
    },
    "required": [
        "cursor"
    ],
    "additionalProperties": false
}
set_analysis_source_policy responses:read Pro+

After approval of preview_analysis_source_policy, set following or fixed with the same preview_hash, revision, epoch, request UUID and confirm_source_policy:true. For a linked study this controls only automatic updates, independently of the budget. Resuming a linked-study Analysis catches up from paid batches in the background. Other shared Analyses use explicit Apply after reconnecting. Retry unknown outcomes identically.

Parameter
Type
Req.
Details
expected_revision_id
string
yes
expected_policy_epoch
integer
yes
min 0
policy
string
yes
following, fixed
request_id
string
yes
preview_hash
string
yes
confirm_source_policy
boolean
yes
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "expected_revision_id": {
            "type": "string",
            "format": "uuid"
        },
        "expected_policy_epoch": {
            "type": "integer",
            "minimum": 0
        },
        "policy": {
            "type": "string",
            "enum": [
                "following",
                "fixed"
            ]
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "preview_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
        },
        "confirm_source_policy": {
            "type": "boolean",
            "const": true
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "expected_revision_id",
        "expected_policy_epoch",
        "policy",
        "request_id",
        "preview_hash",
        "confirm_source_policy",
        "project_id"
    ]
}
name_analysis_result responses:read Pro+

Set or clear the descriptive suffix of an owned stable Result id. Read result_names from get_analysis_project first; send its prior suffix as expected_name (empty if absent). Metadata only: never changes Recipe revision, generations, calculations, exports or Report bindings. Concurrent different edits return 409.

Parameter
Type
Req.
Details
result_id
string
yes
name
string
yes
max length 120
Descriptive suffix. Empty clears it. Metadata only, no calculation or Recipe revision.
expected_name
string
yes
max length 120
Previously read suffix, empty when absent. A concurrent different edit returns 409.
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "result_id": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_:-]{1,100}$"
        },
        "name": {
            "type": "string",
            "maxLength": 120,
            "description": "Descriptive suffix. Empty clears it. Metadata only, no calculation or Recipe revision."
        },
        "expected_name": {
            "type": "string",
            "maxLength": 120,
            "description": "Previously read suffix, empty when absent. A concurrent different edit returns 409."
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "result_id",
        "name",
        "expected_name",
        "project_id"
    ]
}
get_analysis_result_rows responses:read Pro+

Read a published terminal Result in batches of 200, all typed fields. Optional search is a literal case-insensitive substring across all frozen values, case ids and codebook labels (max 200 characters), not only loaded rows. matched_total counts matches; total stays the full Result. First call captures its pin; keep the same search and pass that exact pin and next_cursor as after for every later batch. Search never filters calculations or Reports. Never Apply, acquire, export or combine generations. Source admission, ownership and withdrawal remain guarded.

Parameter
Type
Req.
Details
result_id
string
no
pin
object
no
after
string
no
max length 128
search
string
no
max length 200
Literal case-insensitive substring across all frozen values, case ids and codebook labels. Keep the same search and pin for subsequent cursors. Does not filter calculations or Reports.
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "result_id": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_:-]{1,100}$"
        },
        "pin": {
            "type": "object",
            "additionalProperties": false,
            "required": [
                "dataset_id",
                "generation_id",
                "cut",
                "access_revision"
            ],
            "properties": {
                "dataset_id": {
                    "type": "string",
                    "format": "uuid"
                },
                "generation_id": {
                    "type": "string",
                    "format": "uuid"
                },
                "cut": {
                    "type": "integer",
                    "minimum": 0
                },
                "access_revision": {
                    "type": "integer",
                    "minimum": 0
                }
            }
        },
        "after": {
            "type": "string",
            "maxLength": 128
        },
        "search": {
            "type": "string",
            "maxLength": 200,
            "description": "Literal case-insensitive substring across all frozen values, case ids and codebook labels. Keep the same search and pin for subsequent cursors. Does not filter calculations or Reports."
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "project_id"
    ],
    "allOf": [
        {
            "if": {
                "required": [
                    "after"
                ],
                "properties": {
                    "after": {
                        "minLength": 1
                    }
                }
            },
            "then": {
                "required": [
                    "pin"
                ]
            }
        }
    ]
}
explore_analysis_result responses:read Pro+

Read-only full published Result SQL calculation, not a sample of loaded rows. Pass the rows pin to keep the same generation. Measures distribution, mode, numeric_summary; basic cross-tab requires two single-category variables. percent_basis row/column/total. Effective Result weights, real case bases and frozen special/missing semantics. No live survey joins, persistence, charge or publication.

Parameter
Type
Req.
Details
result_id
string
no
pin
object
no
variable
string
yes
min length 1 · max length 128
compare_by
string
no
max length 128
measure
string
yes
distribution, numeric_summary, mode
percent_basis
string
no
row, column, total
use_weights
boolean
no
False computes unweighted statistics and percentages with unit weights, without changing the Result.
project_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "result_id": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_:-]{1,100}$"
        },
        "pin": {
            "type": "object",
            "additionalProperties": false,
            "required": [
                "dataset_id",
                "generation_id",
                "cut",
                "access_revision"
            ],
            "properties": {
                "dataset_id": {
                    "type": "string",
                    "format": "uuid"
                },
                "generation_id": {
                    "type": "string",
                    "format": "uuid"
                },
                "cut": {
                    "type": "integer",
                    "minimum": 0
                },
                "access_revision": {
                    "type": "integer",
                    "minimum": 0
                }
            }
        },
        "variable": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
        },
        "compare_by": {
            "type": "string",
            "maxLength": 128
        },
        "measure": {
            "type": "string",
            "enum": [
                "distribution",
                "numeric_summary",
                "mode"
            ]
        },
        "percent_basis": {
            "type": "string",
            "enum": [
                "row",
                "column",
                "total"
            ]
        },
        "use_weights": {
            "type": "boolean",
            "default": true,
            "description": "False computes unweighted statistics and percentages with unit weights, without changing the Result."
        },
        "project_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "variable",
        "measure",
        "project_id"
    ]
}
get_survey_dataset_context responses:read Free+

Read typed zero-transformer sources, linked_sources and the latest 20 preparation jobs for one logical survey_id, optionally an owned concrete version_id. Default wide sources preserve grouped multiple arrays and flat repeat paths. Explicit linked uses linked_sources and retains respondent/repeat matrices with stored business identities; explicit Analysis connection requires an admitted frozen unit id. Optional @response.confidence and @response.completion_seconds freeze collection metrics; absent facts stay unavailable, not zero. Metadata only, no respondent rows. Read survey_authoring_help reporting/raw-datasets before preparing. Requires read and export permissions.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
version_id
integer
no
min 1
acquisition_before
integer
no
min 1
Read the previous page of confirmed acquisition history, using acquisition.next_cursor. Current selection and history are metadata only.
view
string
no
analysis_targets
List eligible combined Analyses of the study, most recently connected first. Requires surveys:write.
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "version_id": {
            "type": "integer",
            "minimum": 1
        },
        "acquisition_before": {
            "type": "integer",
            "minimum": 1,
            "description": "Read the previous page of confirmed acquisition history, using acquisition.next_cursor. Current selection and history are metadata only."
        },
        "view": {
            "type": "string",
            "enum": [
                "analysis_targets"
            ],
            "description": "List eligible combined Analyses of the study, most recently connected first. Requires surveys:write."
        }
    },
    "required": [
        "survey_id"
    ],
    "additionalProperties": false
}
discard_survey_dataset responses:read Free+

Permanently discard only the unpublished preparation table and copied rows after explicit user confirmation, confirm_discard=true. Preserves source surveys and a small idempotency tombstone. Published or referenced results cannot be discarded, including withdrawn results that were previously published.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
version_id
integer
no
min 1
generation_id
string
yes
confirm_discard
boolean
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "version_id": {
            "type": "integer",
            "minimum": 1
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        },
        "confirm_discard": {
            "type": "boolean",
            "const": true
        }
    },
    "required": [
        "survey_id",
        "generation_id",
        "confirm_discard"
    ],
    "additionalProperties": false
}
prepare_survey_dataset responses:read Free+

Freeze the selected responses and fields as a private dataset preparation. Returns a preparation ID and status without charging or returning response rows. Calculate the preparation before requesting any acquisition quote.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
version_id
integer
no
min 1
layout
string
no
wide, linked
Wide keeps existing single-matrix fields. Linked uses linked_sources from context, preserves respondent/repeat units and exports a ZIP; Admitted linked sets support explicit Analysis working-unit selection, without parent joins or child aggregates.
admission_mode
string
no
confirmed_export_only, quoted_admission
request_id
string
yes
name
string
no
min length 1 · max length 200
source_ids
array<string>
yes
items string
At most 512 in wide mode; at most 4096 in linked mode, partitioned into parts of 512 including linkage. Linked requires @response.id, @response.weight and @response.submitted_at.
selection
object
no
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "version_id": {
            "type": "integer",
            "minimum": 1
        },
        "layout": {
            "type": "string",
            "enum": [
                "wide",
                "linked"
            ],
            "default": "wide",
            "description": "Wide keeps existing single-matrix fields. Linked uses linked_sources from context, preserves respondent/repeat units and exports a ZIP; Admitted linked sets support explicit Analysis working-unit selection, without parent joins or child aggregates."
        },
        "admission_mode": {
            "type": "string",
            "enum": [
                "confirmed_export_only",
                "quoted_admission"
            ],
            "default": "confirmed_export_only"
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
        },
        "source_ids": {
            "type": "array",
            "minItems": 1,
            "maxItems": 4096,
            "description": "At most 512 in wide mode; at most 4096 in linked mode, partitioned into parts of 512 including linkage. Linked requires @response.id, @response.weight and @response.submitted_at.",
            "uniqueItems": true,
            "items": {
                "type": "string",
                "maxLength": 500
            }
        },
        "selection": {
            "type": "object",
            "properties": {
                "attempts": {
                    "type": "string",
                    "enum": [
                        "completed",
                        "all",
                        "partials"
                    ],
                    "description": "Whether to export completed responses, partial attempts, or both. Defaults to completed."
                },
                "partial_min_completion_percent": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "Legacy compatibility only. For new selections omit this and include all partials or use one partial_reached_target as a minimum progress point."
                },
                "partial_answered_question": {
                    "type": "string",
                    "description": "Historical actual-answer criterion, distinct from progress. Preserves saved-client semantics: merely reaching does not qualify; explicit NS/NC and numeric zero are answers. Completed responses are unaffected. For new selections prefer partial_reached_target as a minimum progress point or omit both for all partials."
                },
                "partial_reached_target": {
                    "type": "string",
                    "description": "Minimum progress point for partial attempts: a native question code they must have reached or passed, including through conditional skips, without needing to answer or see it. Omit for all partials. Completed responses are not filtered. The author chooses the appropriate cutoff. Historical combinations with answered criteria remain supported."
                },
                "confidence": {
                    "type": "string",
                    "enum": [
                        "all",
                        "trusted",
                        "review",
                        "risky",
                        "unscored",
                        "custom"
                    ],
                    "description": "Completed-response confidence filter: all, trusted (80-100), review (40-79), risky (0-39), unscored, or custom. Partials have no confidence score."
                },
                "confidence_min": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "Inclusive minimum Confidence score. Supplying a threshold with confidence omitted or all selects a custom range."
                },
                "confidence_max": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100,
                    "description": "Inclusive maximum Confidence score. Supplying a threshold with confidence omitted or all selects a custom range."
                },
                "include_screened_out": {
                    "type": "boolean",
                    "description": "Include screened-out terminal responses. Defaults to false so they are not exported or billed accidentally."
                },
                "confidence_bands": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 4,
                    "uniqueItems": true,
                    "items": {
                        "type": "string",
                        "enum": [
                            "trusted",
                            "review",
                            "risky",
                            "unscored"
                        ]
                    },
                    "description": "OR-combined confidence bands. Requires confidence=all or omitted. Custom intervals are exclusive. Existing single-band confidence remains supported."
                },
                "partial_answered_questions": {
                    "type": "array",
                    "maxItems": 50,
                    "uniqueItems": true,
                    "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                    },
                    "description": "Legacy compatibility only. For new selections omit for all partials or use one partial_reached_target as a minimum progress point."
                },
                "partial_questions_operator": {
                    "type": "string",
                    "enum": [
                        "all",
                        "any"
                    ],
                    "default": "all",
                    "description": "AND or OR inside the answered-question set."
                },
                "partial_criteria_operator": {
                    "type": "string",
                    "enum": [
                        "all",
                        "any"
                    ],
                    "default": "all",
                    "description": "AND or OR between the completion threshold and answered-question criterion. Absent criteria do not qualify an OR by themselves. Completed cases still use general confidence/screened criteria."
                }
            },
            "required": [],
            "additionalProperties": false
        }
    },
    "required": [
        "survey_id",
        "request_id",
        "source_ids"
    ],
    "additionalProperties": false
}
calculate_survey_dataset responses:read Free+

Process at most 200 frozen cases and return saved progress, never draft values. Quoted preparations stop at ready until explicit quote/approval/confirmation; already admitted or confirmed_export_only jobs publish when complete. Concurrent/repeated calls cannot duplicate rows. A changed or withdrawn unpaid source fails without publishing. No new billing.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
version_id
integer
no
min 1
generation_id
string
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "version_id": {
            "type": "integer",
            "minimum": 1
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "survey_id",
        "generation_id"
    ],
    "additionalProperties": false
}
get_survey_acquisition_processing responses:read Free+

Read owned durable calculation progress for a processing_id returned by a confirmed shared Survey acquisition. Metadata only, no response values, payment, capture or new approval. queued/processing can be resumed; failed requires review and superseded must not replace the newer source. Historical confirmations without processing_id retain their existing Analysis calculation flow.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
processing_id
string
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "processing_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "survey_id",
        "processing_id"
    ],
    "additionalProperties": false
}
calculate_survey_acquisition responses:read Free+

Resume one bounded batch for an already-confirmed shared Survey acquisition using its unchanged processing_id. Durable and serialized across browser/worker retries; does not authorize or charge additional responses. Returns saved queued/processing/ready/failed/superseded metadata. Uses frozen Analysis revisions; intervening recipe edits require review, never silently recalculate changed definitions. No Report reconnection or continuous activation.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
processing_id
string
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "processing_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "survey_id",
        "processing_id"
    ],
    "additionalProperties": false
}
prepare_survey_acquisition_update responses:read Free+

Prepare an update to the current shared Survey dataset using its saved response criteria and fields. Returns a private preparation to calculate and quote. No charge or replacement of the current dataset. Reuse the same request ID and inputs on retry.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
request_id
string
yes
expected_acquisition_revision_id
string
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "expected_acquisition_revision_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "survey_id",
        "request_id",
        "expected_acquisition_revision_id"
    ],
    "additionalProperties": false
}
get_survey_dataset responses:read Free+

Read saved preparation progress and matrix descriptors/counts. Only published confirmed sources return typed rows: at most 20 for wide, 20 per matrix part for linked. Linked matrices expose unit/parent/path, actual row_count and original respondent versus unit-occurrence weight policy; Admitted linked sets can connect to Analysis by explicitly choosing a frozen unit id. Optional artifact_id reads owned export status only, creating no new file. Only ready exposes download_url after committed S3 upload. Preserves codebooks, precision and states; never returns unconfirmed values or a full cohort.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
version_id
integer
no
min 1
generation_id
string
yes
artifact_id
string
no
Read saved export storage status for this generation instead of matrix rows.
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "version_id": {
            "type": "integer",
            "minimum": 1
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        },
        "artifact_id": {
            "type": "string",
            "format": "uuid",
            "description": "Read saved export storage status for this generation instead of matrix rows."
        }
    },
    "required": [
        "survey_id",
        "generation_id"
    ],
    "additionalProperties": false
}
export_survey_dataset responses:read Free+

Finalize a published confirmed preparation privately as csv, self-describing ndjson or SPSS sav. SAV requires the spss_export plan entitlement, preserves labels, explicit special codes and states, and expands grouped multiples only at the file boundary. Wide returns one file; linked returns a ZIP with one file per matrix/part and manifest.json (dayalogs-linked-dataset v1) with exact pin, fields/codebooks, row counts, linkage and weights. NDJSON preserves grouped multiple arrays. Returns saved artifact status; download_url is null until committed S3 readiness. Poll get_survey_dataset with artifact_id, never create exports merely to poll. Requires same account and read/export scopes; no public/signed URL or inline full dataset. Withdrawal invalidates the entire saved package. No new charge or Analysis connection.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
version_id
integer
no
min 1
generation_id
string
yes
format
string
yes
csv, ndjson, sav
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "version_id": {
            "type": "integer",
            "minimum": 1
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        },
        "format": {
            "type": "string",
            "enum": [
                "csv",
                "ndjson",
                "sav"
            ]
        }
    },
    "required": [
        "survey_id",
        "generation_id",
        "format"
    ],
    "additionalProperties": false
}
quote_survey_dataset_admission responses:read Free+

Save a 15-minute price quote for acquiring one fully prepared Survey dataset. Returns the frozen selection, counts, cost and confirmation token. It does not charge or return response rows. Show the user the exact selection and price before confirmation.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
version_id
integer
no
min 1
generation_id
string
yes
request_id
string
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "version_id": {
            "type": "integer",
            "minimum": 1
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "survey_id",
        "generation_id",
        "request_id"
    ],
    "additionalProperties": false
}
plan_survey_dataset_reconnection responses:read Free+

Check whether the calculated variables and weights from an older Report or saved calculation and weighting revisions can be reused with a prepared Survey dataset. Returns a proposed Analysis recipe if compatible, missing or incompatible fields, and an estimated cost when available. Does not acquire data, charge, or change the Report.

Parameter
Type
Req.
Details
analysis_revision_id
integer
no
min 1 · max 2147483647
weight_revision_id
integer
no
min 1 · max 2147483647
report_id
integer
no
min 1 · max 2147483647
expected_revision_id
integer
no
min 1 · max 2147483647
survey_id
integer
yes
min 1 · max 2147483647
version_id
integer
no
min 1 · max 2147483647
generation_id
string
yes
View input JSON schema
{
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "analysis_revision_id": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
        },
        "weight_revision_id": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
        },
        "report_id": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
        },
        "expected_revision_id": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
        },
        "survey_id": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
        },
        "version_id": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        }
    },
    "required": [
        "survey_id",
        "generation_id"
    ],
    "dependentRequired": {
        "report_id": [
            "expected_revision_id"
        ],
        "expected_revision_id": [
            "report_id"
        ]
    },
    "not": {
        "allOf": [
            {
                "required": [
                    "report_id"
                ]
            },
            {
                "anyOf": [
                    {
                        "required": [
                            "analysis_revision_id"
                        ]
                    },
                    {
                        "required": [
                            "weight_revision_id"
                        ]
                    }
                ]
            }
        ]
    }
}
confirm_survey_dataset_admission responses:read Free+

Acquire one prepared Survey dataset after the user approves the exact quoted sample and price. Uses the quote token and can debit the wallet up to the approved amount. Repeat the same inputs on retry. Queueing after a top-up requires separate approval.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
version_id
integer
no
min 1
generation_id
string
yes
quote_id
string
yes
confirmation_token
string
yes
min length 64 · max length 64
approved_amount_cents
integer
yes
min 0
expected_version_id
integer
yes
min 1
confirm_admission
boolean
yes
wait_for_wallet
boolean
no
Only with explicit human approval to acquire this exact frozen sample automatically after credit arrives. Returns waiting_for_wallet without acquisition or charge when balance is insufficient; unchanged price/sample must still validate on resume.
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "version_id": {
            "type": "integer",
            "minimum": 1
        },
        "generation_id": {
            "type": "string",
            "format": "uuid"
        },
        "quote_id": {
            "type": "string",
            "format": "uuid"
        },
        "confirmation_token": {
            "type": "string",
            "minLength": 64,
            "maxLength": 64
        },
        "approved_amount_cents": {
            "type": "integer",
            "minimum": 0
        },
        "expected_version_id": {
            "type": "integer",
            "minimum": 1
        },
        "confirm_admission": {
            "type": "boolean",
            "const": true
        },
        "wait_for_wallet": {
            "type": "boolean",
            "default": false,
            "description": "Only with explicit human approval to acquire this exact frozen sample automatically after credit arrives. Returns waiting_for_wallet without acquisition or charge when balance is insufficient; unchanged price/sample must still validate on resume."
        }
    },
    "required": [
        "survey_id",
        "generation_id",
        "quote_id",
        "confirmation_token",
        "approved_amount_cents",
        "expected_version_id",
        "confirm_admission"
    ],
    "additionalProperties": false
}
quote_survey_dataset_selection responses:read Free+

Save one price quote for acquiring selected preparations from the same Survey, up to one per version. Returns the frozen selection, the price per version, the total and a confirmation token. Does not charge or return response rows.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
request_id
string
yes
generation_ids
array<string>
yes
items string
shared_acquisition
boolean
no
Opt-in shared Survey acquisition. Requires surveys:write and exactly one linked preparation. Creates the first default Analysis or refreshes compatible connected Analyses; quote impact requires explicit approval. Default false preserves legacy behavior.
combined_analysis
boolean
no
Connect linked preparations of the same study to an Analysis. Requires surveys:write.
analysis_target_id
string
no
With combined_analysis=true, update this eligible Analysis. Omit only when the user wants a new Analysis.
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "request_id": {
            "type": "string",
            "format": "uuid"
        },
        "generation_ids": {
            "type": "array",
            "minItems": 1,
            "maxItems": 20,
            "uniqueItems": true,
            "items": {
                "type": "string",
                "format": "uuid"
            }
        },
        "shared_acquisition": {
            "type": "boolean",
            "description": "Opt-in shared Survey acquisition. Requires surveys:write and exactly one linked preparation. Creates the first default Analysis or refreshes compatible connected Analyses; quote impact requires explicit approval. Default false preserves legacy behavior."
        },
        "combined_analysis": {
            "type": "boolean",
            "description": "Connect linked preparations of the same study to an Analysis. Requires surveys:write."
        },
        "analysis_target_id": {
            "type": "string",
            "format": "uuid",
            "description": "With combined_analysis=true, update this eligible Analysis. Omit only when the user wants a new Analysis."
        }
    },
    "required": [
        "survey_id",
        "request_id",
        "generation_ids"
    ],
    "additionalProperties": false
}
confirm_survey_dataset_selection responses:read Free+

Acquire all datasets in the quoted Survey selection together after the user approves the sample and exact total. Uses the confirmation token and may debit the wallet up to the approved amount. If confirmation fails, no member is acquired. Repeat the same inputs on retry.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
selection_id
string
yes
confirmation_token
string
yes
min length 64 · max length 64
approved_amount_cents
integer
yes
min 0
confirm_admission
boolean
yes
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        },
        "selection_id": {
            "type": "string",
            "format": "uuid"
        },
        "confirmation_token": {
            "type": "string",
            "minLength": 64,
            "maxLength": 64
        },
        "approved_amount_cents": {
            "type": "integer",
            "minimum": 0
        },
        "confirm_admission": {
            "type": "boolean",
            "const": true
        }
    },
    "required": [
        "survey_id",
        "selection_id",
        "confirmation_token",
        "approved_amount_cents",
        "confirm_admission"
    ],
    "additionalProperties": false
}
get_survey_acquisition_automation responses:export Free+

Read shared automatic acquisition state and connected Analysis/Report dependencies for a logical survey_id. For linked studies, study_analyses lists eligible destinations and whether each follows. No Report is required. Metadata only.

Parameter
Type
Req.
Details
survey_id
integer
yes
min 1
View input JSON schema
{
    "type": "object",
    "properties": {
        "survey_id": {
            "type": "integer",
            "minimum": 1
        }
    },
    "required": [
        "survey_id"
    ],
    "additionalProperties": false
}
reset_account_default_logo branding:write Free+

Restore the system default as the account logo. Keeps uploaded logos in the library and preserves explicit header logo selections.

No input parameters.
View input JSON schema
{
    "type": "object",
    "properties": {},
    "required": []
}