Docs

Docs

x-cpod-domain: surveys

Surveys

Survey definitions, individual responses, and aggregate analytics for feedback and engagement measurement.

Try in explorer client.surveys.surveys · client.surveys.responses · client.surveys.analytics

Survey

A survey definition with questions and configuration.

REST path/api/v1/surveys/surveys
Operations
listgetcreateupdatedelete
SDK
// list — returns only your records; add filters/search:
await client.surveys.surveys.surveys.list()

// create:
await client.surveys.surveys.surveys.create({
  title: "example title",
  id: "rec_01HXEXAMPLE",
  description: "example description",
  status: "draft",
  created_at: "2026-01-01T00:00:00Z",
})
FieldTypeDescription
iduuid—
title*string—
descriptionstring—
statusenum—draftactiveclosedarchived
questionsjson—
created_atdate-time—

SurveyResponse

An individual response to a survey.

REST path/api/v1/surveys/responses
Operations
listgetcreatedelete
SDK
// list — returns only your records; add filters/search:
await client.surveys.surveys.responses.list()

// create:
await client.surveys.surveys.responses.create({
  id: "rec_01HXEXAMPLE",
  survey_id: "survey_01HXEXAMPLE",
  respondent_id: "rec_01HXEXAMPLE",
  submitted_at: "2026-01-01T00:00:00Z",
})
FieldTypeDescription
iduuid—
survey_iduuid→Survey—
respondent_iduuid—
answersjson—
submitted_atdate-time—

SurveyAnalytics

Aggregate analytics and benchmarks for a survey.

REST path/api/v1/surveys/analytics
Operations
listget
SDK
// list — returns only your records; add filters/search:
await client.surveys.surveys.analytics.list()
FieldTypeDescription
iduuid—
survey_iduuid→Survey—
response_countinteger—
completion_ratenumber—
periodstring—