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/register
POST/api/v1/auth/login
POST/api/v1/auth/refresh
POST/api/v1/auth/logout

Posts

GET/api/v1/posts
POST/api/v1/posts
PATCH/api/v1/posts/:id
DELETE/api/v1/posts/:id
POST/api/v1/posts/:id/publish

Social Accounts

GET/api/v1/social-accounts
DELETE/api/v1/social-accounts/:id

AI Generation

POST/api/v1/ai/generate
POST/api/v1/ai/generate-image
GET/api/v1/ai/history

Analytics

GET/api/v1/analytics/overview
GET/api/v1/analytics/posts

Inbox

GET/api/v1/inbox
GET/api/v1/inbox/:id/messages
POST/api/v1/inbox/:id/reply
PATCH/api/v1/inbox/:id/status

Workspaces (Brands)

GET/api/v1/brands
POST/api/v1/brands
PATCH/api/v1/brands/:id
DELETE/api/v1/brands/:id

Ready to build?

Generate your API key from the Developer section in your dashboard.