Retrieve categories and posts by category
cURL
curl --request GET \ --url https://api.example.com/categories
GET /categories
page
perPage
sort
name
curl -X GET "https://api.skayle.ai/v1/categories" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "data": [ { "id": "cat_abc123", "type": "category", "attributes": { "name": "Technology", "slug": "technology", "description": "Tech news and tutorials", "postCount": 15 } }, { "id": "cat_def456", "type": "category", "attributes": { "name": "Business", "slug": "business", "description": "Business insights", "postCount": 8 } } ], "meta": { "total": 12 } }
GET /categories/{id}
GET /categories/{id}/posts GET /categories/slug/{slug}/posts
curl -X GET "https://api.skayle.ai/v1/categories/slug/technology/posts?perPage=5" \ -H "Authorization: Bearer YOUR_API_KEY"