Back to home
API Reference
RESTful API for the ProphecAI platform
Base URL
https://propechai.tech/apiAuthentication
Protected endpoints require a Bearer token in the Authorization header:Authorization: Bearer <your_jwt_token>
Rate limit: 100 requests/minute per user
POST
/api/auth/registerCreate a new user account.
Request Body
{ "email": "string", "password": "string", "display_name": "string" }Response
{ "token": "jwt_string", "user": { "id", "email", "display_name" } }POST
/api/auth/loginAuthenticate and receive a JWT token.
Request Body
{ "email": "string", "password": "string" }Response
{ "token": "jwt_string", "user": { "id", "email", "display_name" } }GET
/api/auth/me Auth requiredGet the current authenticated user profile.
Response
{ "id", "email", "display_name", "created_at" }POST
/api/sessions Auth requiredCreate a new builder session.
Request Body
{ "prompt": "string", "model": "glm-4-flash" }Response
{ "session_id", "status": "building", "created_at" }GET
/api/sessions Auth requiredList all sessions for the authenticated user.
Response
[{ "session_id", "prompt", "status", "iterations", "created_at" }]GET
/api/sessions/:id Auth requiredGet details of a specific session including build artifacts.
Response
{ "session_id", "prompt", "status", "html", "iterations", "token_usage", "tx_hash" }POST
/api/sessions/:id/cancel Auth requiredCancel an in-progress builder session.
Response
{ "status": "cancelled" }GET
/api/healthHealth check endpoint. Returns service status.
Response
{ "status": "ok", "version": "0.2.0" }