List All Content (Admin)
Content
List All Content (Admin)
Retrieve all content including drafts (admin only)
GET
List All Content (Admin)
Overview
Admin endpoint to retrieve all content in the system, including draft and published content. This endpoint supports pagination and filtering by status, category, and type.Authentication
This endpoint requires admin authentication. Include a valid admin access token in the Authorization header.Query Parameters
Page number for pagination
Number of items per page
Filter by content status:
"draft" or "published"Filter by category ID
Filter by content type:
"pdf", "video", or "audio"Request
cURL
Filter by Status
JavaScript
Python
Response
Array of content objects, sorted by creation date (newest first)
Total number of pages available
Current page number
Total number of content items matching the filters
Success Response
Error Responses
401 Unauthorized
Invalid or missing access token.403 Forbidden
User is not an admin.500 Internal Server Error
Notes
Unlike the public
/api/content endpoint, this returns both draft and published content. Use the status query parameter to filter.Related Endpoints
- List Content (Public) - Public content listing
- Create Content - Upload new content
- Update Content - Modify existing content
- Delete Content - Remove content