Community Membership
Give contacts access to a community with an API key: list communities and their courses, tiers and members, add a contact as a member with a tier and courses, and change a member's tier or courses. Send the API key in the X-API-Key header.
List a community's courses
Every course of the community, with its id and title. Use a course id to give a member that course.
List a community's members
A page of the community's members. Each row carries the member's id, the contact's id (lead_id), their tier and the courses given to them one by one. Use search to find a member by name or email.
Update a community member
Changes a member's tier, gives or takes back single courses, or changes their role, status or handle. Only courses given one by one can be taken back; a course the member bought, or gets through their tier, is not affected.
Give a contact access to a community
Adds the contact to the community when they are not a member yet, then gives the tier and the courses named. A contact who left before is brought back. A contact who is banned is not added, and the answer says so. A member who pays for a plan keeps their own tier. Courses the contact already has are left as they are. The call can be repeated safely. It creates no login and sends no invitation: the contact signs up on the community page with the same email and finds their access there. A contact who joins, or comes back, gets the community's welcome message when it is switched on, as with any other way of joining.
List a community's tiers
Every tier of the community, with the courses it includes and how many members hold it.
List communities
The account's communities, with each community's id, name and member count. Use a community's id in the other calls.