Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Question Stats

get

Get's the stats for all the questions of the company of an employee

Authorizations
Query parameters
frominteger · int32Optional

Starting results position

Default: 0
tointeger · int32Optional

End results position

Default: 10
Responses
200

OK

application/json
frominteger · int32Optional
tointeger · int32Optional
totalinteger · int32Optional
noContentbooleanOptional
get/api/v1/employee/stats/{employeeId}/questions
GET /api/v1/employee/stats/{employeeId}/questions HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

{
  "from": 1,
  "to": 1,
  "total": 1,
  "noContent": true,
  "results": [
    {
      "from": "2026-01-01T00:00:00.000Z",
      "to": "2026-01-01T00:00:00.000Z",
      "totalComments": 1,
      "totalVotes": 1,
      "hierarchyName": "text",
      "companyEmployeeQuestion": {
        "id": "64f8a0e2d5b7c9a1e3f4a5b6",
        "title": "text",
        "questionType": "GENERAL",
        "values": [
          {
            "id": 1,
            "score": 1,
            "value": "text",
            "imageUrl": "text",
            "color": "text",
            "reflectionPrompt": "text"
          }
        ],
        "from": "2026-01-01T00:00:00.000Z",
        "to": "2026-01-01T00:00:00.000Z",
        "representation": "IMAGES",
        "feedbackMode": "ON_VOTE",
        "maxCommentLength": 1,
        "feedbackTypes": [
          {
            "feedbackType": "RECOGNITION",
            "privateEnabled": true,
            "nonAnonymousEnabled": true,
            "maxCommentLength": 1,
            "targeted": true,
            "imageURL": "text"
          }
        ]
      },
      "questionType": "text"
    }
  ]
}
get

Get's the stats of a question of the company of an employee

Authorizations
Path parameters
questionIdstringRequired

Id of the question to be retrieved

Example: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
200

OK

application/json

Base stats result: date range, total comments, total votes, hierarchy name.

fromstring · date-timeOptional

Start date of the period

tostring · date-timeOptional

End date of the period

totalCommentsinteger · int64Optional

Total number of comments

totalVotesinteger · int64Optional

Total number of votes

hierarchyNamestringOptional

Name of the hierarchy (area) this result applies to

questionTypestringOptional
get/api/v1/employee/stats/{employeeId}/question/{questionId}
GET /api/v1/employee/stats/{employeeId}/question/{questionId} HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

{
  "from": "2026-01-01T00:00:00.000Z",
  "to": "2026-01-01T00:00:00.000Z",
  "totalComments": 1,
  "totalVotes": 1,
  "hierarchyName": "text",
  "companyEmployeeQuestion": {
    "id": "64f8a0e2d5b7c9a1e3f4a5b6",
    "title": "text",
    "questionType": "GENERAL",
    "values": [
      {
        "id": 1,
        "score": 1,
        "value": "text",
        "imageUrl": "text",
        "color": "text",
        "reflectionPrompt": "text"
      }
    ],
    "from": "2026-01-01T00:00:00.000Z",
    "to": "2026-01-01T00:00:00.000Z",
    "representation": "IMAGES",
    "feedbackMode": "ON_VOTE",
    "maxCommentLength": 1,
    "feedbackTypes": [
      {
        "feedbackType": "RECOGNITION",
        "privateEnabled": true,
        "nonAnonymousEnabled": true,
        "maxCommentLength": 1,
        "targeted": true,
        "imageURL": "text"
      }
    ]
  },
  "questionType": "text"
}

Last updated