Export gamification leaderboard for a customer

As a Reseller you export the gamification leaderboard or user timeline for a customer to CSV or Excel for reporting, MSSP dashboards, or audits. Use a credential with Client Role = Reseller. Send X-KEEPNET-Company-Id so the export is scoped to that company.


POST /api/companies/search

Use this to get the customer's Company ID; use the resourceId as X-KEEPNET-Company-Id in the export requests below. Retrieves a paginated list of companies you manage. Test it: Authorize with Client ID/Secret, then Send.

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-all/export

Exports the full leaderboard for the customer to a file (e.g. CSV or Excel). Send X-KEEPNET-Company-Id. Request body: see Endpoints → Leaderboard (e.g. LeaderboardSearchExportRequestParameter — date range, export format).

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

Export 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
exportTypestringOptional
reportAllPagesbooleanOptional
datePeriodstringOptional
startDatestring · date-time · nullableOptional
endDatestring · date-time · nullableOptional
Responses
chevron-right
200

OK

No content

post
/api/leaderboard/get-all/export
200

OK

No content


POST /api/leaderboard/get-user-timeline/export

Exports user timeline data for the customer to a file. Send X-KEEPNET-Company-Id. Request body: see Endpoints → Leaderboard (e.g. LeaderboardUserTimelineExportRequestParameter).

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

Export User Timeline

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
exportTypestringOptional
reportAllPagesbooleanOptional
targetUserResourceIdstring · nullableOptional
actionTypesstring[] · nullableOptional
difficultyTypesstring[] · nullableOptional
productsstring[] · nullableOptional
datePeriodstringOptional
startDatestring · date-time · nullableOptional
endDatestring · date-time · nullableOptional
showOnlyFailedEventsbooleanOptional
Responses
chevron-right
200

OK

No content

post
/api/leaderboard/get-user-timeline/export
200

OK

No content


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.

  • 400 Bad Request — Invalid request body or export format. Check Endpoints → Leaderboard for the export request schema.

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

Last updated