Reference
Communities API
Topic community detection and management endpoints
Topic community detection and management endpoints
GET /api/topics/communities
List communities
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Maximum number of communities to return |
offset | integer | No | Number of communities to skip |
Response: 200 OK
| Field | Type | Required | Description |
|---|---|---|---|
data | Community[] | No | |
pagination | object | No |
Example:
curl -X GET "https://api.memnexus.ai/api/topics/communities" \
-H "Authorization: Bearer cmk_live_xxx.yyy"
GET /api/topics/communities/{id}
Get community by ID
Path parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The community ID |
Response: 200 OK
| Field | Type | Required | Description |
|---|---|---|---|
data | Community | No |
Example:
curl -X GET "https://api.memnexus.ai/api/topics/communities/mem_abc123" \
-H "Authorization: Bearer cmk_live_xxx.yyy"
POST /api/topics/communities/merge
Merge communities
Request body:
| Field | Type | Required | Description |
|---|---|---|---|
sourceCommunityId | string | Yes | Source community ID to merge from |
targetCommunityId | string | Yes | Target community ID to merge into |
Response: 200 OK
| Field | Type | Required | Description |
|---|---|---|---|
data | Community | No |
Example:
curl -X POST "https://api.memnexus.ai/api/topics/communities/merge" \
-H "Authorization: Bearer cmk_live_xxx.yyy" \
-H "Content-Type: application/json" \
-d '{}'