Skip to content

Get a survey question

Workforce module

GET/survey-questions/{id}surveyQuestions.get

A question of a pulse survey, in order. Returns one survey question with its `ETag`. A survey question the caller may not see returns 404.

  • Requires the capability knowledge.sop.read.
  • OAuth scopes: knowledge.
  • Error statuses: 400, 401, 404, 429. Errors are RFC 9457 problem details.

Path and query parameters

surveyQuestions.get: Path and query parameters
FieldTypeRequiredDescription
idstring (uuid)YesIdentifier of the survey question.
fieldsFieldsNoSparse fieldset: a comma-separated list of top-level fields to return. `id` is always returned.Constraints: pattern ^[a-z_][a-z0-9_]*(,[a-z_][a-z0-9_]*)*$

Response 200: SurveyQuestion

surveyQuestions.get: SurveyQuestion
FieldTypeRequiredDescription
idstring (uuid)YesIdentifier of the survey question.
org_idstring (uuid)YesIdentifier of the owning organization, derived from the parent row and never accepted from the caller.
created_atstring (date-time)YesWhen the row was created.
created_bystring (uuid) | nullYesPerson who created the row; null for seed, platform or system writes.
updated_atstring (date-time)YesWhen the row was last updated.
updated_bystring (uuid) | nullYesPerson who last updated the row; null for seed, platform or system writes.
survey_idstring (uuid)YesIdentifier of the survey.
positionintegerYesOrder, from 1.Constraints: range 1 to any
promptstringYesQuestion text.Constraints: length 1 to 500
question_kind"Scale" | "Choice" | "Text"YesQuestion kind.
choicesarray of string | nullYesOptions of a Choice question.
scale_maxinteger | nullYesTop of a Scale question: 5 or 10.Constraints: range 5 to any
is_requiredbooleanYesWhether a response must answer it.
{
  "id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "org_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "created_at": "2026-10-08T14:30:00Z",
  "created_by": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "updated_at": "2026-10-08T14:30:00Z",
  "updated_by": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "survey_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "position": 1,
  "prompt": "How safe did the load-in feel?",
  "question_kind": "Scale",
  "choices": [
    "Morning",
    "Night"
  ],
  "scale_max": 5,
  "is_required": true
}

Code samples

curl -X GET "$XOS_BASE_URL/survey-questions/0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f" \
  -H "Authorization: Bearer $XOS_API_KEY"
const { data, etag } = await xos.surveyQuestions.get("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f");
response = xos.survey_questions.get("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f")
xos survey-questions get 0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f