GET/smart-forms/:id/sessions

List Sessions

Retrieve a paginated list of sessions for a smart form

Scope: SMART_FORMS_READ

Overview

Returns a paginated list of sessions for the specified smart form. Each session includes derived fields such as questionsAnswered and extracted analysis scores (sentiment, completeness). Supports filtering by status and keyword search on respondent identity fields.

Request

GET/smart-forms/:id/sessions

Headers

HeaderValue
AuthorizationBearer fxk_live_<your-api-key>

Path Parameters

Query Parameters

Example Request

curl -X GET "https://api.formfex.com/api/v1/public/smart-forms/SMART_FORM_ID/sessions?page=1&limit=20&status=COMPLETED" \
  -H "Authorization: Bearer $FORMFEX_API_KEY"

Response

Response Fields

FieldTypeDescription
sessionsarrayArray of session summary objects
sessions[].idstring (UUID)Session identifier
sessions[].statusstringACTIVE, ANALYZING, COMPLETED, or EXPIRED
sessions[].respondentEmailstring | nullRespondent's email address
sessions[].respondentFirstNamestring | nullRespondent's first name
sessions[].respondentLastNamestring | nullRespondent's last name
sessions[].completionTypestring | nullnatural (all questions answered) or early_exit (exited before last question)
sessions[].questionsAnswerednumberNumber of questions answered in this session
sessions[].maxQuestionsnumberMaximum configured questions for the smart form
sessions[].sentimentScorenumber | nullAI-computed sentiment score (−1.0 to 1.0). null if not yet analyzed.
sessions[].completenessScorenumber | nullAI-computed completeness score (0.0 to 1.0). null if not yet analyzed.
sessions[].mainSubjectstring | nullAI-extracted main topic or subject of the session. null if not yet analyzed.
sessions[].completedAtstring | nullISO 8601 completion timestamp
sessions[].createdAtstring (ISO 8601)Session start timestamp
totalnumberTotal matching sessions
pagenumberCurrent page number
limitnumberResults per page
hasMorebooleanWhether more pages are available

Analysis Scores

sentimentScore, completenessScore, and mainSubject are populated after the AI analysis job completes. Sessions in ANALYZING status will have null for these fields.

n8n

In n8n, this operation is available as Get Many Sessions under the Smart Form resource in the Formfex node.