API Reference
The Trace API allows programmatic access to AI-powered PCB design capabilities.
Base URL
https://api.buildwithtrace.com/api/v1/Interactive Documentation
Explore the full API with interactive documentation:
Swagger UIInteractive API explorer with try-it-out functionality
ReDocClean, readable API documentation
OpenAPI SpecRaw JSON schema for code generation
Authentication
All API requests require authentication via Bearer token. See the Authentication guide for details on obtaining tokens.
Authorization: Bearer YOUR_API_TOKENAvailable Endpoints
The API provides 50+ endpoints across these categories:
- Auth — Login, signup, OAuth (Google, GitHub), password reset
- Chat — AI-powered chat streaming for circuit design
- Schematic — Version control for schematic files
- PCB — Autorouting and layout operations
- Downloads — App version management and download stats
- Payments — Stripe integration for subscriptions
- Admin — Platform analytics and user management
Quick Example
# Check API status
curl https://api.buildwithtrace.com/api/v1/
# Verify authentication
curl https://api.buildwithtrace.com/api/v1/auth/verify \
-H "Authorization: Bearer YOUR_TOKEN"