Surveys

Create Image Survey

Create an image slider survey campaign in one call. Users swipe through images and rate/compare them.

POST/nfthing/survey/image/create

Headers

FieldTypeRequiredDescription
X-API-KeystringYesYour Membrane API key.

Form fields

FieldTypeRequiredDescription
titlestringYesSurvey title.
descriptionstringYesSurvey description.
content_urlstringNoURL associated with the survey.
categorystringYesSurvey category.
taglinestringYesShort tagline.
reward_amountintegerYesReward amount.
questionstringYesThe image slider question text.
imagesfile[]YesImage files (min 2). Filename (minus extension) becomes the title.

Example response

200 OK
{
  "success": true,
  "message": "Image survey created successfully",
  "data": {
    "id": 248,
    "post_id": "ddf5f17c-2878-4912-b10a-4b4c17e03128",
    "type": "image_survey",
    "title": "Product Feedback",
    "is_live": false,
    "ad_feedback_id": 859,
    "question": "Which style of shoe do you prefer?",
    "total_images": 3,
    "image_options": [
      {
        "title": "Shoe_A",
        "image_url": "https://cdn.example.com/ads/image_survey/uuid_Shoe_A.jpg"
      },
      {
        "title": "Shoe_B",
        "image_url": "https://cdn.example.com/ads/image_survey/uuid_Shoe_B.jpg"
      },
      {
        "title": "Shoe_C",
        "image_url": "https://cdn.example.com/ads/image_survey/uuid_Shoe_C.jpg"
      }
    ]
  }
}