Rewards

Get rewards summery

post

This API retrieves the total rewards earned by users for tasks completed during a specified reporting period. The reporting period can either be provided in the request (date_from and date_to) or defaults to the last closed reporting period if not specified. Rewards are only included for tasks marked with is_reporting_period_closed = true.

Notes:

  • If date_from and date_to are provided, the system calculates rewards for all full calendar months within the range and returns the total for those months

  • If no period is specified, the API defaults to the last closed reporting period

  • Pagination is required when external_user_ids is not specified, as the response includes data for all users

  • Rewards are only included for tasks with is_reporting_period_closed = true

Authorizations
x-api-keystringRequired
Query parameters
date_fromstring Β· date-timeOptional

The start date of the reporting period in ISO 8601 format.

date_tostring Β· date-timeOptional

The end date of the reporting period in ISO 8601 format.

Header parameters
x-tenant-idstring Β· uuidRequired

Tenant id (uuid v4)

Body
external_user_idsstring[]Optional

An array of unique identifiers assigned to users by an external system or third-party service. If not provided, the response includes data for all users in the system.

Example: ["550e8400-e29b-41d4-a716-446655440000","6ba7b810-9dad-11d1-80b4-00c04fd430c8","6ba7b811-9dad-11d1-80b4-00c04fd430c8"]
Responses
post
/api/v1/public/rewards/summary

Last updated