Surveys

Create Binary Survey

Create a binary (Yes/No) survey campaign in one call. Each image is shown individually to the user who answers Yes or No for each one.

POST/nfthing/survey/binary/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 binary (Yes/No) question text.
imagesfile[]YesImage files (min 2). Filename (minus extension) becomes the title.

Example response

200 OK
{
  "success": true,
  "message": "Binary survey created successfully",
  "data": {
    "id": 233,
    "post_id": "67757eac-a100-4207-9106-cd39b24492d5",
    "type": "binary_survey",
    "title": "Product Feedback",
    "is_live": false,
    "ad_feedback_id": 796,
    "question": "Do you like this product?",
    "total_images": 2,
    "image_options": [
      {
        "title": "Product_A",
        "image_url": "https://cdn.example.com/ads/binary_survey/uuid_Product_A.jpg"
      },
      {
        "title": "Product_B",
        "image_url": "https://cdn.example.com/ads/binary_survey/uuid_Product_B.jpg"
      }
    ]
  }
}