Polythesis API

v1.0 — localhost:3001
Users
0
Theses
0
Markets
0
Health
-
Health
GET/healthHealth check (DB + Vault status)
Authentication
POST/api/auth/connectAuthenticate with wallet
GET/api/auth/meauthGet current user
POST/api/auth/logoutauthLogout and clear session
POST/api/auth/refreshauthRefresh session token
Users
GET/api/users/:idGet user by ID
GET/api/users/address/:walletGet user by wallet address
PUT/api/users/profileauthUpdate profile
PATCH/api/users/:id/suspendadminSuspend / unsuspend user
GET/api/users/admin/listadminList all users
Theses
GET/api/thesesList theses (filter, sort, paginate)
GET/api/theses/:idGet single thesis
GET/api/theses/by-market/:slugTheses for a market
GET/api/theses/by-author/:walletTheses by author
POST/api/thesesauthCreate thesis
GET/api/theses/admin/pendingadminPending theses
PATCH/api/theses/:id/approveadminApprove thesis
PATCH/api/theses/:id/rejectadminReject thesis
GET/api/theses/admin/statsadminAdmin statistics
GET/api/theses/admin/historyadminModeration history
Markets
GET/api/marketsList markets (filter, search)
GET/api/markets/trendingTrending markets
GET/api/markets/:slugGet market by slug
GET/api/markets/category/:tagMarkets by category
GET/api/markets/resolve?url=...Resolve Polymarket URL
POST/api/markets/syncadminForce market sync
Wallet
GET/api/wallet/setup-messageGet signing message
POST/api/wallet/setupauthSetup trading wallet
GET/api/wallet/statusauthWallet status & balance
Comments
GET/api/comments/:thesisIdGet comments
POST/api/comments/:thesisIdauthCreate comment
DELETE/api/comments/:idauthDelete own comment
Reactions
GET/api/reactions/:thesisIdGet reactions
POST/api/reactions/:thesisIdauthToggle reaction
Follows
POST/api/follows/:userIdauthToggle follow/unfollow
GET/api/follows/:userId/statusFollow status & counts
GET/api/follows/:userId/followersGet followers
GET/api/follows/:userId/followingGet following