AgentStellar · Learn

AgentStellar API Documentation

The AgentStellar API exposes the educational catalog as JSON. Use relative paths when calling from the website, or the canonical site origin for external public reads. Public GET endpoints do not require an API key. Catalog identifiers should be discovered from the API rather than assumed to be permanent.

GET /api/courses

Returns an array of courses with id, title, description, category, difficulty, icon, total_lessons, and created_at. A signed-in request also includes progress for each course. Example: curl -H "Accept: application/json" https://agentstellar.dev/api/courses

GET /api/courses/:id

Returns one course plus lessons, ordered by order_index. Lesson summaries include id, course_id, title, order_index, and completed. A nonexistent course returns HTTP 404 with a JSON error. Example: first read /api/courses, then request /api/courses/1 if that identifier exists.

GET /api/lessons/:id

Returns lesson details including content, course_title, course_id, completed, and siblings. Content is educational HTML, not Markdown. A nonexistent lesson returns HTTP 404 with a JSON error. Database failures return HTTP 500 with a JSON error; clients should check status before using the body.

Authentication and writes

GET /api/auth/user returns the signed-in profile or HTTP 401 when unauthenticated. /api/login starts Replit sign-in; /api/callback completes it; /api/logout signs out. Progress and waitlist operations require the user’s browser session. Do not automate account changes, enrollment, progress updates, or waitlist submissions without the user’s approval. Do not send passwords or session cookies to third parties.

Scope and stability

This is documentation of the existing website interface, not a promise of a versioned commercial API or a service-level agreement. No public API-key provisioning, hosted inference endpoint, or remote MCP endpoint is provided here. Markdown negotiation applies to documentation pages; API endpoints continue returning JSON.