API reference

AlgoMentor API

Graph-guided big-tech interview prep. Ingest notes, manage workspaces, stream cited tutor responses, and integrate the study map into your own tools.

Base URL

https://api.algomentor.me

Authentication

Browser sessions use a Clerk JWT in the Authorization header. Server integrations can use organization API keys created in Settings. The shared frontend client attaches tokens automatically.

Authorization: Bearer <clerk-jwt>
# or
Authorization: Bearer <org-api-key>

Study map

Knowledge bases

Documents

Querying

Legacy concepts

Data models

KnowledgeBase

id, org_id, name, description

Document

id, filename, status, progress, chunk_count

Concept

id, slug, title, status, prerequisites, github_url

Source

doc_id, filename, chunk_index, excerpt

Hints with citations — not hallucinations.

Query responses stream tokens first, then return sources from ingested notes so students can verify every hint against the community knowledge base.

Create a workspace