If you are a software developer then the word API probably doesn’t need an introduction. However, if you are not that tech savvy, but are interested in connecting your community platform with other systems, then you’ll be happy to know that CMNTY Platform is now capable of that. There are so many other great SaaS tools out there that open up an entire world of possibilities when connected to a community of customers, employees or partners. Therefore, the release of our new community API integration marks the starting point of a new era.
What Is an API?
An Application Programming Interface (API) is a bridge that allows 2 systems to interact with each other while exchanging data. Our platform featured a private API for custom projects before, but because we wanted to offer a public API we decided that the old implementation wasn’t suited for that. Therefore, this is the reason behind why we have started rewriting it from scratch over the past months to accomodate for our own and our customer’s wishes. The result? An implementation that is ready for the future!
Using the API you can now connect or integrate your community platform with other systems. It works by sending data to it over HTTPS. If you don’t know how to do this, it’s best you consult your IT team.
You start by authenticating yourself and once that is successful you can start sending and retrieving data through the Application Programming Interface. Please be advised that the current implementation is part of our Premium plan.
How to Configure and Get Started
The API requires (almost) zero configuration of your Platform. However, you have to make sure that you set some defaults in the request. Here are the most important ones:
First of all you need to be authenticated. It is not possible to connect to the Application Programming Interface without proper authentication. For authentication the platform uses Basic Auth. You can create a new application under Configure -> API. Once you have done that you will receive a token from the Platform, which you can use to authenticate yourself.
We also highly recommend you set the version of the API for any request you do. We will perform regular updates to the Application Programming Interface and to avoid that your application stops working we will “version” the API.
Lastly it’s important to set the content type. For now platform only returns the JSON format. Your request headers will look like this:
Authorization: Basic aHR0cHdhdGNoOmY=
Be sure to also have a look at our support article on how to setup the Application Programming Interface.
“User” and “Invite” End-points
For now our Application Programming Interface supports two “End-points” or methods. An end-point gives you access to a certain type of platform data or can trigger certain actions.
Currently you can perform the following actions: Get Users, Get User (single), Delete a User and Get User groups. For example, you can get the first user of the platform by calling:
and your output will look similar to this:
"name": "Community Manager",
Consequently, you will have control over the invite system of the platform. The following end-points are available: Get Invites, Create New Invite, Get Invite (Single), Update an Invite, Delete an Invite, Send an Invite, Get Invite Groups.
The above describes our first release of our new API. In the following quarters we will be further expanding the capabilities of this Application Programming Interface based on customer feedback and our internal roadmap. In the meantime, be sure to consult our help center.