Skip to content

Get All Questions in a Namespace

Retrieve all available questions within a specific namespace.


Overview

This endpoint returns a complete list of questions available for a particular namespace. Different namespaces may have access to different question sets based on their configuration.

Method: GET
Endpoint:
/api/v1/namespaces/:namespaceId/questions

Requires authentication.


Request

Headers

http
x-api-key: {your_api_key}  # Required
Accept: application/json

Path Parameters

ParameterTypeRequiredDescription
namespaceIdstringNamespace unique ID

Response

json
{
  "questions": {
    "fhn1": {},
    "fhn2": {},
    "fhn3": {},
    "fhn4": {},
    "fhn5": {},
    "fhn6": {},
    "fhn7": {},
    "fhn8": {},
    "age": {},
    "education": {},
    "income": {},
    "region": {},
    "fin_health": {},
    "nps": {},
    "csat": {},
    "emailNameZip": {},
    "ethnicity": {},
    "orientation": {},
    "gender": {},
    "trans": {}
  }
}

The response contains question objects with properties that vary by question type. The available questions may differ based on the namespace.


Error Responses

  • 500 Internal Server Error – If the namespace does not exist
json
{
  "error": "namespace does not exist"
}

Notes

  • This endpoint requires authentication
  • The set of available questions depends on the namespace configuration
  • Question objects contain metadata and configuration options relevant to each question type