API Reference
Base URL
Section titled “Base URL”https://qubithub.co/apiAuthentication
Section titled “Authentication”Protected endpoints require either a JWT Bearer token or an API key. See Authentication.
Key endpoints
Section titled “Key endpoints”| Method | Endpoint | Description |
|---|---|---|
POST | /auth/login | Authenticate and receive JWT |
GET | /circuits | List circuits with filters |
GET | /circuits/{id} | Circuit detail |
POST | /circuits | Create a new circuit |
POST | /circuits/{id}/fork | Fork a circuit |
POST | /circuits/{id}/star | Star a circuit |
POST | /runs | Submit a circuit execution run |
GET | /runs | List your runs |
GET | /runs/{id} | Get execution status and results |
DELETE | /runs/{id} | Cancel a run |
GET | /runs/users/me/stats | Your run statistics |
Response format
Section titled “Response format”All responses use JSON. Errors follow a consistent structure:
{ "detail": "Error message here"}