Stats

Stats related operations

Retrieves the Stats of a score for a given iteractions

get
Authorizations
happyforceAPIKeystringRequired

API Key for Happyforce API

Path parameters
scoreIdstringRequired

Score from which the stats should be retrieved

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Query parameters
fromstring · date-timeOptional

For which date from the results should be returned

tostring · date-timeOptional

For which date to the results should be returned

hierarchyIdstringOptional

Id of the area for which you want to retrive the stats. If null, all company data is returned

Example: 64f8a0e2d5b7c9a1e3f4a5b6
profilestringOptional

Profile filter string. If not specified, no profile filtering will be applied. Check examples for details

Example: profileId1:allowedValueId,profileId2:allowedValueId...
groupIdstring[]Optional

One or more group ids for which you want to retrieve the stats. If not specified, no group filtering will be applied

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
chevron-right
200

OK

*/*

Contains a Score stats during a period for a given period. It contains on the root of the object the last result, and on the dateResults field, the results for a given period

scoreIdstringOptional

Id of the score

Example: 64f8a0e2d5b7c9a1e3f4a5b6
fromstring · date-timeOptional

Date from where the stats of this results start

tostring · date-timeOptional

Date from where the stats of this results ends

resultnumber · doubleOptional

Result for the given score

participantsinteger · int32Optional

The unique participants

expectedParticipantsinteger · int32Optional

The expected participants

qualitystring · enumOptional

Quality of the measurement, based on the participation

Possible values:
valuationstring · enumOptional

Valuation of the score

Possible values:
get
/api/v1/public/company/stats/scores/{scoreId}
200

OK

Retrieves the Stats of a score for a given iteractions

get
Authorizations
happyforceAPIKeystringRequired

API Key for Happyforce API

Path parameters
scoreIdstringRequired

Score from which the stats should be retrieved

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Query parameters
fromstring · date-timeOptional

For which date from the results should be returned

tostring · date-timeOptional

For which date to the results should be returned

hierarchyIdstringOptional

Id of the area for which you want to retrive the stats. If null, all company data is returned

Example: 64f8a0e2d5b7c9a1e3f4a5b6
profilestringOptional

Profile filter string. If not specified, no profile filtering will be applied. Check examples for details

Example: profileId1:allowedValueId,profileId2:allowedValueId...
groupIdstring[]Optional

One or more group ids for which you want to retrieve the stats. If not specified, no group filtering will be applied

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
chevron-right
200

OK

*/*

Contains a Score stats during a period for a given period. It contains on the root of the object the last result, and on the dateResults field, the results for a given period

scoreIdstringOptional

Id of the score

Example: 64f8a0e2d5b7c9a1e3f4a5b6
fromstring · date-timeOptional

Date from where the stats of this results start

tostring · date-timeOptional

Date from where the stats of this results ends

resultnumber · doubleOptional

Result for the given score

participantsinteger · int32Optional

The unique participants

expectedParticipantsinteger · int32Optional

The expected participants

qualitystring · enumOptional

Quality of the measurement, based on the participation

Possible values:
valuationstring · enumOptional

Valuation of the score

Possible values:
get
/api/v1/public/company/stats/scores/stats/{scoreId}
200

OK

get

Retrieves the Participation stats for the requested period

Authorizations
happyforceAPIKeystringRequired

API Key for Happyforce API

Query parameters
fromstring · date-timeOptional

Start date for retrieving stats (ddMMyyyy format). If null: Today minus one month

tostring · date-timeOptional

End date for retrieving stats (ddMMyyyy format). If null: Today

hierarchyIdstringOptional

Id of the area for which you want to retrive the stats. If null, all company data is returned

Example: 64f8a0e2d5b7c9a1e3f4a5b6
profilestringOptional

Profile filter string. If not specified, no profile filtering will be applied.

Example: profileId1:allowedValueId,profileId2:allowedValueId...
groupIdstring[]Optional

One or more group ids for which you want to retrieve the stats. If not specified, no group filtering will be applied

Example: 64f8a0e2d5b7c9a1e3f4a5b6
groupingstring · enumOptional

Types of date grouping intervals

Default: MONTHPossible values:
Responses
chevron-right
200

OK

*/*

Contains a the participation stats for a given period.

fromstring · date-timeOptional

Date from where the stats of this results start

tostring · date-timeOptional

Date to where the stats of this results ends

participantsinteger · int32Optional

Number of unique participants during the period

valuationstring · enumOptional

Valuation of the participation stats

Possible values:
newParticipantsinteger · int64Optional

Number of unique participants during the period, that were not present in the previous period

lostParticipantsinteger · int64Optional

Number of unique participants during the previous period, that are not present in the current period

get
/api/v1/public/company/stats/participation
200

OK

Retrieves the HI stats for the requested period

get
Authorizations
happyforceAPIKeystringRequired

API Key for Happyforce API

Query parameters
fromstring · date-timeOptional

Start date for retrieving stats (ddMMyyyy format). If null: Today minus one month

tostring · date-timeOptional

End date for retrieving stats (ddMMyyyy format). If null: Today

hierarchyIdstringOptional

Id of the area for which you want to retrive the stats. If null, all company data is returned

Example: 64f8a0e2d5b7c9a1e3f4a5b6
profilestringOptional

Profile filter string. If not specified, no profile filtering will be applied.

Example: profileId1:allowedValueId,profileId2:allowedValueId...
groupIdstring[]Optional

One or more group ids for which you want to retrieve the stats. If not specified, no group filtering will be applied

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
chevron-right
200

OK

*/*

Self contained model that contains the HI stats for a certain period

titlestringOptional

Title of the HI question

participantsinteger · int32Optional

Number of unique participants on the period

expectedParticipantsinteger · int32Optional

Number of expected participants on the period

periodIndexnumber · doubleOptional

HI of the given period

get
/api/v1/public/company/stats/hi
200

OK

get

Retrieves the eNPS stats for the requested period

Authorizations
happyforceAPIKeystringRequired

API Key for Happyforce API

Query parameters
fromstring · date-timeOptional

Start date for retrieving stats (ddMMyyyy format). If null: Today minus one month

tostring · date-timeOptional

End date for retrieving stats (ddMMyyyy format). If null: Today

hierarchyIdstringOptional

Id of the area for which you want to retrive the stats. If null, all company data is returned

Example: 64f8a0e2d5b7c9a1e3f4a5b6
profilestringOptional

Profile filter string. If not specified, no profile filtering will be applied.

Example: profileId1:allowedValueId,profileId2:allowedValueId...
groupIdstring[]Optional

One or more group ids for which you want to retrieve the stats. If not specified, no group filtering will be applied

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
chevron-right
200

OK

*/*

Contains the ENPS stats during a period for a given. It contains on the root of the object the last result, and on the dateResults field, the results for a given period

fromstring · date-timeOptional

Date from where the stats of this results start

tostring · date-timeOptional

Date to where the stats of this results ends

resultnumber · doubleOptional

Result for the eNPS

averageResultnumber · doubleOptional

Result for the eNPS in average mode

participantsinteger · int32Optional

The unique participants

expectedParticipantsinteger · int32Optional

The expected participants

dectractorsinteger · int32Optional

Number of detractors

neutralinteger · int32Optional

Number of neutral

promotersinteger · int32Optional

Number of promoters

qualitystring · enumOptional

Quality of the measurement, based on the participation

Possible values:
valuationstring · enumOptional

Valuation of the score

Possible values:
get
/api/v1/public/company/stats/enps
200

OK

get

Retrieves the Activation stats for the requested period

Authorizations
happyforceAPIKeystringRequired

API Key for Happyforce API

Query parameters
fromstring · date-timeOptional

Start date for retrieving stats (ddMMyyyy format). If null: Today minus one month

tostring · date-timeOptional

End date for retrieving stats (ddMMyyyy format). If null: Today

hierarchyIdstringOptional

Id of the area for which you want to retrive the stats. If null, all company data is returned

Example: 64f8a0e2d5b7c9a1e3f4a5b6
profilestringOptional

Profile filter string. If not specified, no profile filtering will be applied.

Example: profileId1:allowedValueId,profileId2:allowedValueId...
groupIdstring[]Optional

One or more group ids for which you want to retrieve the stats. If not specified, no group filtering will be applied

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
chevron-right
200

OK

*/*

Contains a the activations stats for a given period. It contains information about the number of invited and activated users and the accumulated values. by date.

fromstring · date-timeOptional

Date from where the stats of this results start

tostring · date-timeOptional

Date from where the stats of this results ends

totalInvitedinteger · int64Optional

The number of invited employees during the period

totalActivatedinteger · int64Optional

The number of activated employees during the period

valuationstring · enumOptional

Valuation of the activation stats

Possible values:
get
/api/v1/public/company/stats/activation
200

OK

get

Get's the extended stats. Id is optional, so the default is all company stats

Authorizations
Query parameters
hierarchyIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
chevron-right
200

OK

application/json

An extension of a the base Hierarchy Stats, containing the evolution, scores, votes distribution and sub children

fromstring · date-timeOptional
tostring · date-timeOptional
idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
namestringOptional
hinumber · doubleOptional
hiVariationnumber · doubleOptional
valuationstring · enumOptional

Valuation of data of a specific field or metric; usually based on the participation of employees in a survey or the number of responses to a question.

Possible values:
participationnumber · doubleOptional
votesinteger · int64Optional
get
/api/v1/employee/stats/{employeeId}
200

OK

get

Get's the Score Detail of all the leaf departments of the company of an employee

Authorizations
Path parameters
scoreIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Query parameters
hierarchyIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
chevron-right
200

OK

application/json

Detailed score stats: variation, pending questions, factor results, last value.

get
/api/v1/employee/stats/{employeeId}/score/{scoreId}
200

OK

Deprecated
get

Get's the HI of all the leaf departments of the company of an employee

Authorizations
Query parameters
frominteger · int64Optional
tointeger · int64Optional
Responses
chevron-right
200

OK

application/json

HI stats per hierarchy: hierarchy, index rating, variation, valuation, votes.

indexRatingnumber · doubleOptional
indexVariationnumber · doubleOptional
valuationstring · enumOptional

Valuation of data of a specific field or metric; usually based on the participation of employees in a survey or the number of responses to a question.

Possible values:
votesinteger · int64Optional
get
/api/v1/employee/stats/{employeeId}/hierarchies
200

OK

Last updated