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

Surveys

get

Get's pending survey status for a given employee

Authorizations
Path parameters
surveyRoundIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
200

OK

application/json

The details of the survey to be created

idstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
companyIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
createdOnstring · date-timeOptional
createdBystringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
updatedBystringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
updatedOnstring · date-timeOptional
managerAccessEnabledbooleanOptional
allowedViewerIdsstring[]Optional

Per-survey viewer allow-list: ids of the managers allowed to view this survey's results. Null/empty means every manager of the targeted area may view the results; when populated, only these managers (plus admins/advisors and the creator) may. Serialized as an array of person id strings.

Example: 64f8a0e2d5b7c9a1e3f4a5b6
notAnonymousbooleanOptional
canUpdatebooleanOptional
canViewResultsbooleanOptional
statusstring · enumOptional

Status of a survey or questionnaire

Possible values:
hasReportsbooleanOptional
get/api/v1/employee/surveys/{employeeId}/survey/{surveyRoundId}
GET /api/v1/employee/surveys/{employeeId}/survey/{surveyRoundId} HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

{
  "id": "64f8a0e2d5b7c9a1e3f4a5b6",
  "companyId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "createdOn": "2026-01-01T00:00:00.000Z",
  "createdBy": "64f8a0e2d5b7c9a1e3f4a5b6",
  "updatedBy": "64f8a0e2d5b7c9a1e3f4a5b6",
  "updatedOn": "2026-01-01T00:00:00.000Z",
  "managerAccessEnabled": true,
  "allowedViewerIds": [
    "64f8a0e2d5b7c9a1e3f4a5b6"
  ],
  "notAnonymous": true,
  "canUpdate": true,
  "canViewResults": true,
  "title": {
    "defaultValue": "Happy birthday!",
    "langValues": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "valid": true
  },
  "description": {
    "defaultValue": "Happy birthday!",
    "langValues": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "valid": true
  },
  "schedulePlan": {
    "roundTitle": {
      "defaultValue": "Happy birthday!",
      "langValues": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "valid": true
    },
    "appSurvey": true,
    "mailSurvey": true,
    "communicationTitle": {
      "defaultValue": "Happy birthday!",
      "langValues": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "valid": true
    },
    "communicationDescription": {
      "defaultValue": "Happy birthday!",
      "langValues": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "valid": true
    },
    "activationRule": {
      "ruleType": "SINGLE",
      "ruleExpression": "text",
      "startAt": "2026-01-01T00:00:00.000Z",
      "endAt": "2026-01-01T00:00:00.000Z",
      "duration": 1
    },
    "hierarchyIds": [
      "64f8a0e2d5b7c9a1e3f4a5b6"
    ],
    "characteristics": [
      {
        "characteristicId": "64f8a0e2d5b7c9a1e3f4a5b6",
        "id": "64f8a0e2d5b7c9a1e3f4a5b6",
        "questionType": "DATE",
        "value": true
      }
    ],
    "groupIds": [
      "64f8a0e2d5b7c9a1e3f4a5b6"
    ],
    "paused": true,
    "archived": true,
    "mandatory": true,
    "status": "PAUSED"
  },
  "rounds": [
    {
      "id": "64f8a0e2d5b7c9a1e3f4a5b6",
      "title": {
        "defaultValue": "Happy birthday!",
        "langValues": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "valid": true
      },
      "from": "2026-01-01T00:00:00.000Z",
      "to": "2026-01-01T00:00:00.000Z"
    }
  ],
  "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
        }
      ]
    }
  ],
  "status": "PAUSED",
  "hasReports": true
}
post

Post a survey answer status for a given employee

Authorizations
Path parameters
surveyRoundIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Body
questionIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
selectedValueinteger · int32Optional
selectedValuesinteger · int32[]Optional
messagestringOptional
datestring · date-timeOptional
feedbackTypestring · enumOptional

Type of feedback

Possible values:
privatedbooleanOptional
notAnonymousbooleanOptional
Responses
200

OK

No content

post/api/v1/employee/surveys/{employeeId}/survey/{surveyRoundId}
POST /api/v1/employee/surveys/{employeeId}/survey/{surveyRoundId} 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
}
200

OK

No content

post

Checks a reply for moderation before posting

Authorizations
Body
questionIdstringOptionalExample: 64f8a0e2d5b7c9a1e3f4a5b6
selectedValueinteger · int32Optional
selectedValuesinteger · int32[]Optional
messagestringOptional
datestring · date-timeOptional
feedbackTypestring · enumOptional

Type of feedback

Possible values:
privatedbooleanOptional
notAnonymousbooleanOptional
Responses
200

OK

application/json

Result of feedback verification/moderation: result type, moderation action, and optional message/suggestion.

resultstring · enumOptional

Verification result

Possible values:
moderationTypestring · enumOptional

Moderation type applied

Possible values:
messagestringOptional

Optional message (e.g. reason for block)

suggestionstringOptional

Optional suggestion for the user (e.g. when moderation type is SUGGESTION)

post/api/v1/employee/surveys/{employeeId}/survey/{surveyRoundId}/verify
POST /api/v1/employee/surveys/{employeeId}/survey/{surveyRoundId}/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
}
200

OK

{
  "result": "VALID",
  "moderationType": "SUGGESTION",
  "message": "text",
  "suggestion": "text"
}
get

Get's pending survey status for a given employee

Authorizations
Responses
200

OK

application/json

Pending survey/round status: ids, title, description, dates, question counts, time, signature mode, mandatory.

roundIdstringOptional

Survey round identifier

Example: 64f8a0e2d5b7c9a1e3f4a5b6
surveyIdstringOptional

Survey identifier

Example: 64f8a0e2d5b7c9a1e3f4a5b6
titlestringOptional

Title

descriptionstringOptional

Description

imagePathstringOptional

URL or path to the image

endDatestring · date-timeOptional

End date

totalQuestionsinteger · int32Optional

Total number of questions

pendingQuestionsinteger · int32Optional

Number of pending questions

totalTimeinteger · int32Optional

Total time (e.g. in minutes)

signatureModestring · enumOptional

Signature mode

Possible values:
mandatorybooleanOptional

Whether the survey is mandatory

get/api/v1/employee/surveys/{employeeId}/status
GET /api/v1/employee/surveys/{employeeId}/status HTTP/1.1
Host: api.happyforce.com
Accept: */*
200

OK

[
  {
    "roundId": "64f8a0e2d5b7c9a1e3f4a5b6",
    "surveyId": "64f8a0e2d5b7c9a1e3f4a5b6",
    "title": "text",
    "description": "text",
    "imagePath": "text",
    "endDate": "2026-01-01T00:00:00.000Z",
    "totalQuestions": 1,
    "pendingQuestions": 1,
    "totalTime": 1,
    "signatureMode": "ANONYMOUS",
    "mandatory": true
  }
]

Last updated