Start a conversation

Jive API Endpoints

Overview

This article explains how to reach and use the Jive REST API v3 endpoints, and what a 401 or 403 response means.

Solution

Assuming that your Jive instance has address https://community.yourdomain.com, the Jive API main base URL is located at https://community.yourdomain.com/api/core/v3/.

Navigating to this URL will not show anything, though, as you need to add one of the endpoints listed at the official API v3 documentation, for example, "people": the end link would be: https://community.yourdomain.com/api/core/v3/people.

You can try this URL in your browser and will return a list of people in your instance, in JSON format. For example:
mceclip0.png

Note: If you are trying this in your browser, you should already be authenticated with a valid user from your Jive community. If you are trying this using an API query tool like Postman or Insomnia, you will have to choose Basic Authentication and enter a valid username and password. The actions available will be limited as per what the authenticated user is allowed to do. mceclip0.png

Beware that if you have more than 25 users in your community, by default this call will return only the first 25 items. You need to add the parameters startIndex and itemsPerPage in order to recursively get all the results. This behavior is common to most API calls, and it is enforced in order to lessen the load on the community that is generated by API usage. Keep in mind that the itemsPerPage has a maximum value of 100, for the same reason just described.

401 and 403 responses

Start from the HTTP status code of the failed call.

ResponseMeaningFix
401 Unauthorized Jive rejected the username or password. Check the credentials; see 401 Unauthorized Error when Executing API Operations. Permission levels play no part.
403 Forbidden with a JSON body The credentials were accepted. The account lacks the permission level that this operation requires. Grant the permission level (next section). A password reset changes nothing.
403 Forbidden with an HTML page The request was blocked before it reached Jive, for example by the site's IP restrictions. See '403 Forbidden' Error When Trying to Load Jive.

To test the credentials alone, call https://community.yourdomain.com/api/core/v3/people with the same account and authentication method. A 200 response means Jive accepts them.

Permission level for changes to other users

Updating another user (PUT /people/{personID}) and setting or removing a manager in the Org Chart (PUT or DELETE /people/{personID}/@reports/{reportPersonID}) return 403 unless the account holds the Manage Users permission level or Full Access. Manage Users covers managing the users of the application; Full Access controls every facet of the system. There is no read-only administration level: the levels are fixed, see System Administration Permission Levels.

To grant Manage Users to an API account:

  1. Create a user group for your API accounts and add the account to it under Admin Console > People > Management > Create User Group (Creating User Groups).
  2. Under Admin Console > Permissions > System Administration, click Add Group, enter the group name, click Select Permissions, check Manage Users and click Set Permissions (Setting up Administrative Permissions for User Groups).
  3. Repeat the failed call.

To revoke the level, remove the account from the group (Editing (Adding and Removing) Users in User Groups) or clear Manage Users for the group with Edit Permissions on the same System Administration page.

In addition to the documentation, other resources are available in the Jive Developer Resources.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments