SocialKing API Documentation#

Tài liệu API dành cho developer. Tất cả các endpoint bên dưới sử dụng Bearer Token (JWT) để xác thực.

Base URL#

https://app.socialking.vn/api/v1

Authentication#

Tất cả các API yêu cầu JWT token trong header:

Authorization: Bearer <your_token>

Response Format#

Tất cả response đều theo format:

{
  "success": true,
  "data": { ... },
  "message": "..."
}

Error Response:

{
  "success": false,
  "message": "Error description",
  "errors": [
    { "field": "email", "message": "Email is required", "code": "required" }
  ]
}

API Sections#

Auth & User#

APIMô tả
Auth APIĐăng ký, đăng nhập, xác thực email, đổi mật khẩu
User APIQuản lý user, phân quyền
Presence APITheo dõi trạng thái online

Content & Media#

APIMô tả
Folder APIQuản lý thư mục
Media APIUpload, quản lý media files
Upload APIUpload ảnh
AI APITạo nội dung & ảnh bằng AI

Social (Facebook)#

APIMô tả
Target APIQuản lý target Facebook
Market APIMua bán tài khoản Facebook
Cooldown APICấu hình cooldown giữa các action

Automation#

APIMô tả
Automation Run APIChạy và theo dõi automation

Billing & Payment#

APIMô tả
Transaction APILịch sử giao dịch, số dư
Package APIGói dịch vụ
Payment APITạo QR thanh toán VietQR

System#

APIMô tả
Notification APIThông báo realtime
Tag APIQuản lý tags
Statistic APIDashboard & thống kê