Authentication

Authenticate your community credentials.

In order to retrieve or modify your community data via the API, you need to first authenticate your community.

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 is successful, the response will 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,
}

Once this is done you can use the return access token to access your community data.