Skip to content

API Endpoints

All endpoints are served by the Sails.js backend. Read endpoints return cached data from SQLite. Write endpoints return 410 Gone — all writes happen directly on-chain via the IOTA smart contract.

Forum Data

MethodPathDescription
GET/api/v1/forum-infoForum metadata and configuration
GET/api/v1/config/themeCurrent theme configuration
GET/api/v1/config/theme/historyTheme configuration change history
GET/api/v1/searchFull-text search across forum content
GET/api/v1/dashboardDashboard statistics and activity overview
GET/api/v1/sync-statusBlockchain sync status
GET/api/v1/integrity-checkCache integrity check vs. blockchain
GET/api/v1/export-dataExport forum data

Users

MethodPathDescription
GET/api/v1/membersList all registered users
GET/api/v1/user/:idGet user profile by address
GET/api/v1/user/:id/historyUser edit history
GET/api/v1/user/:id/reputationUser reputation and trade ratings
GET/api/v1/user/:id/subscriptionUser subscription status

Threads

MethodPathDescription
GET/api/v1/threadsList threads (supports filtering and pagination)
GET/api/v1/thread/:idGet thread details with posts
GET/api/v1/thread/:id/historyThread edit history

Posts

MethodPathDescription
GET/api/v1/postsList posts (supports filtering and pagination)
GET/api/v1/post/:id/historyPost edit history
GET/api/v1/tips/:postIdTips received by a specific post

Categories

MethodPathDescription
GET/api/v1/categoriesList all categories

Marketplace and Escrow

MethodPathDescription
GET/api/v1/marketplaceList marketplace items
GET/api/v1/escrowsList all escrows
GET/api/v1/escrow/:idGet escrow details

Wallet

MethodPathDescriptionAuth
POST/api/v1/faucet-requestRequest test tokens for your addressNo
POST/api/v1/deploy-contractDeploy smart contractAdmin

Admin

These endpoints require admin authentication (Ed25519 signature verification).

MethodPathDescription
POST/api/v1/sync-resetReset sync cursor and re-index from blockchain
POST/api/v1/sync-connectConnect to a new forum deployment (connection string)
POST/api/v1/full-resetFull database reset and re-sync

Deprecated Endpoints

The following write endpoints return 410 Gone. All write operations now happen directly on-chain via the IOTA smart contract.

MethodPathOriginal Purpose
POST/api/v1/registerUser registration
PUT/api/v1/user/:idEdit user profile
POST/api/v1/categoriesCreate category
PUT/api/v1/categories/:idEdit category
POST/api/v1/threadsCreate thread
PUT/api/v1/thread/:idEdit thread
POST/api/v1/postsCreate post
PUT/api/v1/post/:idEdit post
POST/api/v1/voteCast vote
POST/api/v1/moderateModerate post
POST/api/v1/moderate/threadModerate thread
POST/api/v1/roleAssign role
PUT/api/v1/config/themeUpdate theme config