API Documentation
Complete RESTful API reference for the Jonosakti platform.
Base URL:https://jonosakti.org/api
Format:JSON
Authentication:JWT Bearer Token (Cookie-based sessions)
Authentication
Endpoints marked with Auth require a valid session. Login via /api/auth/login to receive a session cookie.
Rate Limiting
API requests are rate-limited to 100 requests per minute per IP. Authenticated users get 200 requests per minute.
Errors
Errors return JSON with { error: string }. HTTP status codes: 400 (bad request), 401 (unauthorized), 404 (not found), 500 (server error).
Quick Navigation
Authentication
9 endpointsUser authentication and session management endpoints.
Two-Factor Authentication
5 endpointsTOTP-based two-factor authentication endpoints.
OAuth Authentication
4 endpointsSocial login with Google and Facebook.
Petitions
6 endpointsCreate and manage petitions for collective action.
Campaigns (Crowdfunding)
4 endpointsCrowdfunding campaigns for community projects.
Articles
3 endpointsCommunity journalism and knowledge sharing.
Forums
3 endpointsCommunity discussion forums.
Unions
4 endpointsLabor union organization and management.
Movements
3 endpointsSocial movements and organizing.
Boycotts
4 endpointsConsumer boycott campaigns.
Cooperatives
3 endpointsWorker and community cooperatives.
Mutual Aid Networks
3 endpointsCommunity mutual aid and support networks.
Local Businesses
3 endpointsSupport local and ethical businesses.
Courses (Education)
3 endpointsEducational courses and resources.
Fact Checks
3 endpointsCommunity fact-checking and verification.
Data Commons
3 endpointsShared community data resources.
Referendums
3 endpointsCommunity voting on proposals.
Likes & Shares
2 endpointsContent engagement and sharing.
Bookmarks
2 endpointsSave content for later.
Reports
1 endpointsReport inappropriate content.
Search
1 endpointsSearch across all content.
Users
7 endpointsUser profiles and activity.
Notifications
2 endpointsUser notifications and alerts.
Messages
4 endpointsDirect messaging between users.
File Upload
2 endpointsUpload files and images.
AI Features
4 endpointsAI-powered content assistance.
Health & Monitoring
2 endpointsSystem health checks.
Comments
5 endpointsComments on all content types.