Community must be on your plan; otherwise these endpoints answer 403. Permissions: community:read for the lists, community:write for the three actions. All paths below start with https://YOUR-CRM-ADDRESS.
Method | Path | What it does |
|---|
GET
| /api/v1/community/groups
| Groups that are not archived |
GET
| /api/v1/community/members
| Memberships: one row per group and contact |
GET
| /api/v1/community/posts
| Published posts, newest first |
GET
| /api/v1/community/courses
| Published courses |
GET
| /api/v1/community/enrollments
| Course enrollments with progress |
GET
| /api/v1/community/events
| Events by start time |
POST
| /api/v1/community/posts
| Post as the team |
POST
| /api/v1/community/enrollments
| Enroll a contact in a course |
POST
| /api/v1/community/chat/messages
| Send a direct message |
The lists
Every list takes limit and cursor. Some take filters:
members and posts: groupId.
enrollments: courseId and contactId.
events: from (Unix milliseconds) for events starting at or after that time.
The lists return IDs, names, counts and dates only. They never include post text, member emails or event join links. People are given as contact IDs; look them up with the contacts API if you need details. Drafts, held and removed posts are left out, so a page can be shorter than limit.
Post as the team
POST /api/v1/community/posts
{ "group": "founders-club", "title": "Welcome", "body": "Say hello below.", "format": "text" }
group is the group's ID or slug. Add channelId to post somewhere other than its default channel.
body is HTML (cleaned for safety), or plain text with "format": "text".
The post shows as by Team and is checked by auto-moderation like any member's. The response status is published, pending (held for review) or hidden.
POST /api/v1/community/enrollments
{ "contactId": "jd7a1b2c3d4e5f6g7h8i9j0k", "courseId": "kq1a2b3c4d5e6f7g8h9i0j1k", "idempotencyKey": "order-1001" }
Granting a paid offer (one people normally buy through a product or order form) also needs the offers:write permission; without it you get 403. Free offers need only community:write.
This grants an offer to the contact, which enrolls them in every course in it and gives them a portal login, exactly like granting it by hand. Send offerId, or courseId when exactly one published offer contains that course. With an idempotencyKey, a retry returns the first grant ("created": false) and grants nothing more. Fires the community.course.enrolled webhook.
Send a direct message
POST /api/v1/community/chat/messages
{ "recipientEmail": "member@example.com", "body": "Welcome aboard!" }
The message is sent from the community profile of the teammate who created the token. It cannot be sent as anyone else. The recipient is recipientContactId or the member's login recipientEmail. Plain text, up to 4,000 characters. The member's own message settings, blocks, auto-moderation and sending limits all apply, and each message is recorded with the token that sent it.