Survey Stats Resource
get
Authorizations
SessionIdstringRequired
SessionId
Path parameters
surveyIdstringRequiredExample:
64f8a0e2d5b7c9a1e3f4a5b6Query parameters
roundIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6fromstring · date-timeOptional
tostring · date-timeOptional
hierarchyIdstring[]OptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6filtersstringOptional
groupIdstring[]OptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6questionResultsstringOptional
Responses
200
OK
*/*
fromstring · date-timeOptional
tostring · date-timeOptional
hierarchyIdsstring[]OptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6groupIdsstring[]OptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6get/api/v1/company/stats/surveys/{surveyId}
GET /api/v1/company/stats/surveys/{surveyId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
200
OK
{
"from": "2026-01-01T00:00:00.000Z",
"to": "2026-01-01T00:00:00.000Z",
"result": {
"roundId": "64f8a0e2d5b7c9a1e3f4a5b6",
"from": "2026-01-01T00:00:00.000Z",
"to": "2026-01-01T00:00:00.000Z",
"nonAnonymous": true,
"nonEnoughEmployees": true,
"periodHasIndex": true,
"periodIndex": 1,
"distribution": [
{
"classification": "NEGATIVE",
"count": 1
}
],
"participants": 1,
"completedParticipants": 1,
"expectedActivatedParticipants": 1,
"expectedInvitedParticipants": 1,
"votes": 1,
"comments": 1,
"blocks": [
{
"blockId": "64f8a0e2d5b7c9a1e3f4a5b6",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"description": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"questions": [
{
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"questionType": "GENERAL",
"order": 1,
"visible": true,
"computeInBlock": true,
"feedbackEnabled": true,
"voteMode": "MANDATORY",
"representation": "IMAGES",
"values": [
{
"id": 1,
"score": 1,
"label": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"imageUrl": "text",
"color": "text"
}
],
"requireNotEmpty": true
}
],
"blockIndex": 1,
"blockHasIndex": true,
"distribution": [
{
"classification": "NEGATIVE",
"count": 1
}
],
"participants": 1,
"completedParticipants": 1,
"votes": 1,
"comments": 1,
"byInvitedQuality": "NO_DATA",
"byActivatedQuality": "NO_DATA"
}
],
"byInvitedQuality": "NO_DATA",
"byActivatedQuality": "NO_DATA",
"scaleNormalized": true,
"scaleMin": 1,
"scaleMax": 1
},
"hierarchyIds": [
"64f8a0e2d5b7c9a1e3f4a5b6"
],
"characteristics": [
{
"characteristicId": "64f8a0e2d5b7c9a1e3f4a5b6",
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"questionType": "DATE",
"value": true
}
],
"groupIds": [
"64f8a0e2d5b7c9a1e3f4a5b6"
]
}get
Authorizations
SessionIdstringRequired
SessionId
Path parameters
surveyIdstringRequiredExample:
64f8a0e2d5b7c9a1e3f4a5b6groupingTypestring · enumRequiredPossible values:
Types of date grouping by segmentation
Query parameters
roundIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6fromstring · date-timeOptional
tostring · date-timeOptional
hierarchyIdstring[]OptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6filtersstringOptional
groupIdstring[]OptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6questionResultsstringOptional
Responses
200
OK
*/*
groupingTypestring · enumOptionalPossible values:
Types of date grouping by segmentation
noTypesbooleanOptional
get/api/v1/company/stats/surveys/{surveyId}/grouping/{groupingType}
GET /api/v1/company/stats/surveys/{surveyId}/grouping/{groupingType} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
200
OK
{
"groupingType": "HIERARCHIES",
"noTypes": true,
"results": [
{
"hierarchyId": "64f8a0e2d5b7c9a1e3f4a5b6",
"characteristic": {
"characteristicId": "64f8a0e2d5b7c9a1e3f4a5b6",
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"questionType": "DATE",
"value": true
},
"groupId": "64f8a0e2d5b7c9a1e3f4a5b6",
"result": {
"roundId": "64f8a0e2d5b7c9a1e3f4a5b6",
"from": "2026-01-01T00:00:00.000Z",
"to": "2026-01-01T00:00:00.000Z",
"nonAnonymous": true,
"nonEnoughEmployees": true,
"periodHasIndex": true,
"periodIndex": 1,
"distribution": [
{
"classification": "NEGATIVE",
"count": 1
}
],
"participants": 1,
"completedParticipants": 1,
"expectedActivatedParticipants": 1,
"expectedInvitedParticipants": 1,
"votes": 1,
"comments": 1,
"blocks": [
{
"blockId": "64f8a0e2d5b7c9a1e3f4a5b6",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"description": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"questions": [
{
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"questionType": "GENERAL",
"order": 1,
"visible": true,
"computeInBlock": true,
"feedbackEnabled": true,
"voteMode": "MANDATORY",
"representation": "IMAGES",
"values": [
{
"id": 1,
"score": 1,
"label": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"imageUrl": "text",
"color": "text"
}
],
"requireNotEmpty": true
}
],
"blockIndex": 1,
"blockHasIndex": true,
"distribution": [
{
"classification": "NEGATIVE",
"count": 1
}
],
"participants": 1,
"completedParticipants": 1,
"votes": 1,
"comments": 1,
"byInvitedQuality": "NO_DATA",
"byActivatedQuality": "NO_DATA"
}
],
"byInvitedQuality": "NO_DATA",
"byActivatedQuality": "NO_DATA",
"scaleNormalized": true,
"scaleMin": 1,
"scaleMax": 1
},
"nonEnoughEmployees": true
}
]
}get
Authorizations
SessionIdstringRequired
SessionId
Path parameters
surveyIdstringRequiredExample:
64f8a0e2d5b7c9a1e3f4a5b6Query parameters
roundIdstringOptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6fromstring · date-timeOptional
tostring · date-timeOptional
hierarchyIdstring[]OptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6filtersstringOptional
groupIdstring[]OptionalExample:
64f8a0e2d5b7c9a1e3f4a5b6questionResultsstringOptional
groupingstring · enumOptionalDefault:
Types of date grouping intervals
MONTHPossible values: Responses
200
OK
*/*
groupingstring · enumOptionalPossible values:
Types of date grouping intervals
fromstring · date-timeOptional
tostring · date-timeOptional
get/api/v1/company/stats/surveys/{surveyId}/evolution
GET /api/v1/company/stats/surveys/{surveyId}/evolution HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
200
OK
{
"grouping": "DAY",
"from": "2026-01-01T00:00:00.000Z",
"to": "2026-01-01T00:00:00.000Z",
"results": [
{
"from": "2026-01-01T00:00:00.000Z",
"to": "2026-01-01T00:00:00.000Z",
"result": {
"roundId": "64f8a0e2d5b7c9a1e3f4a5b6",
"from": "2026-01-01T00:00:00.000Z",
"to": "2026-01-01T00:00:00.000Z",
"nonAnonymous": true,
"nonEnoughEmployees": true,
"periodHasIndex": true,
"periodIndex": 1,
"distribution": [
{
"classification": "NEGATIVE",
"count": 1
}
],
"participants": 1,
"completedParticipants": 1,
"expectedActivatedParticipants": 1,
"expectedInvitedParticipants": 1,
"votes": 1,
"comments": 1,
"blocks": [
{
"blockId": "64f8a0e2d5b7c9a1e3f4a5b6",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"description": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"questions": [
{
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"questionType": "GENERAL",
"order": 1,
"visible": true,
"computeInBlock": true,
"feedbackEnabled": true,
"voteMode": "MANDATORY",
"representation": "IMAGES",
"values": [
{
"id": 1,
"score": 1,
"label": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"imageUrl": "text",
"color": "text"
}
],
"requireNotEmpty": true
}
],
"blockIndex": 1,
"blockHasIndex": true,
"distribution": [
{
"classification": "NEGATIVE",
"count": 1
}
],
"participants": 1,
"completedParticipants": 1,
"votes": 1,
"comments": 1,
"byInvitedQuality": "NO_DATA",
"byActivatedQuality": "NO_DATA"
}
],
"byInvitedQuality": "NO_DATA",
"byActivatedQuality": "NO_DATA",
"scaleNormalized": true,
"scaleMin": 1,
"scaleMax": 1
},
"hierarchyIds": [
"64f8a0e2d5b7c9a1e3f4a5b6"
],
"characteristics": [
{
"characteristicId": "64f8a0e2d5b7c9a1e3f4a5b6",
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"questionType": "DATE",
"value": true
}
],
"groupIds": [
"64f8a0e2d5b7c9a1e3f4a5b6"
]
}
]
}Last updated