Taxonomies
Categories
List categories and fetch single category resources.
GET
/
categories
Categories
curl --request GET \
--url https://api.example.com/categoriesimport requests
url = "https://api.example.com/categories"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/categories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/categories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/categories"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/categories")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/categories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyEndpoints
GET /categories
GET /categories/:id-or-slug
- Categories are available only at root (
/categories) and apply toarticlescontent. - Collection-specific taxonomy endpoints are not supported.
List query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number |
per_page | integer | 10 | Items per page |
search | string | - | Search by name or slug |
orderby | string | name | Sort by name, slug, id, date, created_at |
order | string | desc | asc or desc |
_fields | string | - | Comma-separated attribute field filter |
Example list request
curl "https://api.skayle.ai/v1/ORG_ID/categories?page=1&per_page=20&orderby=name&order=asc"
Example list response
{
"data": [
{
"id": "cat_01HZX...",
"type": "categories",
"attributes": {
"name": "Content Strategy",
"slug": "content-strategy",
"post_count": 18,
"created_at": "2025-12-10T08:01:00.000Z",
"updated_at": "2026-01-20T09:15:00.000Z"
},
"relationships": {
"articles": {
"data": null,
"links": {
"related": "/v1/ORG_ID/articles?categories=cat_01HZX..."
}
}
},
"links": {
"self": "/v1/ORG_ID/categories/cat_01HZX..."
}
}
],
"meta": {
"total": 12,
"per_page": 20,
"page": 1
}
}
Example single request
curl "https://api.skayle.ai/v1/ORG_ID/categories/content-strategy"
Single not found
{
"errors": [
{
"status": "404",
"title": "Not Found",
"detail": "Category with id or slug \"content-strategy\" not found"
}
]
}
Response field descriptions
| Field | Type | Description |
|---|---|---|
data[].id | string | Category ID |
data[].type | string | Resource type (categories) |
data[].attributes.name | string | Category display name |
data[].attributes.slug | string | Category slug |
data[].attributes.post_count | number | Published article count for this category |
data[].attributes.created_at | string | ISO datetime |
data[].attributes.updated_at | string | ISO datetime |
data[].relationships.articles | object | Related filtered items feed |
meta.total | number | Total categories |
meta.per_page | number | Page size |
meta.page | number | Current page |
Filtering and pagination
searchfilters by category name/slug.pageandper_pagecontrol pagination.orderbyandordercontrol sorting.
Error responses
404when single category ID/slug is not found.
⌘I
Categories
curl --request GET \
--url https://api.example.com/categoriesimport requests
url = "https://api.example.com/categories"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/categories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/categories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/categories"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/categories")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/categories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body