Skip to Content
trumpetdocs

API endpoint

Start a workflow from an authenticated API request with workflow-defined input fields.

Purpose

Start a custom externally initiated workflow using explicitly declared request fields.

Run requires

  • active workflow with enrollment configured
  • authorized brand API key and workflow endpoint

Conditions

  • Default: Use declared request fields directly without existence conditions.
  • Already handled: Authentication and declared required input types/values are validated before dispatch.
  • Use a condition when: The user requests routing by supplied payload values or explicitly skipping a missing optional field.
  • Failure behavior: Invalid required payloads are rejected before a run starts. Mapping an absent optional field normally fails at runtime; a condition cannot recover that absent mapping.

Guidance

  • Declared required inputs are validated before dispatch and need no additional existence conditional. Optional keys may be absent; declaring a key optional does not make a mapping to an absent key safe.
  • Declare caller-supplied fields in trigger.inputs, outside trigger.config, using the saved trigger input declaration shape in the shared instructions. Each request data value must satisfy its declaration.
  • Preserve compatible existing declarations and recheck downstream mappings when inputs change. Declare only fields the caller is expected to send; adding a declaration does not supply runtime data or configure the caller.
  • The catalog has no fixed output fields for this trigger: the workflow's declared inputs become trigger.data.<key>. Do not assume a transcript, CRM deal, or amount exists; nested fields of opaque maps are not offered by the editor picker.