curl --request GET \
--url https://demo.spreecommerce.org/api/v2/storefront/post_categories/{id}{
"data": {
"id": "3",
"type": "post_category",
"attributes": {
"title": "News",
"slug": "news",
"created_at": "2025-08-11T20:58:24.375Z",
"updated_at": "2025-08-11T20:58:24.375Z",
"description": null
},
"relationships": {
"posts": {
"data": [
{
"id": "1",
"type": "post"
}
]
}
}
}
}Returns the details of a specified Post Category, including related posts. You can use either the category slug or ID. This endpoint is only available in Spree 5.2 or later.
curl --request GET \
--url https://demo.spreecommerce.org/api/v2/storefront/post_categories/{id}{
"data": {
"id": "3",
"type": "post_category",
"attributes": {
"title": "News",
"slug": "news",
"created_at": "2025-08-11T20:58:24.375Z",
"updated_at": "2025-08-11T20:58:24.375Z",
"description": null
},
"relationships": {
"posts": {
"data": [
{
"id": "1",
"type": "post"
}
]
}
}
}
}Show child attributes
Was this page helpful?