Two Approaches to Triggering Calls
1. API-Based Triggering (Programmatic)
Trigger calls programmatically from your application code. Process:- Create a Contact using
/contact/create - Trigger a call using
/contact/callwith the Contact ID - Receive webhook notifications about call status
- Custom applications
- Direct system integration
- Real-time call triggering
- Fine-grained control
2. Automation-Based Triggering (Recommended)
Use Automations to trigger calls via webhooks. Process:- Set up an Automation with a webhook trigger
- Send webhook POST requests to trigger calls
- Configure workflow logic in the Thoughtly UI
- Team collaboration (non-engineers can modify logic)
- Complex workflows
- No-code/low-code solutions
- Rapid iteration
- Non-technical teams can modify call logic
- No code changes required for workflow updates
- Visual workflow builder for complex scenarios
- Flexible webhook payload for dynamic data
A Note on Naming
In the API, Voice Agents are referred to as interviews (e.g.,/interview/{interview_id}). This is an internal naming convention — “interview” and “Voice Agent” mean the same thing. All dashboard and documentation references use “Voice Agent,” but API paths and response payloads use interview.
Authentication
All API requests require two headers:- Log into Thoughtly Dashboard
- Navigate to Settings → Developer
- Copy your API token and Team ID
Rate Limits
- Limit: 100 requests per minute
- Response:
429 Too Many Requestsif exceeded - Best Practice: Implement exponential backoff for retries
Common Integration Patterns
Pattern 1: CRM-Triggered Calls
When a new lead is added to your CRM, trigger a qualification call:Pattern 2: Calendar-Based Reminders
Send appointment reminders 24 hours before scheduled appointments:Pattern 3: Real-Time Customer Support
Connect voice agent to your support queue:Webhooks: Receiving Call Data
If your goal is to get structured data after a call ends, use an Automation with the Thoughtly -> On Call Completed trigger. It supports scoping to one agent, multiple agents, or All Agents, and keeps the workflow in Thoughtly (no webhook server required). See Triggers.
API Reference
For complete API documentation, see:API Reference
Complete endpoint documentation with examples
Webhooks
Receive real-time notifications about events
Automations
Build workflows without code
Integration Examples
Connect with popular platforms
Best Practices
1. Always Validate Phone Numbers
2. Handle Errors Gracefully
3. Use Environment Variables
4. Implement Logging
Support & Resources
- API Reference: Complete documentation →
- Email: support@thoughtly.com