https://api.toughtongueai.com/api/public
All requests require Bearer token authentication.
Authentication
Core Workflows
1. Create Scenario
2. Create Session
3. Analyze Session
Backend Proxy Example
- Node.js
- Python
Endpoint Reference
Scenarios
Sessions
Utilities
Error Codes
Error format:
Best Practices
- Cache scenarios — they rarely change
- Poll or use callbacks — check session completion via iframe events or polling
- Retry with backoff — handle transient failures
- Log errors — monitor API health