API Reference
Mavrilo REST API
Programmatically manage your social media, AI content, analytics, and more.
Base URL: https://mavrilo.in/api/v1
API Keys
Generate API keys from Developer settings inside your account
Bearer Auth
Pass your key as Authorization: Bearer <token> on every request
Rate Limits
1,000 requests/hour per API key. Limits vary by plan.
Example request
curl -X GET https://mavrilo.in/api/v1/posts \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
Response envelope
{ "success": true, "data": <payload>, "message": "...", "timestamp": "..." }
All responses are wrapped in this envelope. Your actual payload is inside data.
Endpoints
Authentication
POST
/api/v1/auth/registerPOST
/api/v1/auth/loginPOST
/api/v1/auth/refreshPOST
/api/v1/auth/logoutPosts
GET
/api/v1/postsPOST
/api/v1/postsPATCH
/api/v1/posts/:idDELETE
/api/v1/posts/:idPOST
/api/v1/posts/:id/publishSocial Accounts
GET
/api/v1/social-accountsDELETE
/api/v1/social-accounts/:idAI Generation
POST
/api/v1/ai/generatePOST
/api/v1/ai/generate-imageGET
/api/v1/ai/historyAnalytics
GET
/api/v1/analytics/overviewGET
/api/v1/analytics/postsInbox
GET
/api/v1/inboxGET
/api/v1/inbox/:id/messagesPOST
/api/v1/inbox/:id/replyPATCH
/api/v1/inbox/:id/statusWorkspaces (Brands)
GET
/api/v1/brandsPOST
/api/v1/brandsPATCH
/api/v1/brands/:idDELETE
/api/v1/brands/:idReady to build?
Generate your API key from the Developer section in your dashboard.