Support
Need help with the Travelmode API? Here's how to get assistance.
Documentation
- API Overview - Start here
- Authentication - API key setup
- Error Handling - Troubleshooting errors
- Best Practices - Tips for success
Common Issues
"401 Unauthorized"
Possible causes:
- Missing Authorization header
- Invalid or expired API key
- Revoked API key
Solutions:
- Verify your API key is correct
- Check the Authorization header format:
Bearer tm_your_key - Generate a new key from the Developer Portal
"429 Too Many Requests"
Cause: Rate limit exceeded
Solution: Wait for the Retry-After header duration, then retry with exponential backoff.
"409 Conflict"
Cause: Revision mismatch in v1 API operations
Solution: Fetch the latest itinerary, get the current revision, and retry your operation.
Events Not Appearing
Possible causes:
- Event created on wrong trip
- Missing required fields
- Validation errors
Solutions:
- Verify the tripId in your request
- Check all required fields are included
- Review the API response for error details
Debugging Tips
Check Your Request
curl -v "https://travelmode2.replit.app/api/trips" \
-H "Authorization: Bearer tm_your_key"
The -v flag shows full request/response details.
Validate JSON
Ensure your request body is valid JSON:
echo '{"name": "Test"}' | jq .
Check Rate Limit Headers
curl -i "https://travelmode2.replit.app/api/trips" \
-H "Authorization: Bearer tm_your_key" | grep X-RateLimit
Health Status
Check API availability:
curl "https://travelmode2.replit.app/api/health"
Contact
For additional support, reach out through the Developer Portal.