Overview
GET
/communities/{id}/categoriescommunityList a community’s categories (display order; private instance: members only → 404)
Fetch a record from categories by id.
Auth: bearerAuth — calls run as the authenticated user.
Parameters
- idpathstring
Responses
200
The community’s categories, in display order
- itemsCommunityCategory[]
Example
{
"items": [
{
"id": "string",
"communityId": "string",
"slug": "string",
"name": "string",
"description": "string",
"color": "string",
"displayOrder": 0,
"isPublic": true,
"isArchived": true,
"createdAt": "string",
"updatedAt": "string",
"discussionCount": 0,
"lastActivityAt": "string"
}
]
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}404
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X GET "https://api.agenticdeveloperhub.com/communities/{id}/categories" \
-H "Authorization: Bearer YOUR_TOKEN"JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/communities/{id}/categories", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
},
});
const data = await res.json();