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

Survey Report Resource

get
Authorizations
SessionIdstringRequired

SessionId

Path parameters
surveyIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
roundIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
200

OK

*/*

Lightweight survey report representation for listings

idstringOptional

Unique identifier for this report

Example: 64f8a0e2d5b7c9a1e3f4a5b6
forUsersstring[]Optional

User IDs for manager reports. Only populated when the report is for managers, containing the set of manager user IDs that share the same segmentation.

Example: 64f8a0e2d5b7c9a1e3f4a5b6
targetHierarchyIdstringOptional

Target hierarchy ID for manager reports. This represents the specific hierarchy area from the manager's managed areas that this report is generated for. Null for admin reports or when not applicable.

Example: 64f8a0e2d5b7c9a1e3f4a5b6
statusstring · enumOptional

Status of the report generation: ONGOING (being generated), DONE (completed successfully), RETRYING (failed, will retry), FAILED (failed after max retries)

Possible values:
groupIdsstring[]Optional

Group IDs used to filter the data analyzed in this report. Empty set means all groups.

Example: 64f8a0e2d5b7c9a1e3f4a5b6
get/api/v1/company/surveys/reports/{surveyId}/{roundId}
GET /api/v1/company/surveys/reports/{surveyId}/{roundId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
200

OK

[
  {
    "id": "64f8a0e2d5b7c9a1e3f4a5b6",
    "forUsers": [
      "64f8a0e2d5b7c9a1e3f4a5b6"
    ],
    "targetHierarchyId": "64f8a0e2d5b7c9a1e3f4a5b6",
    "status": "ONGOING",
    "reportTypeTitle": {
      "defaultValue": "Happy birthday!",
      "langValues": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "valid": true
    },
    "characteristics": [
      {
        "characteristicId": "64f8a0e2d5b7c9a1e3f4a5b6",
        "id": "64f8a0e2d5b7c9a1e3f4a5b6",
        "questionType": "DATE",
        "value": true
      }
    ],
    "groupIds": [
      "64f8a0e2d5b7c9a1e3f4a5b6"
    ]
  }
]
get
Authorizations
SessionIdstringRequired

SessionId

Path parameters
reportIdstringRequiredExample: 64f8a0e2d5b7c9a1e3f4a5b6
Responses
200

OK

*/*

Survey report entity containing AI-generated analysis sections

idstringOptional

Unique identifier for this report

Example: 64f8a0e2d5b7c9a1e3f4a5b6
companyIdstringOptional

Company ID this report belongs to

Example: 64f8a0e2d5b7c9a1e3f4a5b6
surveyIdstringOptional

Survey ID this report analyzes

Example: 64f8a0e2d5b7c9a1e3f4a5b6
roundIdstringOptional

Survey round ID this report analyzes

Example: 64f8a0e2d5b7c9a1e3f4a5b6
generatedAtstring · date-timeOptional

Timestamp when the report was generated

configIdstringOptional

The config/template ID as MongoDB ObjectId. Determines which report configuration was used.

Example: 64f8a0e2d5b7c9a1e3f4a5b6
forUsersstring[]Optional

User IDs for manager reports. Only populated when configId indicates a manager report, containing the set of manager user IDs that share the same segmentation (hierarchy, segments, groups).

Example: 64f8a0e2d5b7c9a1e3f4a5b6
targetHierarchyIdstringOptional

Target hierarchy ID for manager reports. This represents the specific hierarchy area from the manager's managed areas that this report is generated for. Null for admin reports or when not applicable.

Example: 64f8a0e2d5b7c9a1e3f4a5b6
reportObjectivestringOptional

Report objective or purpose that guided the AI generation (e.g., 'identify key drivers of satisfaction')

tonestringOptional

Tone used in the report content (e.g., 'professional', 'conversational', 'analytical')

hierarchyIdsstring[]Optional

Organizational hierarchy IDs used to filter the data analyzed in this report. Empty set means all hierarchies.

Example: 64f8a0e2d5b7c9a1e3f4a5b6
groupIdsstring[]Optional

Group IDs used to filter the data analyzed in this report. Empty set means all groups.

Example: 64f8a0e2d5b7c9a1e3f4a5b6
scaleNormalizedbooleanOptional

Indicates if the survey index scale has been normalized (e.g., to a 0–100 scale).

scaleMininteger · int32Optional

Minimum value of the survey index scale used in the analytics for this report.

scaleMaxinteger · int32Optional

Maximum value of the survey index scale used in the analytics for this report.

reportStatusstring · enumOptional

Status of the report: SURVEY_ONGOING (survey not expired), ONGOING/DONE/RETRYING/FAILED (report generation status when survey is expired)

Possible values:
get/api/v1/company/surveys/reports/{reportId}
GET /api/v1/company/surveys/reports/{reportId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
200

OK

{
  "id": "64f8a0e2d5b7c9a1e3f4a5b6",
  "companyId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "surveyId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "roundId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "generatedAt": "2026-01-01T00:00:00.000Z",
  "configId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "forUsers": [
    "64f8a0e2d5b7c9a1e3f4a5b6"
  ],
  "targetHierarchyId": "64f8a0e2d5b7c9a1e3f4a5b6",
  "reportObjective": "text",
  "tone": "text",
  "reportTypeTitle": {
    "defaultValue": "Happy birthday!",
    "langValues": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "valid": true
  },
  "hierarchyIds": [
    "64f8a0e2d5b7c9a1e3f4a5b6"
  ],
  "characteristics": [
    {
      "characteristicId": "64f8a0e2d5b7c9a1e3f4a5b6",
      "id": "64f8a0e2d5b7c9a1e3f4a5b6",
      "questionType": "DATE",
      "value": true
    }
  ],
  "groupIds": [
    "64f8a0e2d5b7c9a1e3f4a5b6"
  ],
  "sections": [
    {
      "sectionId": "text",
      "type": "OVERVIEW",
      "title": {
        "defaultValue": "Happy birthday!",
        "langValues": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "valid": true
      },
      "content": {
        "defaultValue": "Happy birthday!",
        "langValues": {
          "ANY_ADDITIONAL_PROPERTY": "text"
        },
        "valid": true
      }
    }
  ],
  "scaleNormalized": true,
  "scaleMin": 1,
  "scaleMax": 1,
  "reportStatus": "SURVEY_ONGOING"
}

Last updated