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
💡 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