Threads Create Thread

Create New Thread

Configure and execute a new task thread

About Thread Creation

Threads represent task execution instances. Choose async mode for long-running tasks (returns immediately) or sync mode to wait for completion. Your configured user_id and app_id will be automatically included in the metadata.

API Headers

Authentication and filtering headers (auto-populated from Settings)

Required for API authentication

Optional user identifier for filtering

Optional application identifier for filtering

Thread Configuration

Async: Returns immediately with 202 Accepted. Use for long-running tasks.
Sync: Waits for task completion and returns 201 Created. Use for quick tasks.

Input Artifacts *

At least one input artifact is required. Available types are determined by the task configuration.

Artifact #1

Stable reference name (unique within thread)

Task Parameters (Optional)

Optional task-specific parameters as valid JSON. These are passed directly to your task function.

Metadata (Optional)

Optional additional metadata as valid JSON. The user_id and app_id from your settings will be automatically added to the metadata.

Cancel

💡 Tips

  • Use async mode for tasks that take more than a few seconds
  • At least one input artifact is required - add text, JSON, or URL inputs
  • Use params for task-specific configuration (model settings, thresholds, etc.)
  • Add custom metadata to organize and filter threads
  • Set a timeout to prevent threads from running indefinitely
  • Use idempotency keys to prevent accidental duplicate submissions
  • Configure webhooks to receive real-time notifications about thread state changes