API Reference

API Reference

This section provides detailed information about all available API endpoints.

Endpoints

Content Management

Chat

Response Format

All API responses follow a standard format:

{
  "success": true,
  "data": {},
  "error": null
}

Or in case of an error:

{
  "success": false,
  "data": null,
  "error": {
    "message": "Error description",
    "details": "Additional error details (if any)"
  }
}

Authentication

All authenticated endpoints require a Bearer token in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Error Handling

Common HTTP status codes:

Status CodeDescription
200Success
304Not Modified - Resource hasn’t changed
400Bad Request - Invalid input parameters
401Unauthorized - Missing or invalid authentication
403Forbidden - Insufficient permissions
404Not Found - Resource doesn’t exist
409Conflict - Resource already exists
500Server Error - Something went wrong on our end
503Service Unavailable - Temporary server issue