Build Powerful Social Media Apps

Connect, schedule, and analyze across all major social platforms with our comprehensive RESTful API. Laravel-powered, developer-friendly, and production-ready.

Why Developers Choose ChronoPoster

🚀

Multi-Platform Publishing

Post to Facebook, Twitter, Instagram, LinkedIn, and YouTube from a single API. Schedule posts, manage content, and track performance across all platforms.

🤖

AI-Powered Captions

Generate engaging captions with our built-in AI service. Customize tone, length, and platform-specific optimizations to boost engagement.

📊

Advanced Analytics

Track likes, shares, comments, and reach across all platforms. Get detailed insights and performance metrics to optimize your content strategy.

🔐

Enterprise Security

OAuth 2.0 authentication, rate limiting, and role-based access control. Built with Laravel Sanctum for maximum security and scalability.

Real-time Updates

Webhooks for post status changes, platform notifications, and analytics updates. Stay synchronized with real-time data streaming.

🛠️

Developer Experience

RESTful design, comprehensive OpenAPI documentation, PHP/Laravel SDKs, and detailed code examples to get you started quickly.

API Endpoints Overview

🔐 Authentication

  • POST /api/register POST
  • POST /api/login POST
  • POST /api/logout POST
  • GET /api/user GET

📝 Posts Management

  • GET /api/posts GET
  • POST /api/posts POST
  • PUT /api/posts/{id} PUT
  • DELETE /api/posts/{id} DELETE
  • POST /api/posts/{id}/duplicate POST

🤖 AI Captions

  • GET /api/ai-captions GET
  • POST /api/ai-captions/generate POST
  • DELETE /api/ai-captions/{id} DELETE

📊 Analytics

  • GET /api/analytics/overview GET
  • GET /api/analytics/posts/{id} GET
  • GET /api/analytics/platforms GET

🔗 Social Accounts

  • GET /api/social-accounts GET
  • POST /api/social-accounts POST
  • DELETE /api/social-accounts/{id} DELETE

🌐 Platforms

  • GET /api/platforms GET
  • GET /api/platforms/{id}/guidelines GET
  • POST /api/platforms POST
  • PUT /api/platforms/{id} PUT

Quick Start Guide

1. Authentication

curl -X POST https://chronoposter.mrehman.com/api/login
  -H "Content-Type: application/json" \
  -d '{
    "email": "your@email.com",
    "password": "your_password"
  }'

2. Create a Social Media Post

curl -X POST https://chronoposter.mrehman.com/api/posts
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Check out our new API!",
    "content": "Building amazing social apps has never been easier 🚀",
    "scheduled_at": "2025-09-10T10:00:00Z",
    "post_type": "text",
    "social_account_ids": [1, 2, 3]
  }'

3. Generate AI Caption

curl -X POST https://chronoposter.mrehman.com/api/ai-captions/generate \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "New product launch for eco-friendly water bottles",
    "platform": "instagram",
    "tone": "exciting",
    "length": "medium"
  }'

4. Get Analytics Overview

curl -X GET https://chronoposter.mrehman.com/api/analytics/overview \
  -H "Authorization: Bearer YOUR_TOKEN"

Response Example

{
  "total_posts": 156,
  "published_posts": 142,
  "scheduled_posts": 14,
  "total_engagement": 12847,
  "top_performing_post": {
    "id": 123,
    "title": "Summer Campaign Launch",
    "total_engagement": 1250
  },
  "engagement_by_platform": [
    {
      "name": "Instagram",
      "total_engagement": 5420
    },
    {
      "name": "Twitter",
      "total_engagement": 3210
    }
  ]
}