Content Platform API

Complete API documentation for the Content Platform. Access powerful analytics, content management, and campaign data.

Base URL

https://cms.clicktrackerx.com/api/

Quick Start

Test API Connection

fetch('https://cms.clicktrackerx.com/api/test')
  .then(response => response.json())
  .then(data => console.log(data));

Get System Health

fetch('https://cms.clicktrackerx.com/api/health/overall')
  .then(response => response.json())
  .then(data => console.log(data));

Public Endpoints

System & Health

GET /api/test

Basic API test endpoint

GET /api/health/system

System health check

GET /api/health/database

Database health check

GET /api/system/info

System information

Analytics

GET /api/analytics/summary

Analytics summary

GET /api/analytics/dashboard

Dashboard analytics data

GET /api/analytics/performance

Performance metrics

Campaigns

GET /api/campaigns-simple/dashboard

Campaign dashboard data

GET /api/campaigns-simple/all

All campaigns data

GET /api/campaigns-simple/performance

Campaign performance data

Content

GET /api/content-simple

Simple content data

Authentication

For protected endpoints, you need to authenticate using Laravel Sanctum tokens:

1. Login to get token

fetch('https://cms.clicktrackerx.com/api/login', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Accept': 'application/json'
  },
  body: JSON.stringify({
    email: 'your-email@example.com',
    password: 'your-password'
  })
})
.then(response => response.json())
.then(data => {
  localStorage.setItem('api_token', data.token);
});

2. Use token for protected endpoints

fetch('https://cms.clicktrackerx.com/api/user', {
  headers: {
    'Authorization': `Bearer ${localStorage.getItem('api_token')}`,
    'Accept': 'application/json'
  }
})
.then(response => response.json())
.then(data => console.log(data));

Live API Tester

Click a button above to test the API endpoints

Response Format

All API responses follow this standard format:

{
  "status": "success|error",
  "data": {},
  "message": "Description",
  "timestamp": "2024-01-01T00:00:00Z"
}

© 2024 Content Platform. All rights reserved.

Login to Dashboard | Support