Skip to main content

Admin API Overview

This document provides an overview of the admin-facing API endpoints available in v3. These endpoints are designed for administrative applications and require elevated permissions.

In This Document

Authentication

Security Requirement

Admin API endpoints require authentication using a Bearer token. The token should be included in the request headers:

Authentication Header
Authorization: Bearer {your-access-token}

The user associated with the token must have the necessary permissions for the requested operation. If the user does not have the required permissions, a 403 Forbidden response will be returned.

API Structure

The Admin API follows the same basic structure and conventions as described in the API v3 Basics document. All common query parameters, filtering capabilities, response formats, and error handling mechanisms apply to the Admin API as well.

Available Modules

CMS Module

The CMS module provides administrative access to content management features:

Features include:

  • Posts: Create, update, delete, and manage posts
  • Categories: Manage content categories and taxonomies
  • Media: Manage media files and galleries

Permissions

Authorization Required

Admin API endpoints require specific permissions based on the user's role. If a user does not have the required permissions, a 403 Forbidden response will be returned with details about the missing permission:

Permission Denied Response
{
"status": false,
"error": {
"code": "permission_denied",
"message": "You do not have permission to perform this action",
"details": {
"required_permission": "cms.posts.create"
}
}
}

Admin-Specific Features

The Admin API provides several features that are not available in the Client API:

Bulk Operations

Many Admin API endpoints support bulk operations for efficient management:

Bulk Delete Example
POST /api/admin/v3/cms/post/bulk/delete
Authorization: Bearer {your-access-token}
Content-Type: application/json

{
"ids": [1, 2, 3, 4, 5]
}

Example Usage

Basic Request

Basic GET Request
GET /api/admin/v3/cms/post
Authorization: Bearer {your-access-token}