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
| Field | Type | Required | Description |
|---|---|---|---|
| X-API-Key | string | Yes | Your Membrane API key. |
Form fields
| Field | Type | Required | Description |
|---|---|---|---|
| title | string | Yes | Survey title. |
| description | string | Yes | Survey description. |
| content_url | string | No | URL associated with the survey. |
| category | string | Yes | Survey category. |
| tagline | string | Yes | Short tagline. |
| reward_amount | integer | Yes | Reward amount. |
| question | string | Yes | The binary (Yes/No) question text. |
| images | file[] | Yes | Image 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"
}
]
}
}