Loading the reference...
Communities API.
Read and manage a location's communities, members, courses, events and posts with a Standard v2 key or connected app.
Read and manage a location's communities, members, courses, events and posts with a Standard v2 key or connected app.
Loading the reference...
With the Communities add-on installed, a location's communities, members, courses and events can be read, and moderated or edited, through /api/v1/extensions/communities/ on your installation's API base URL. This reference is generated from the capability declaration the add-on ships with CRM 6.0.0: 8 scopes and 28 operations (5 reads, 23 writes). Member sign-in is separate; see Communities member sign-in.
Every operation accepts a Standard v2 key and a connected app (OAuth) holding its scope. Legacy keys, agency keys, agency and personal authority credentials, and keys or grants restricted to selected records are refused. Each operation is location-wide: it reaches only communities in the key's location, or the location the connection was approved for.
The person who creates the key or approves the connection must hold the listed role permissions. There is no Acts as user: changes are made by the integration itself. Content it creates shows members a team member as the author, and direct messages come from the community's system sender. Changing what a scope can reach raises its policy version, so connected apps need fresh approval and Standard keys a fresh review.
| Scope | Operations | Role checks | Credentials |
|---|---|---|---|
extension.communities:readCommunities: read communities in this location | communities_settings:view | Standard v2, OAuth | |
extension.communities:members.readCommunities: read member roles, status and linked contact IDs | communities_members:view | Standard v2, OAuth | |
extension.communities:content.readCommunities: read course catalog entries | communities_content:view | Standard v2, OAuth | |
extension.communities:events.readCommunities: read event schedule | communities_content:view | Standard v2, OAuth | |
extension.communities:members.writeCommunities: approve, moderate and set member/moderator roles (never admin or owner) | communities_members:update | Standard v2, OAuth | |
extension.communities:access.writeCommunities: grant and revoke administrator course access (never paid access) | communities_members:update | Standard v2, OAuth | |
extension.communities:content.writeCommunities: create and update posts, courses, lessons and events; hide or publish them | communities_content:create, communities_content:update, communities_members:update | Standard v2, OAuth | |
extension.communities:messages.writeCommunities: message members as the community and post announcements | communities_members:update, communities_content:create | Standard v2, OAuth |
{"data": ...}. A list returns items and nextCursor; pass nextCursor back unchanged as cursor with the same filters, and stop when it is null. Unknown query parameters are refused.Idempotency-Key of 8 to 128 letters, digits, dots, underscores, colons or hyphens. The key is bound to your credential, the location, the exact path, query and body: a retry with the same key returns the first result, and the same key with a different request returns 409. A write returns {"data": {"success": true, "id": "..."}}.Content-Type: application/json, including DELETE and actions with no fields (send {}). Unknown fields are refused. Bodies are limited to 256 KiB and responses to 1 MiB.VALIDATION_ERROR for invalid input or a refused state change, 403 FORBIDDEN for anything outside your location or not allowed (unknown and foreign IDs look the same), 404 NOT_FOUND when the operation is not installed, 409 for an Idempotency-Key conflict, 413 and 415 for body size and type, and 429 for rate limits. Core read and write rate limits apply per operation.Creating or deleting communities and members, invitations, payments and pricing, paid course access, media uploads, course slugs and landing pages, deleting content, and coaching, ad hoc live or challenge events stay in the CRM.
28 matching Communities operations
extension.communities:readCommunities: read communities in this location
/api/v1/extensions/communities/communitiesList the communities in this locationextension.communities:readScope policy v1Standard v2OAuthRole checks: communities_settings:view. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
limit | No | integer 1-100 - Page size. Default 25. |
cursor | No | string - nextCursor from the previous page, unchanged. It only continues the same list with the same filters. |
status | No | draft | active | archived - Only communities in this status. |
Returns: A page: items of communities (id, name, slug, status, timezone, createdAt, updatedAt) and nextCursor (null on the last page).
/api/v1/extensions/communities/communities/:idGet one communityextension.communities:readScope policy v1Standard v2OAuthRole checks: communities_settings:view. Restrictions: location.
Returns: One community: id, name, slug, status, timezone, createdAt, updatedAt.
extension.communities:members.readCommunities: read member roles, status and linked contact IDs
/api/v1/extensions/communities/communities/:id/membersList a community's membersextension.communities:members.readScope policy v1Standard v2OAuthRole checks: communities_members:view. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
limit | No | integer 1-100 - Page size. Default 25. |
cursor | No | string - nextCursor from the previous page, unchanged. It only continues the same list with the same filters. |
status | No | pending | pending_payment | active | suspended | banned - Only members in this status. |
Returns: A page: items of members (id, communityId, role, status, joinedAt, entryApprovedAt, contactId (the linked CRM contact, or null), updatedAt) and nextCursor. No email addresses or sign-in details. Staff accounts are not listed.
extension.communities:content.readCommunities: read course catalog entries
/api/v1/extensions/communities/communities/:id/coursesList a community's coursesextension.communities:content.readScope policy v1Standard v2OAuthRole checks: communities_content:view. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
limit | No | integer 1-100 - Page size. Default 25. |
cursor | No | string - nextCursor from the previous page, unchanged. It only continues the same list with the same filters. |
Returns: A page: items of courses (id, communityId, title, slug, isPublished, accessType, sortOrder, totalLessons, createdAt, updatedAt) and nextCursor.
extension.communities:events.readCommunities: read event schedule
/api/v1/extensions/communities/communities/:id/eventsList a community's eventsextension.communities:events.readScope policy v1Standard v2OAuthRole checks: communities_content:view. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
limit | No | integer 1-100 - Page size. Default 25. |
cursor | No | string - nextCursor from the previous page, unchanged. It only continues the same list with the same filters. |
from | No | epoch milliseconds - Events starting at or after this time. |
to | No | epoch milliseconds - Events starting at or before this time. Must not precede from. |
Returns: A page: items of events (id, communityId, title, type, startTime, endTime, timezone, isPublished, isRecurring, accessType, cancelledAt, rsvpCount) and nextCursor. No meeting links.
extension.communities:members.writeCommunities: approve, moderate and set member/moderator roles (never admin or owner)
/api/v1/extensions/communities/communities/:id/members/:id/roleSet a member's role to member or moderatorextension.communities:members.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_members:update. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
role | Yes | member | moderator - Admin and owner roles cannot be set or changed. |
Returns: The member ID.
/api/v1/extensions/communities/communities/:id/members/:id/suspendSuspend a memberextension.communities:members.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_members:update. Restrictions: location.
Send an empty JSON object, {}, with Content-Type: application/json.
Returns: The member ID.
/api/v1/extensions/communities/communities/:id/members/:id/banBan a memberextension.communities:members.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_members:update. Restrictions: location.
Send an empty JSON object, {}, with Content-Type: application/json.
Returns: The member ID.
/api/v1/extensions/communities/communities/:id/members/:id/reinstateReinstate a suspended or banned memberextension.communities:members.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_members:update. Restrictions: location.
Send an empty JSON object, {}, with Content-Type: application/json.
Returns: The member ID.
/api/v1/extensions/communities/communities/:id/members/:id/approveApprove a pending registrationextension.communities:members.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_members:update. Restrictions: location.
Send an empty JSON object, {}, with Content-Type: application/json.
Returns: The member ID.
extension.communities:access.writeCommunities: grant and revoke administrator course access (never paid access)
/api/v1/extensions/communities/communities/:id/courses/:id/grantsGive a member administrator access to a courseextension.communities:access.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_members:update. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
membershipId | Yes | string - A member of this community. |
Returns: The enrollment ID. Never grants paid access.
/api/v1/extensions/communities/communities/:id/courses/:id/grants/:idRevoke a member's administrator course accessextension.communities:access.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_members:update. Restrictions: location.
Send an empty JSON object, {}, with Content-Type: application/json.
Returns: The member ID. Removes only administrator-granted access; purchased, free, plan, level and prize access stay. Revoking when nothing administrator-granted is active succeeds and changes nothing.
extension.communities:content.writeCommunities: create and update posts, courses, lessons and events; hide or publish them
/api/v1/extensions/communities/communities/:id/postsCreate a feed postextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
channelId | Yes | string - A feed channel of this community. |
title | Yes | string, max 300 |
html | Yes | string, max 50,000 - Sanitized with the same rules as the CRM editor. Mentions are not supported. |
type | No | discussion | question |
Returns: The post ID.
/api/v1/extensions/communities/communities/:id/posts/:idEdit a feed postextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
title | No | string, max 300 |
html | No | string, max 50,000 |
expectedRevision | No | integer - Refuse the edit if the post changed since this revision. |
Returns: The post ID. Send at least one field to change.
/api/v1/extensions/communities/communities/:id/posts/:id/hideHide a feed postextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
Send an empty JSON object, {}, with Content-Type: application/json.
Returns: The post ID.
/api/v1/extensions/communities/communities/:id/posts/:id/unhideUnhide a feed postextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
Send an empty JSON object, {}, with Content-Type: application/json.
Returns: The post ID.
/api/v1/extensions/communities/communities/:id/coursesCreate a courseextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
title | Yes | string, max 300 |
description | No | string, max 10,000 |
accessType | No | free | paid | tier | level - Pricing and plan gating are set in the CRM. |
Returns: The course ID.
/api/v1/extensions/communities/communities/:id/courses/:idEdit a courseextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
title | No | string, max 300 |
description | No | string, max 10,000 |
tagline | No | string, max 300 |
certificateTitle | No | string, max 500 |
certificateInstructor | No | string, max 500 |
instructorName | No | string, max 200 |
instructorTitle | No | string, max 200 |
instructorBio | No | string, max 5,000 |
instructorMembershipId | No | string or null - A member of this community. |
dripEnabled | No | boolean |
certificateEnabled | No | boolean |
isCohort | No | boolean |
accessMode | No | free | plan | paid_extra |
accessType | No | free | paid | tier | level |
requiredLevel | No | integer, 0 or more |
cohortStartDate | No | integer or null |
cohortEndDate | No | integer or null |
estimatedMinutes | No | integer or null |
expectedRevision | No | integer - Refuse the edit if the course changed since this revision. |
Returns: The course ID. Send at least one field to change. Course slugs and landing pages cannot be set.
/api/v1/extensions/communities/communities/:id/courses/:id/publishPublish a courseextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
Send an empty JSON object, {}, with Content-Type: application/json.
Returns: The course ID.
/api/v1/extensions/communities/communities/:id/courses/:id/unpublishUnpublish a courseextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
Send an empty JSON object, {}, with Content-Type: application/json.
Returns: The course ID.
/api/v1/extensions/communities/communities/:id/courses/:id/modulesAdd a module to a courseextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
title | Yes | string, max 300 |
description | No | string, max 10,000 |
dripDays | No | integer 0-3650 |
Returns: The module ID.
/api/v1/extensions/communities/communities/:id/courses/:id/lessonsAdd a lesson to a course moduleextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
moduleId | Yes | string - A module of this course. |
title | Yes | string, max 300 |
type | Yes | video | text | audio | file | quiz | assignment | survey | feedback | live_session |
content | No | string, max 100,000 |
videoUrl | No | string, max 2,048 |
embedUrl | No | string, max 4,096 |
videoDuration | No | number |
duration | No | number |
instructorName | No | string, max 200 |
instructorTitle | No | string, max 200 |
instructorBio | No | string, max 5,000 |
isPublished | No | boolean |
isFree | No | boolean |
commentsEnabled | No | boolean |
Returns: The lesson ID. Media uploads are not available through the API.
/api/v1/extensions/communities/communities/:id/lessons/:idEdit a lessonextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
title | No | string, max 300 |
type | No | video | text | audio | file | quiz | assignment | survey | feedback | live_session |
content | No | string, max 100,000 |
videoUrl | No | string, max 2,048 |
embedUrl | No | string, max 4,096 |
videoDuration | No | number |
duration | No | number |
instructorName | No | string, max 200 |
instructorTitle | No | string, max 200 |
instructorBio | No | string, max 5,000 |
isPublished | No | boolean |
isFree | No | boolean |
commentsEnabled | No | boolean |
expectedRevision | No | integer - Refuse the edit if the lesson changed since this revision. |
Returns: The lesson ID. Send at least one field to change.
/api/v1/extensions/communities/communities/:id/eventsCreate an eventextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
title | Yes | string, max 500 |
type | Yes | live_call | workshop | qa | webinar | custom |
startTime | Yes | integer, epoch milliseconds |
endTime | Yes | integer, epoch milliseconds |
timezone | Yes | string, max 100 |
audience | Yes | object - {"type": "all"}, {"type": "course", "courseId": "..."} or {"type": "category", "categoryId": "..."}, all within this community. |
description | No | string, max 10,000 |
meetingUrl | No | string, max 2,048 |
maxAttendees | No | integer 1-1,000,000 |
isRecurring | No | boolean - Default false. |
recurrenceRule | No | string, max 500 |
isPublished | No | boolean - Default false. |
accessType | No | free - Events created through the API are free. |
Returns: The event ID.
/api/v1/extensions/communities/communities/:id/events/:idEdit an eventextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
title | No | string, max 500 |
type | No | live_call | workshop | qa | webinar | custom |
startTime | No | integer, epoch milliseconds |
endTime | No | integer, epoch milliseconds |
timezone | No | string, max 100 |
audience | No | object - As on create. |
description | No | string, max 10,000 |
meetingUrl | No | string, max 2,048 |
maxAttendees | No | integer 1-1,000,000 |
isRecurring | No | boolean |
recurrenceRule | No | string, max 500 |
isPublished | No | boolean |
accessType | No | free |
expectedRevision | No | integer - Refuse the edit if the event changed since this revision. |
Returns: The event ID. Send at least one field to change. Only ordinary events can be edited, not coaching, ad hoc live or challenge meetings.
/api/v1/extensions/communities/communities/:id/events/:id/cancelCancel an eventextension.communities:content.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_content:create, communities_content:update, communities_members:update. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
reason | No | string, max 1,000 |
Returns: The event ID.
extension.communities:messages.writeCommunities: message members as the community and post announcements
/api/v1/extensions/communities/communities/:id/members/:id/messagesSend a member a direct message from the communityextension.communities:messages.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_members:update, communities_content:create. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
body | Yes | string, max 10,000 - Plain message text, not empty. |
Returns: The message ID. Sent by the community's system sender. Refused for administrators, owners, and members whose message settings do not allow it.
/api/v1/extensions/communities/communities/:id/announcementsPost an announcementextension.communities:messages.writeScope policy v1 · Idempotency-Key requiredStandard v2OAuthRole checks: communities_members:update, communities_content:create. Restrictions: location.
| Field | Required | Type and details |
|---|---|---|
title | Yes | string, max 300 |
body | Yes | string, max 10,000 |
channelId | No | string - Feed channel to post in. Required when the community has no default channel. |
Returns: The post ID. Refused if the community's moderation rules block it.