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
| 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 image slider question text. |
| images | file[] | Yes | Image 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"
}
]
}
}