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
Target Environment
The environment this thread will run in. Task versions are filtered to those activated in the selected environment.
Defaults to the environment selected in the sidebar. Change the environment to see task versions activated there.
Thread Configuration
💡 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