API Reference
API Reference

/surveys/templates

Returns the account's survey master templates. Required scope: r_surveys.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
🚧

This endpoint uses the r_surveys scope, which must be enabled through the Integrations section found within the Settings menu.

Requires a user token whose member has permission to view survey cycles, or an account token together with the member_id query parameter of such a member (the request is then evaluated with that member's permissions). An account token without member_id gets 403 Account tokens need a member_id for this operation. The account must have the Surveys feature enabled.

Only the latest, non-deleted master templates in the survey category are returned. Performance review templates are not included.

Pagination

limit and offset are optional. When both are omitted, every matching template is returned in a single response.

Results

{
  "total_count": 1,
  "templates": [
    {
      "id": "b2f0c1de-5a7e-4c1b-9d2a-0f6c3e8a91d4",
      "title": "Quarterly Engagement Pulse",
      "updated_at": "2025-01-10T09:30:00.000Z",
      "version": 2,
      "questionnaire": {
        "sections": [
          {
            "id": "2501ee00-0002-51cc-8e1c-6b29548a3d01",
            "body": "<p>Your experience</p>",
            "questions": [
              {
                "id": "2501ee00-0003-51cc-8e1c-6b29548a3d01",
                "body": "<p>What part of your role gives you the most energy right now?</p>",
                "type": "paragraph"
              },
              {
                "id": "2501ee00-0005-51cc-8e1c-6b29548a3d01",
                "body": "<p>How would you rate your work-life balance?</p>",
                "type": "star_rated",
                "metadata": {
                  "mandatory": true,
                  "rating_options": {
                    "1": "Poor",
                    "2": "Fair",
                    "3": "Good",
                    "4": "Very good",
                    "5": "Excellent"
                  }
                }
              }
            ]
          }
        ]
      },
      "default": false,
      "sample": false,
      "disabled": false
    }
  ]
}
keytypedescription
total_countintegerNumber of survey templates in the account
templatesarrayArray of template objects (see GET /surveys/templates/:id for the template payload)

Error responses

StatusCondition
400Invalid query parameters (limit < 1 or offset < 0)
401Missing or invalid token
403Missing r_surveys scope, account token without member_id, the Surveys feature is not enabled for the account, or the user lacks permission to view survey cycles

Error bodies: 401 / 403 responses are plain text holding the reason (e.g. Required scopes missing: ["r_surveys"]). 404 responses are JSON of the form {"message": "..."}. 400 validation errors are JSON keyed by the offending field, e.g. {"limit": {"code": "number.min", "message": "\"limit\" must be greater than or equal to 1"}}.

Query Params
integer
≥ 1

Maximum number of templates to return. When omitted, all matching templates are returned.

integer
≥ 0

Number of templates to skip (for pagination).

string

Required when using an account token: the member (SPI key, from GET /members) to act as. The request is evaluated with that member's permissions; without it the request gets 403. Ignored for user tokens.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/plain