Authentication

Authenticate with your community credential In order to retrieve or modify data of your community via API, you have to authenticate first

POST /oauth HTTP/1.1
Accept: application/json
Content-Type: application/json; charset=utf-8
{
  "client_id": [community_id],
  "client_secret": [community_secret_key],
  "grant_type": "client_credentials"
}

If the authentication success the response would be

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "access_token": [access_token],
  "expires_in": 3600,
  "token_type": "Bearer",
  "scope": null,
}

And then, you can use the return access token to access your community data.