Overview
GET
/communities/{id}/directorycommunityThe people directory: every member with display identity, bio, role, and activity (public instance: any signed-in user; private: members only → 404)
Fetch a record from directory by id.
Auth: bearerAuth — calls run as the authenticated user.
Parameters
- idpathstring
Responses
200
The community’s members, oldest joiner first
- itemsCommunityDirectoryEntry[]
Example
{
"items": [
{
"customerId": "string",
"role": "string",
"bio": "string",
"joinedAt": "string",
"displayName": "string",
"slug": "string",
"avatarUrl": "string",
"postCount": 0,
"activeCategoryIds": [
"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}/directory" \
-H "Authorization: Bearer YOUR_TOKEN"JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/communities/{id}/directory", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
},
});
const data = await res.json();