Surveys

Create Survey Campaign

Create a new survey campaign. The campaign is created in a stopped state (is_live: false). Use the Toggle Campaign Live endpoint to start it.

POST/nfthing/survey/create

Headers

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

Request body

FieldTypeRequiredDescription
titlestringYesSurvey title.
descriptionstringYesSurvey description.
content_urlstringNoURL associated with the survey.
categorystringYesSurvey category (e.g. "technology").
taglinestringYesShort tagline for the survey.
reward_amountintegerYesReward amount for completing the survey.

Example request

POST /nfthing/survey/create
{
  "title": "Tech Survey 2026",
  "description": "Share your thoughts on the latest tech trends",
  "content_url": "https://example.com/tech-survey",
  "category": "technology",
  "tagline": "Your opinion matters",
  "reward_amount": 15
}

Example response

200 OK
{
  "success": true,
  "message": "Survey campaign created successfully",
  "data": {
    "id": 84,
    "post_id": "bbfea083-da7f-492f-a29d-9f66848de9e4",
    "type": "survey",
    "title": "Tech Survey 2026",
    "is_live": false
  }
}

Notes

  • Save the post_id from the response — you'll need it to add questions and toggle the campaign live.