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.
Start
4 toolsget_started
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.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}get_capabilities
Return Dayalogs API capabilities, granted scopes, reserved contexts, endpoint map and safety workflow guidance such as preview/test/real campaign delivery.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}get_mcp_changes
Return Dayalogs MCP release notes and tool/API changes by version.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}get_mcp_backlog
Return MCP-facing planned backlog items and target versions.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}Authoring
7 toolssurvey_authoring_help
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.
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
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.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}get_survey_interface_texts
Return supported respondent UI locales and the public survey.renderer.* keys that can be overridden with interface_literals.
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
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.
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
Return the live Dayalogs survey theme/style JSON schema contract.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}get_theme_authoring_pack
Return theme/style authoring guidance, schema and examples as structured JSON.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}validate_theme
Validate a Dayalogs survey theme/style config without persisting it.
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 toolslist_surveys
List current surveys in the authenticated account. Archived surveys are excluded by default.
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
Return one current survey definition by slug.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}get_survey_definition
Return the canonical JSON definition for one current survey, with validation/import contract endpoints.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}get_survey_fragment
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.
question, block, survey_header, ending_target, ending_rule, endingsView 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
List all persisted versions for a survey slug.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}get_survey_version
Return a specific persisted survey version and its definition.
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
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.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}get_survey_quality
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.
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
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.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}get_survey_flow
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.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
},
"include_fragments": {
"type": "boolean",
"default": false
}
},
"required": [
"slug"
]
}Survey edit
6 toolsimport_survey
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.
create, updateView 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
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.
full, compactView 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
Force a quality recalculation across all versions or optionally for one concrete version. Replaces stored quality scores, penalties, confidence values and aggregate snapshots.
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
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.
full, compactView 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
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.
start, endView 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
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.
start, endView 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 toolsget_translation_source
Return source-locale literal keys and text for a survey, optionally with an existing target translation for one 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
Return translation status by locale, including missing counts and available target locales.
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
Validate a complete locale translation map without saving it.
replace, mergeView 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
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.
replace, mergeView 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 toolsget_preview_url
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.
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
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.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}update_survey_design
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.
inherit, custom, disabledleft, center, rightleft, center, rightinherit, override, disabledinherit, override, disabledView 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
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.
left, center, rightleft, center, rightView 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
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.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}Publishing
4 toolsgo_live_survey
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.
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
Stop response collection for the current survey version. Existing links remain configured, but respondent entry shows a friendly unavailable page.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}archive_survey
Archive a logical survey and stop collection while retaining versions, responses, links, campaigns, reviews and history.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}restore_survey
Restore an archived logical survey. Collection remains stopped until it is explicitly started again.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}Reporting
72 toolsget_report_schema
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.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}get_report_theme_schema
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.
View input JSON schema
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}list_report_themes
List shipped themes and immutable account-owned Report theme versions, 50 per page. Use before=next_cursor for older saved versions. Metadata only.
View input JSON schema
{
"type": "object",
"properties": {
"before": {
"type": "integer",
"minimum": 1
}
},
"required": [],
"additionalProperties": false
}get_report_theme
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.
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
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.
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
Read the schema for survey-local, row-only analysis columns. Formula semantics and examples are documented under reporting/derived-variables in survey_authoring_help.
View input JSON schema
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}list_analysis_projects
List owned projects, 50 per page, with optional owned UUID after cursor. Metadata only. Read reporting/analysis-projects help.
View input JSON schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"after": {
"type": "string",
"format": "uuid"
}
},
"required": []
}create_analysis_project
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.
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
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.
summary, fields, choices, fullapplied, draftView 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
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.
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
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.
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
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.
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
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.
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
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.
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
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.
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
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.
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
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.
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
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.
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
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.
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
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.
create, updateView 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
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.
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
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.
draft, appliedcsv, csv_zip, xlsx, ndjson, savView 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
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.
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
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.
begin, append, validate, confirmanalysis, reportView 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
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.
View input JSON schema
{
"type": "object",
"properties": {
"survey_id": {
"type": "integer",
"minimum": 1
}
},
"required": [
"survey_id"
],
"additionalProperties": false
}validate_derived_variables
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.
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
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.
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
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.
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
Read the bounded schema for row-local conditional weights. Read reporting/weighting in survey_authoring_help.
View input JSON schema
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}calculate_derived_variables
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.
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
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.
View input JSON schema
{
"type": "object",
"properties": {
"survey_id": {
"type": "integer",
"minimum": 1
}
},
"required": [
"survey_id"
],
"additionalProperties": false
}validate_weighting
Validate ordered positive conditional weights and a default weight. First matching rule wins; no writes or original answer changes.
View input JSON schema
{
"type": "object",
"properties": {
"survey_id": {
"type": "integer",
"minimum": 1
},
"definition": {
"type": "object"
}
},
"required": [
"survey_id",
"definition"
],
"additionalProperties": false
}preview_weighting
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.
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
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.
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
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.
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
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.
status, estimate, requestView 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
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.
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
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.
View input JSON schema
{
"type": "object",
"properties": {
"survey_id": {
"type": "integer",
"minimum": 1
}
},
"required": [
"survey_id"
],
"additionalProperties": false
}set_report_continuous_lifecycle
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.
pause, stopView 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
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.
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
Validate a report definition against its survey metadata, chart constraints and owned images without saving it. A valid result does not publish the report.
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
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.
create, updateView 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
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.
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
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.
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
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.
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
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.
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
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.
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
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.
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
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.
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
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.
View input JSON schema
{
"type": "object",
"properties": {
"report_id": {
"type": "integer",
"minimum": 1
}
},
"required": [
"report_id"
],
"additionalProperties": false
}create_report_share_link
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.
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
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.
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
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.
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
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.
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
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.
account, reportView 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
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.
account, reportView 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
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.
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
After explicit approval, stop automatic acquisition and cancel the unused allowance. This releases protected Analysis paths and preserves acquired data and Survey collection.
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
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.
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
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.
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
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.
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
Capture one bounded batch for the prepared backlog generation. Returns saved progress without acquiring responses or charging the wallet.
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
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.
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
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.
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
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.
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
After explicit approval, stop automatic acquisition and cancel the unused allowance. This releases protected Analysis paths and preserves acquired data and Survey collection.
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
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.
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
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.
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
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.
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
Capture one bounded batch for the prepared backlog generation. Returns saved progress without acquiring responses or charging the wallet.
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
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.
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
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.
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 toolslist_survey_quotas
List survey-level quotas plus read-only link and link set quota summaries and condition source metadata.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}create_survey_quota
Create a survey-level quota with label, limit, optional count, active flag and Dayalogs condition JSON.
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
Update a survey-level quota label, limit, count, active flag or condition.
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
Delete a survey-level quota. Link and link set quotas are managed through link and link set tools.
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
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.
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 toolslist_survey_responses
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.
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
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.
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
Delete one completed survey response from the current account. Use carefully; this mirrors the admin delete action.
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
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.
json, ndjson, csv, xlsx, sav, csv_zipcompleted, all, partialsall, trusted, review, risky, unscored, customcode, aliasView 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 toolsget_audience_summary
Return account audience counts, top tags, saved segment summaries and recent imports.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}list_audience_contacts
Search and paginate contacts in the current account, optionally filtering by all provided tag slugs or names.
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
Return one contact with tags, extra JSON, account-level data and survey-scoped data.
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
Create a JSON-first audience import session. The caller should transform Excel, CRM, Word or copied lists into normalized contact JSON before appending chunks.
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
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.
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
Return import status, counters, processed chunks, warnings/errors and metadata for an audience import session.
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
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.
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 toolslist_tags
List global account tags and current contact assignment counts.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}suggest_tags
Autocomplete existing global account tags by name or slug.
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
Create a global account tag that can be used by audiences now and other resource types later.
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
Update a global account tag name or slug. Overwrites the existing name or slug without retaining the prior value on this record.
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
Delete a global account tag. If assigned to contacts, pass detach=true to remove 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 toolslist_audience_segments
List saved audience segments with normalized query criteria.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}count_audience_segment
Normalize an audience segment criteria JSON object and return the matching contact count plus a small sample.
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
Create a saved audience segment from a normalized criteria JSON object and return the calculated contact count.
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
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.
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
Delete a saved audience segment. Contacts are not deleted.
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
List detected JSON paths for contact extra, contact data, or survey-scoped contact data to help build segment rules.
extra, data, survey_dataView 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
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.
field, extra, data, survey_dataView 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"
]
}Links
13 toolslist_survey_links
List respondent access links for a survey, including URLs, status, progress state, quotas, variables, contact and link set metadata.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}create_survey_link
Create a real respondent access link for a survey. This is not a preview link; use get_preview_url for user review. Requires confirm_real_link=true after the user explicitly asks for a respondent link.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
},
"label": {
"type": "string",
"description": "Display label. Optional on create; defaults to the contact display name or \"Single link\"."
},
"name": {
"type": "string",
"description": "Alias for label."
},
"contact_id": {
"type": "integer",
"description": "Optional contact id. If present, Dayalogs creates a personalized link."
},
"email": {
"type": "string",
"description": "Optional email metadata for anonymous single links."
},
"tag_id": {
"type": "integer",
"description": "Optional source tag id for personalized single links."
},
"tag_slug": {
"type": "string",
"description": "Optional source tag slug for personalized single links."
},
"source_tag_id": {
"type": "integer",
"description": "Alias for tag_id."
},
"source_tag_slug": {
"type": "string",
"description": "Alias for tag_slug."
},
"single_response": {
"type": "boolean",
"description": "For personalized links, one response per link with server-side resume. Defaults to true for multi-link link sets and false for single-link link sets."
},
"cookie_protection": {
"type": "boolean",
"description": "Anonymous single-link soft duplicate guard. Ignored for personalized multi-link link sets."
},
"inactivity_timeout_seconds": {
"type": [
"integer",
"null"
],
"minimum": 30,
"description": "Kiosk/shared-device mode: seconds of inactivity before the current attempt is saved as a partial and the survey restarts for the next respondent, with a visible countdown warning first. Use for tablets at counters or event kiosks. Minimum 30. Only applies to anonymous multi-response links without cookie_protection; ignored elsewhere. Null disables it."
},
"embedded_variables": {
"type": "object",
"description": "Server-side variables stored with response metadata and never exposed in the URL."
},
"variables": {
"type": "object",
"description": "Alias for embedded_variables."
},
"url_variables": {
"type": "object",
"description": "Static query parameters appended to generated URLs; visible and modifiable by respondents."
},
"url_params": {
"type": "object",
"description": "Alias for url_variables."
},
"quota": {
"type": [
"integer",
"null"
],
"description": "Quota threshold. For multi-link link sets, only applies when single_response is false."
},
"limit": {
"type": [
"integer",
"null"
],
"description": "Alias for quota."
},
"quota_count": {
"type": "integer",
"description": "Current accepted count. Usually edited after fieldwork starts."
},
"count": {
"type": "integer",
"description": "Alias for quota_count."
},
"clear_quota": {
"type": "boolean",
"description": "Remove the quota threshold where quotas are editable."
},
"open_at": {
"type": [
"string",
"null"
],
"description": "Optional ISO-8601 activation datetime."
},
"open_date": {
"type": [
"string",
"null"
],
"description": "Alias for open_at."
},
"close_at": {
"type": [
"string",
"null"
],
"description": "Optional ISO-8601 deactivation datetime."
},
"close_date": {
"type": [
"string",
"null"
],
"description": "Alias for close_at."
},
"confirm_real_link": {
"type": "boolean",
"description": "Must be true to create a real respondent access link. Use get_preview_url instead for user review links."
}
},
"required": [
"slug"
]
}update_survey_link
Update a single link label, active date window, or link-level quota when the quota is editable. Can overwrite date windows, quota and quota_count settings and restrict previously available respondent access. Does not send invitations.
View input JSON schema
{
"type": "object",
"properties": {
"link_id": {
"type": "integer",
"description": "Survey link id."
},
"id": {
"type": "integer",
"description": "Alias for link_id."
},
"slug": {
"type": "string",
"description": "Survey slug."
},
"label": {
"type": "string",
"description": "Display label. Optional on create; defaults to the contact display name or \"Single link\"."
},
"name": {
"type": "string",
"description": "Alias for label."
},
"contact_id": {
"type": "integer",
"description": "Optional contact id. If present, Dayalogs creates a personalized link."
},
"email": {
"type": "string",
"description": "Optional email metadata for anonymous single links."
},
"tag_id": {
"type": "integer",
"description": "Optional source tag id for personalized single links."
},
"tag_slug": {
"type": "string",
"description": "Optional source tag slug for personalized single links."
},
"source_tag_id": {
"type": "integer",
"description": "Alias for tag_id."
},
"source_tag_slug": {
"type": "string",
"description": "Alias for tag_slug."
},
"single_response": {
"type": "boolean",
"description": "For personalized links, one response per link with server-side resume. Defaults to true for multi-link link sets and false for single-link link sets."
},
"cookie_protection": {
"type": "boolean",
"description": "Anonymous single-link soft duplicate guard. Ignored for personalized multi-link link sets."
},
"inactivity_timeout_seconds": {
"type": [
"integer",
"null"
],
"minimum": 30,
"description": "Kiosk/shared-device mode: seconds of inactivity before the current attempt is saved as a partial and the survey restarts for the next respondent, with a visible countdown warning first. Use for tablets at counters or event kiosks. Minimum 30. Only applies to anonymous multi-response links without cookie_protection; ignored elsewhere. Null disables it."
},
"embedded_variables": {
"type": "object",
"description": "Server-side variables stored with response metadata and never exposed in the URL."
},
"variables": {
"type": "object",
"description": "Alias for embedded_variables."
},
"url_variables": {
"type": "object",
"description": "Static query parameters appended to generated URLs; visible and modifiable by respondents."
},
"url_params": {
"type": "object",
"description": "Alias for url_variables."
},
"quota": {
"type": [
"integer",
"null"
],
"description": "Quota threshold. For multi-link link sets, only applies when single_response is false."
},
"limit": {
"type": [
"integer",
"null"
],
"description": "Alias for quota."
},
"quota_count": {
"type": "integer",
"description": "Current accepted count. Usually edited after fieldwork starts."
},
"count": {
"type": "integer",
"description": "Alias for quota_count."
},
"clear_quota": {
"type": "boolean",
"description": "Remove the quota threshold where quotas are editable."
},
"open_at": {
"type": [
"string",
"null"
],
"description": "Optional ISO-8601 activation datetime."
},
"open_date": {
"type": [
"string",
"null"
],
"description": "Alias for open_at."
},
"close_at": {
"type": [
"string",
"null"
],
"description": "Optional ISO-8601 deactivation datetime."
},
"close_date": {
"type": [
"string",
"null"
],
"description": "Alias for close_at."
}
},
"required": [
"slug",
"link_id"
]
}delete_survey_link
Delete a link. Dayalogs hard-deletes unused links and soft-deletes links that already have responses, sessions or progress.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
},
"link_id": {
"type": "integer",
"description": "Survey link id."
},
"id": {
"type": "integer",
"description": "Alias for link_id."
}
},
"required": [
"slug",
"link_id"
]
}activate_survey_link
Manually activate a respondent access link.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
},
"link_id": {
"type": "integer",
"description": "Survey link id."
},
"id": {
"type": "integer",
"description": "Alias for link_id."
}
},
"required": [
"slug",
"link_id"
]
}deactivate_survey_link
Manually deactivate a respondent access link.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
},
"link_id": {
"type": "integer",
"description": "Survey link id."
},
"id": {
"type": "integer",
"description": "Alias for link_id."
}
},
"required": [
"slug",
"link_id"
]
}list_survey_link_sets
List survey link sets with quota mode, source tag/segment and link counts.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}create_survey_link_set
Create a fresh multi-link link set from a tag, saved segment, or explicit contact_ids. Existing links are never reused.
tag, segment, contactsper_link, globalView input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
},
"label": {
"type": "string",
"description": "Link set display name. Required on create."
},
"name": {
"type": "string",
"description": "Alias for label."
},
"source_type": {
"type": "string",
"enum": [
"tag",
"segment",
"contacts"
],
"description": "Create source. On create, Dayalogs can infer this from tag_id/tag_slug, segment_id/segment_slug or contact_ids."
},
"source": {
"type": "string",
"description": "Alias for source_type."
},
"tag_id": {
"type": "integer",
"description": "Source tag id."
},
"tag_slug": {
"type": "string",
"description": "Source tag slug."
},
"source_tag_id": {
"type": "integer",
"description": "Alias for tag_id."
},
"source_tag_slug": {
"type": "string",
"description": "Alias for tag_slug."
},
"segment_id": {
"type": "integer",
"description": "Source audience segment id."
},
"segment_slug": {
"type": "string",
"description": "Source audience segment slug."
},
"source_segment_id": {
"type": "integer",
"description": "Alias for segment_id."
},
"source_segment_slug": {
"type": "string",
"description": "Alias for segment_slug."
},
"contact_ids": {
"type": "array",
"description": "Explicit contact ids for source_type contacts.",
"items": {
"type": "integer"
}
},
"contacts": {
"type": "array",
"description": "Alias for contact_ids. Can be integers or objects with id/contact_id.",
"items": {
"type": [
"integer",
"object"
]
}
},
"quota_scope": {
"type": "string",
"enum": [
"per_link",
"global"
],
"description": "Quota mode for multi-link link sets. Defaults to per_link."
},
"quota_mode": {
"type": "string",
"description": "Alias for quota_scope."
},
"overwrite_calendar_overrides": {
"type": "boolean",
"description": "On update, apply date changes to links with custom date overrides too."
},
"overwrite_quota_overrides": {
"type": "boolean",
"description": "On update, apply per-link quota changes to links with custom quota overrides too."
},
"single_response": {
"type": "boolean",
"description": "For personalized links, one response per link with server-side resume. Defaults to true for multi-link link sets and false for single-link link sets."
},
"cookie_protection": {
"type": "boolean",
"description": "Anonymous single-link soft duplicate guard. Ignored for personalized multi-link link sets."
},
"inactivity_timeout_seconds": {
"type": [
"integer",
"null"
],
"minimum": 30,
"description": "Kiosk/shared-device mode: seconds of inactivity before the current attempt is saved as a partial and the survey restarts for the next respondent, with a visible countdown warning first. Use for tablets at counters or event kiosks. Minimum 30. Only applies to anonymous multi-response links without cookie_protection; ignored elsewhere. Null disables it."
},
"embedded_variables": {
"type": "object",
"description": "Server-side variables stored with response metadata and never exposed in the URL."
},
"variables": {
"type": "object",
"description": "Alias for embedded_variables."
},
"url_variables": {
"type": "object",
"description": "Static query parameters appended to generated URLs; visible and modifiable by respondents."
},
"url_params": {
"type": "object",
"description": "Alias for url_variables."
},
"quota": {
"type": [
"integer",
"null"
],
"description": "Quota threshold. For multi-link link sets, only applies when single_response is false."
},
"limit": {
"type": [
"integer",
"null"
],
"description": "Alias for quota."
},
"quota_count": {
"type": "integer",
"description": "Current accepted count. Usually edited after fieldwork starts."
},
"count": {
"type": "integer",
"description": "Alias for quota_count."
},
"clear_quota": {
"type": "boolean",
"description": "Remove the quota threshold where quotas are editable."
},
"open_at": {
"type": [
"string",
"null"
],
"description": "Optional ISO-8601 activation datetime."
},
"open_date": {
"type": [
"string",
"null"
],
"description": "Alias for open_at."
},
"close_at": {
"type": [
"string",
"null"
],
"description": "Optional ISO-8601 deactivation datetime."
},
"close_date": {
"type": [
"string",
"null"
],
"description": "Alias for close_at."
}
},
"required": [
"slug",
"label"
]
}update_survey_link_set
Update a link set label, link date window, quota mode and bulk quota/calendar overrides where applicable.
tag, segment, contactsper_link, globalView input JSON schema
{
"type": "object",
"properties": {
"link_set_id": {
"type": "integer",
"description": "Survey link set id."
},
"id": {
"type": "integer",
"description": "Alias for link_set_id."
},
"slug": {
"type": "string",
"description": "Survey slug."
},
"label": {
"type": "string",
"description": "Link set display name. Required on create."
},
"name": {
"type": "string",
"description": "Alias for label."
},
"source_type": {
"type": "string",
"enum": [
"tag",
"segment",
"contacts"
],
"description": "Create source. On create, Dayalogs can infer this from tag_id/tag_slug, segment_id/segment_slug or contact_ids."
},
"source": {
"type": "string",
"description": "Alias for source_type."
},
"tag_id": {
"type": "integer",
"description": "Source tag id."
},
"tag_slug": {
"type": "string",
"description": "Source tag slug."
},
"source_tag_id": {
"type": "integer",
"description": "Alias for tag_id."
},
"source_tag_slug": {
"type": "string",
"description": "Alias for tag_slug."
},
"segment_id": {
"type": "integer",
"description": "Source audience segment id."
},
"segment_slug": {
"type": "string",
"description": "Source audience segment slug."
},
"source_segment_id": {
"type": "integer",
"description": "Alias for segment_id."
},
"source_segment_slug": {
"type": "string",
"description": "Alias for segment_slug."
},
"contact_ids": {
"type": "array",
"description": "Explicit contact ids for source_type contacts.",
"items": {
"type": "integer"
}
},
"contacts": {
"type": "array",
"description": "Alias for contact_ids. Can be integers or objects with id/contact_id.",
"items": {
"type": [
"integer",
"object"
]
}
},
"quota_scope": {
"type": "string",
"enum": [
"per_link",
"global"
],
"description": "Quota mode for multi-link link sets. Defaults to per_link."
},
"quota_mode": {
"type": "string",
"description": "Alias for quota_scope."
},
"overwrite_calendar_overrides": {
"type": "boolean",
"description": "On update, apply date changes to links with custom date overrides too."
},
"overwrite_quota_overrides": {
"type": "boolean",
"description": "On update, apply per-link quota changes to links with custom quota overrides too."
},
"single_response": {
"type": "boolean",
"description": "For personalized links, one response per link with server-side resume. Defaults to true for multi-link link sets and false for single-link link sets."
},
"cookie_protection": {
"type": "boolean",
"description": "Anonymous single-link soft duplicate guard. Ignored for personalized multi-link link sets."
},
"inactivity_timeout_seconds": {
"type": [
"integer",
"null"
],
"minimum": 30,
"description": "Kiosk/shared-device mode: seconds of inactivity before the current attempt is saved as a partial and the survey restarts for the next respondent, with a visible countdown warning first. Use for tablets at counters or event kiosks. Minimum 30. Only applies to anonymous multi-response links without cookie_protection; ignored elsewhere. Null disables it."
},
"embedded_variables": {
"type": "object",
"description": "Server-side variables stored with response metadata and never exposed in the URL."
},
"variables": {
"type": "object",
"description": "Alias for embedded_variables."
},
"url_variables": {
"type": "object",
"description": "Static query parameters appended to generated URLs; visible and modifiable by respondents."
},
"url_params": {
"type": "object",
"description": "Alias for url_variables."
},
"quota": {
"type": [
"integer",
"null"
],
"description": "Quota threshold. For multi-link link sets, only applies when single_response is false."
},
"limit": {
"type": [
"integer",
"null"
],
"description": "Alias for quota."
},
"quota_count": {
"type": "integer",
"description": "Current accepted count. Usually edited after fieldwork starts."
},
"count": {
"type": "integer",
"description": "Alias for quota_count."
},
"clear_quota": {
"type": "boolean",
"description": "Remove the quota threshold where quotas are editable."
},
"open_at": {
"type": [
"string",
"null"
],
"description": "Optional ISO-8601 activation datetime."
},
"open_date": {
"type": [
"string",
"null"
],
"description": "Alias for open_at."
},
"close_at": {
"type": [
"string",
"null"
],
"description": "Optional ISO-8601 deactivation datetime."
},
"close_date": {
"type": [
"string",
"null"
],
"description": "Alias for close_at."
}
},
"required": [
"slug",
"link_set_id"
]
}delete_survey_link_set
Delete a link set. Dayalogs hard-deletes unused link sets and soft-deletes link sets with retained activity.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
},
"link_set_id": {
"type": "integer",
"description": "Survey link set id."
},
"id": {
"type": "integer",
"description": "Alias for link_set_id."
}
},
"required": [
"slug",
"link_set_id"
]
}activate_survey_link_set
Manually activate a link set.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
},
"link_set_id": {
"type": "integer",
"description": "Survey link set id."
},
"id": {
"type": "integer",
"description": "Alias for link_set_id."
}
},
"required": [
"slug",
"link_set_id"
]
}deactivate_survey_link_set
Manually deactivate a link set.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
},
"link_set_id": {
"type": "integer",
"description": "Survey link set id."
},
"id": {
"type": "integer",
"description": "Alias for link_set_id."
}
},
"required": [
"slug",
"link_set_id"
]
}export_survey_link_set
Export links from a link set as structured JSON, CSV or XLSX content.
json, csv, xlsxView input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
},
"link_set_id": {
"type": "integer",
"description": "Survey link set id."
},
"id": {
"type": "integer",
"description": "Alias for link_set_id."
},
"format": {
"type": "string",
"enum": [
"json",
"csv",
"xlsx"
],
"description": "Export format. Defaults to json."
}
},
"required": [
"slug",
"link_set_id"
]
}Embeds
5 toolslist_survey_embeds
List website embed placements for a survey, including generated one-tag loader snippets, allowed origins, lifecycle settings and compatibility warnings.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}get_survey_embed_compatibility
Check whether the current survey version is suitable for responsive embedded viewports. Warnings are advisory and do not block creating an embed.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}create_survey_embed
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.
draft, active, revokedView 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
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.
draft, active, revokedView 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
Revoke a website embed placement. Existing survey responses are retained, but the public embed identifier can no longer launch the survey.
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 toolsget_survey_distribution_summary
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.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string"
}
},
"required": [
"slug"
]
}list_survey_campaigns
List email campaigns for a survey, optionally including 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
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.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}get_survey_campaign
Return one survey email campaign, optionally including recipients and their link status.
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
List recent provider delivery events for one survey campaign, including delivery, bounce, complaint, reject and delay events.
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
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.
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
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.
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
Read the current versioned mapping contract for a continuous campaign. Required event fields are derived from the survey and message.
View input JSON schema
{
"type": "object",
"properties": {
"campaign_id": {
"type": "integer"
}
},
"required": [
"campaign_id"
]
}set_continuous_survey_campaign_status
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.
active, paused, closedView 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
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.
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
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.
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
Update a saved campaign draft without sending email. After real send activity, only the campaign name can be changed.
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
Clone a survey email campaign as a new draft campaign.
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
Delete an unsent campaign or archive it when it already has send activity.
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
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.
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
Restore an archived survey email campaign.
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
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.
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
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.
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
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.
auto, warmup, remaining, failedView 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 toolspreview_analysis_source_policy
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.
following, fixedView 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
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.
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
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.
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
List active survey preview-review rounds where the authorized MCP user is a reviewer, including each personal review URL.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}list_review_rounds
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.
View input JSON schema
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Survey slug."
}
},
"required": [
"slug"
]
}create_review_round
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.
collaborative, privateca, es, enmanual, all_reviewed, date, date_or_allView 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
Get one preview-review round, including participants and comments. Personal invitation URLs are omitted when managing another user’s personal round.
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
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.
collaborative, privateca, es, enmanual, all_reviewed, date, date_or_allView 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
List structured comments and replies for one preview-review round.
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
Add a participant to an open preview-review round. This returns the personal review URL but does not send an email.
comment, decisionView 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
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.
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
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.
approved, rejectedapproved, rejectedView 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
Send the review invitation email for one existing review participant.
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
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.
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
Export one preview-review round as structured JSON with participants, comments and target positions.
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 toolsget_account_branding
Return account branding: reusable logos, default logo, block header and current revision for immediate edits.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}update_account_branding
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.
left, center, rightleft, center, rightView 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
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.
left, center, rightleft, center, rightView 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
List base and custom styles available in the authenticated account.
View input JSON schema
{
"type": "object",
"properties": {
"include_css": {
"type": "boolean",
"description": "Include full CSS in the response. Defaults to false."
}
},
"required": []
}get_style
Return one custom style by id, optionally including generated CSS.
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
Create a custom respondent-facing style from a style config, CSS or generator answers.
draft, readyView 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
Import and persist a validated style config or scoped CSS as a custom draft style.
draft, readyView 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
Clone a locked base style into an editable custom style.
draft, readyView 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
Update custom style metadata, status, config or scoped CSS. Overwrites previous custom style content and configuration; locked base styles remain protected.
draft, readyView 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
Duplicate an existing custom style under a new name and optional updated config, CSS or status.
draft, readyView 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 toolslist_audit_events
List the authenticated organization’s immutable business audit events. Optionally filter by document type and id.
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 toolsget_tool_result_page
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.
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
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.
following, fixedView 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
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.
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
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.
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
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.
distribution, numeric_summary, moderow, column, totalView 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
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.
analysis_targetsView 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
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.
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
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.
wide, linkedconfirmed_export_only, quoted_admissionView 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
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.
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
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.
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
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.
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
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.
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
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.
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
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.
csv, ndjson, savView 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
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.
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
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.
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
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.
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
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.
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
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.
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
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.
View input JSON schema
{
"type": "object",
"properties": {
"survey_id": {
"type": "integer",
"minimum": 1
}
},
"required": [
"survey_id"
],
"additionalProperties": false
}reset_account_default_logo
Restore the system default as the account logo. Keeps uploaded logos in the library and preserves explicit header logo selections.
View input JSON schema
{
"type": "object",
"properties": {},
"required": []
}