The HyperCode Core API is built with FastAPI and follows RESTful principles.
http://localhost:8000/api/v1
Swagger UI is available at: http://localhost:8000/docs
- POST
/tasks/ - Auth: Bearer token required
- Body:
{ "title": "Task Title", "description": "Code content or instruction", "priority": "high", "type": "translate", "project_id": 1 } - Response: Returns the created Task object with ID.
- GET
/tasks/ - Query Params:
skip,limit - Auth: Bearer token required
- POST
/auth/login/access-token - Body:
application/x-www-form-urlencodedwithusername(email) andpassword - Response:
access_token(JWT) andtoken_type
Example:
curl -X POST "http://localhost:8000/api/v1/auth/login/access-token" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data "username=admin@hypercode.ai&password=adminpassword"Most endpoints require a Bearer token in the header:
Authorization: Bearer <your_token>