Skip to main content

API Conventions

Success Response

All /v1/... endpoints wrap data in { "data": T }:

{
"data": { ... }
}

GET /health returns a flat object (no wrapper).

Error Response

{
"code": "1002",
"message": "Unauthorized."
}

Error Codes

CodeMeaning
1000Invalid request
1001Internal server error
1002Unauthorized
2000Template not found
2002Subject not found
2003System not found

HTTP Status Codes

StatusMeaning
200Success (GET)
201Created (POST)
400Bad request
401Unauthorized
404Not found
500Server error