Surveys

Add Survey Questions

Add questions to your survey campaign. Supports four question types: descriptive, text, single_choice, and multiple_choice. Calling this endpoint again with the same post_id replaces the existing questions.

POST/nfthing/survey/questions

Headers

FieldTypeRequiredDescription
X-API-KeystringYesYour Membrane API key.
Content-TypestringYesMust be application/json.

Request body

FieldTypeRequiredDescription
post_idstringYesThe post_id from survey creation.
questionsarrayYesArray of question objects (min 1). Each object has type, question, and (for choice types) options.

Example request

POST /nfthing/survey/questions
{
  "post_id": "bbfea083-da7f-492f-a29d-9f66848de9e4",
  "questions": [
    {
      "type": "descriptive",
      "question": "What tech products are you planning to buy in 2026?"
    },
    {
      "type": "single_choice",
      "question": "Do you prefer buying from local retailers or large platforms?",
      "options": [
        "Local retailers",
        "Large platforms like Amazon",
        "Both equally"
      ]
    },
    {
      "type": "multiple_choice",
      "question": "Which features matter most to you?",
      "options": [
        "Price",
        "Quality",
        "Brand",
        "Reviews"
      ]
    }
  ]
}

Example response

200 OK
{
  "success": true,
  "message": "Questions created successfully",
  "data": {
    "question_id": "10005",
    "post_id": "bbfea083-da7f-492f-a29d-9f66848de9e4",
    "ad_id": 84,
    "question_type": "survey",
    "total_questions": 3
  }
}

Notes

  • Question types: descriptive (open text), text (short text), single_choice (radio, requires options ≥ 2), multiple_choice (checkboxes, requires options ≥ 2).