API Documentation — Analytics
Trafiqo

API Documentation

Authenticate with Authorization: Bearer YOUR_API_KEY.

User

GET /api/user

Blog posts (admin)

GET /api/blog-posts POST /api/blog-posts {"title":"...","content":"

...

","excerpt":"...","is_published":1} PUT /api/blog-posts/{id} DELETE /api/blog-posts/{id}

Blog categories (admin)

GET|POST /api/blog-categories

Product resources

GET /api/websites
POST /api/websites
GET /api/stats?website_id=1
Tracking: GET /pixel/{key}.js and /collect