API Reference
The interactive API reference is temporarily unavailable. Please refer to the comprehensive documentation in the guides section.
Alternative API Documentation
You can access the API documentation through:
- FastAPI Interactive Docs: https://api.twyn.it/docs
- OpenAPI JSON: https://api.twyn.it/openapi.json
- Development Docs: http://localhost:8000/docs (when running locally)
V1 API Endpoints
Simulations
POST /v1/simulations- Create a new simulationGET /v1/simulations/{id}- Get simulation statusGET /v1/simulations/{id}/results- Get complete resultsGET /v1/simulations- List simulations with filters
API Keys
POST /v1/keys- Create a new API keyGET /v1/keys- List your API keysGET /v1/keys/{key_id}- Get key detailsPATCH /v1/keys/{key_id}- Update a keyDELETE /v1/keys/{key_id}- Delete a key
Scenarios
POST /v1/scenarios- Create a scenarioGET /v1/scenarios- List scenariosGET /v1/scenarios/{id}- Get scenario detailsPUT /v1/scenarios/{id}- Update scenarioDELETE /v1/scenarios/{id}- Delete scenario
Configuration
GET /v1/simulations/{id}/config- Get simulation configPUT /v1/simulations/{id}/config- Update configPOST /v1/simulations/{id}/architect- Re-run architectPOST /v1/simulations/with-config- Create with custom config
For Complete Documentation
See the Getting Started guide for complete examples and detailed information.