MemNexus
Reference

Communities API

Topic community detection and management endpoints

Topic community detection and management endpoints

GET /api/topics/communities

List communities

Query parameters:

ParameterTypeRequiredDescription
limitintegerNoMaximum number of communities to return
offsetintegerNoNumber of communities to skip

Response: 200 OK

FieldTypeRequiredDescription
dataCommunity[]No
paginationobjectNo

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:

ParameterTypeRequiredDescription
idstringYesThe community ID

Response: 200 OK

FieldTypeRequiredDescription
dataCommunityNo

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:

FieldTypeRequiredDescription
sourceCommunityIdstringYesSource community ID to merge from
targetCommunityIdstringYesTarget community ID to merge into

Response: 200 OK

FieldTypeRequiredDescription
dataCommunityNo

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 '{}'