Pull gamification report data for a customer

As a Reseller you can retrieve gamification (leaderboard) data for a customer — top performers, full leaderboard, user performance, and user timeline — scoped by Company ID. Use a credential with Client Role = Reseller. Send X-KEEPNET-Company-Id on each request so data is for that customer.


POST /api/companies/search

Use this to get the customer's Company ID; use the resourceId of the desired company as X-KEEPNET-Company-Id in the leaderboard requests below. Retrieves a paginated list of companies you manage with license details. Test it: Authorize with Client ID/Secret, then Send — request body is pre-filled.

Retrieves a list of all companies

post
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : API
Authorizations
OAuth2clientCredentialsRequired

Client ID and Client Secret from Company → Company Settings → REST API. Enter credentials to auto-fetch token.

Token URL:
Body
pageNumberintegerRequiredExample: 1
pageSizeintegerRequiredExample: 10
orderBystringRequiredExample: CreateTime
ascendingbooleanRequiredExample: false
isTargetUserCountExceededLimitbooleanOptional

If true, only companies exceeding license limit are returned

Example: false
Responses
chevron-right
200

OK

application/json
statusstringOptional
messagestring · nullableOptional
validationMessagesstring[] · nullableOptional
post
/api/companies/search
200

OK


POST /api/leaderboard/get-top-performers

Returns top leaderboard performers for the customer. Send X-KEEPNET-Company-Id. Request body: see Endpoints → Leaderboard (e.g. date range, filters).

Get top leaderboard performance. As a Reseller, send X-KEEPNET-Company-Id: <companyResourceId>.

Get Top Leaderboard Performance

post
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : API
Authorizations
OAuth2clientCredentialsRequired

Client ID and Client Secret from Company → Company Settings → REST API. Enter credentials to auto-fetch token.

Token URL:
Body
datePeriodstringOptional
startDatestring · date-time · nullableOptional
endDatestring · date-time · nullableOptional
Responses
chevron-right
200

OK

application/json
statusstringOptional
messagestring · nullableOptional
validationMessagesstring[] · nullableOptional
post
/api/leaderboard/get-top-performers
200

OK


POST /api/leaderboard/get-all

Returns the full leaderboard for the customer. Send X-KEEPNET-Company-Id.

Get all leaderboard performance. As a Reseller, send X-KEEPNET-Company-Id: <companyResourceId>.

Get All Leaderboard Performance

post
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : API
Authorizations
OAuth2clientCredentialsRequired

Client ID and Client Secret from Company → Company Settings → REST API. Enter credentials to auto-fetch token.

Token URL:
Body
datePeriodstringOptional
startDatestring · date-time · nullableOptional
endDatestring · date-time · nullableOptional
Responses
chevron-right
200

OK

application/json
statusstringOptional
messagestring · nullableOptional
validationMessagesstring[] · nullableOptional
post
/api/leaderboard/get-all
200

OK


POST /api/leaderboard/user-performance

Returns detailed performance for selected users in the customer's gamification data. Send X-KEEPNET-Company-Id.

Get detailed user performance. As a Reseller, send X-KEEPNET-Company-Id: <companyResourceId>.

Get Detailed User Performance

post
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : API
Authorizations
OAuth2clientCredentialsRequired

Client ID and Client Secret from Company → Company Settings → REST API. Enter credentials to auto-fetch token.

Token URL:
Body
targetUserResourceIdstring · nullableOptional
datePeriodstringOptional
startDatestring · date-time · nullableOptional
endDatestring · date-time · nullableOptional
Responses
chevron-right
200

OK

application/json
statusstringOptional
messagestring · nullableOptional
validationMessagesstring[] · nullableOptional
post
/api/leaderboard/user-performance
200

OK


POST /api/leaderboard/get-user-timeline

Returns timeline data for leaderboard users. Send X-KEEPNET-Company-Id.

Get user timeline for leaderboard. As a Reseller, send X-KEEPNET-Company-Id: <companyResourceId>.

Get Top Leaderboard Performance

post
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : API
Authorizations
OAuth2clientCredentialsRequired

Client ID and Client Secret from Company → Company Settings → REST API. Enter credentials to auto-fetch token.

Token URL:
Body
targetUserResourceIdstring · nullableOptional
actionTypesstring[] · nullableOptional
difficultyTypesstring[] · nullableOptional
productsstring[] · nullableOptional
datePeriodstringOptional
startDatestring · date-time · nullableOptional
endDatestring · date-time · nullableOptional
showOnlyFailedEventsbooleanOptional
Responses
chevron-right
200

OK

application/json
statusstringOptional
messagestring · nullableOptional
validationMessagesstring[] · nullableOptional
post
/api/leaderboard/get-user-timeline
200

OK


Common errors

  • 403 Forbidden — Credential is not Reseller, or the Company ID is not one you manage. Set Client Role = Reseller. Roles and permissions →

  • 401 Unauthorized — Missing or invalid token. Request a new token via POST /connect/token.

  • 404 Not Found / 400 Bad Request — Invalid Company ID or invalid request body. Verify Company ID from POST /api/companies/search and check Endpoints → Leaderboard for the request schema.

Related: Pull executive report data for a customer →. Scope API requests to a customer →. Export gamification leaderboard for a customer →.

Last updated