Vote
Get the vote results
OK
Base stats result: date range, total comments, total votes, hierarchy name.
Start date of the period
End date of the period
Total number of comments
Total number of votes
Name of the hierarchy (area) this result applies to
GET /api/v1/employee/vote/{employeeId} HTTP/1.1
Host: api.happyforce.com
Accept: */*
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"
}
]Performs an employee vote, and return the results
64f8a0e2d5b7c9a1e3f4a5b6Type of feedback
OK
Result of a vote: extra content to show after voting (e.g. quote, celebration).
Type of extra content to display after the vote
POST /api/v1/employee/vote/{employeeId} HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 256
[
{
"questionId": "64f8a0e2d5b7c9a1e3f4a5b6",
"selectedValue": 1,
"selectedValues": [
1
],
"message": "text",
"date": "2026-01-01T00:00:00.000Z",
"feedbackType": "RECOGNITION",
"additionalFields": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"privated": true,
"notAnonymous": true
}
]OK
{
"afterVote": "HAS_QUOTE"
}Delete the vote results of the current day
OK
Base stats result: date range, total comments, total votes, hierarchy name.
Start date of the period
End date of the period
Total number of comments
Total number of votes
Name of the hierarchy (area) this result applies to
DELETE /api/v1/employee/vote/{employeeId} HTTP/1.1
Host: api.happyforce.com
Accept: */*
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"
}
]Checks a reply for moderation before posting
64f8a0e2d5b7c9a1e3f4a5b6Type of feedback
OK
Result of feedback verification/moderation: result type, moderation action, and optional message/suggestion.
Verification result
Moderation type applied
Optional message (e.g. reason for block)
Optional suggestion for the user (e.g. when moderation type is SUGGESTION)
POST /api/v1/employee/vote/{employeeId}/verify HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 254
{
"questionId": "64f8a0e2d5b7c9a1e3f4a5b6",
"selectedValue": 1,
"selectedValues": [
1
],
"message": "text",
"date": "2026-01-01T00:00:00.000Z",
"feedbackType": "RECOGNITION",
"additionalFields": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"privated": true,
"notAnonymous": true
}OK
{
"result": "VALID",
"moderationType": "SUGGESTION",
"message": "text",
"suggestion": "text"
}Adds a comment to a vote the employee already cast for a question (two-step flow: vote first, comment after)
Comment to attach to a vote already cast for a question
Question the vote (and therefore the comment) belongs to
64f8a0e2d5b7c9a1e3f4a5b6Emission date of the comment
Comment text
OK
No content
POST /api/v1/employee/vote/{employeeId}/comment HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 92
{
"questionId": "64f8a0e2d5b7c9a1e3f4a5b6",
"date": "2026-01-01T00:00:00.000Z",
"message": "text"
}OK
No content
Get's the pending to answer questions for an employee
true64f8a0e2d5b7c9a1e3f4a5b6OK
The details of the question to be created
64f8a0e2d5b7c9a1e3f4a5b664f8a0e2d5b7c9a1e3f4a5b664f8a0e2d5b7c9a1e3f4a5b6Type of question used in company surveys or questionnaires
64f8a0e2d5b7c9a1e3f4a5b664f8a0e2d5b7c9a1e3f4a5b6Modes of question voting in a survey or feedback form. Defines whether a question is mandatory, optional, or deferred.
Status of a question in a survey or questionnaire
GET /api/v1/employee/vote/{employeeId}/questions HTTP/1.1
Host: api.happyforce.com
Accept: */*
OK
[
{
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"primary": true,
"createdOn": "2026-01-01T00:00:00.000Z",
"activationDate": "2026-01-01T00:00:00.000Z",
"createdBy": "64f8a0e2d5b7c9a1e3f4a5b6",
"updatedBy": "64f8a0e2d5b7c9a1e3f4a5b6",
"questionType": "GENERAL",
"hierarchyIds": [
"64f8a0e2d5b7c9a1e3f4a5b6"
],
"characteristics": [
{
"characteristicId": "64f8a0e2d5b7c9a1e3f4a5b6",
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"questionType": "DATE",
"value": true
}
],
"groupIds": [
"64f8a0e2d5b7c9a1e3f4a5b6"
],
"values": [
{
"id": 1,
"score": 1,
"label": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"imageUrl": "text",
"color": "text"
}
],
"resultValues": [
{
"id": 1,
"score": 1,
"label": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"imageUrl": "text",
"color": "text"
}
],
"notifyByPush": true,
"notifyByMail": true,
"notified": true,
"privated": true,
"nonAnonymous": true,
"voteMode": "MANDATORY",
"feedbackEnabled": true,
"minSelection": 1,
"maxSelection": 1,
"status": "ANY",
"activationRule": {
"ruleType": "SINGLE",
"from": "2026-01-01T00:00:00.000Z",
"to": "2026-01-01T00:00:00.000Z",
"cronExpression": "text",
"startAt": "2026-01-01T00:00:00.000Z",
"endAt": "2026-01-01T00:00:00.000Z",
"duration": 1
},
"activations": [
{
"from": "2026-01-01T00:00:00.000Z",
"to": "2026-01-01T00:00:00.000Z"
}
]
}
]Last updated