Query Parameters
Number of categories per page (1-100)
Page number for pagination
Example Requests
Basic Request
GET /wp-json/latepoint-api/v1/services/categories
X-API-Key: YOUR_API_KEY
Paginated Request
GET /wp-json/latepoint-api/v1/services/categories?page=1&per_page=5
X-API-Key: YOUR_API_KEY
Response Example
{
"success": true,
"data": [
{
"id": "1",
"name": "Consultas Médicas",
"short_description": "Consultas médicas generales y especializadas",
"parent_id": "0",
"selection_image_id": "0",
"order_number": "1",
"services_count": 5
},
{
"id": "2",
"name": "Terapias",
"short_description": "Diferentes tipos de terapias",
"parent_id": "0",
"selection_image_id": "0",
"order_number": "2",
"services_count": 3
},
{
"id": "3",
"name": "Exámenes",
"short_description": "Exámenes médicos y diagnósticos",
"parent_id": "0",
"selection_image_id": "0",
"order_number": "3",
"services_count": 2
}
],
"pagination": {
"current_page": 1,
"per_page": 10,
"total_items": 3,
"total_pages": 1
}
}
Response Fields
Unique identifier for the category
Brief description of the category
ID of parent category (0 for top-level categories)
ID of the selection image for the category
Display order number for sorting
Number of active services in this category
Pagination information including current page, items per page, total items, and total pages
Notes
- Only active service categories are returned
- The
services_count field shows the number of active services associated with each category
- Categories are ordered by their
order_number field in ascending order
- This endpoint supports standard pagination parameters for large datasets
- Authentication is required via API key in headers or query parameters