SpaceForms

    Automate NPS surveys with the SpaceForms API

    Create the NPS survey once, send its link from your email or CRM after every purchase, and pull the answers back on a schedule to calculate your score.

    Get a free API keyRead the API docs

    1. Create the survey

    curl -X POST https://spaceforms.io/api/v1/forms -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
      -d '{"title":"How likely are you to recommend us?","published":true,
           "fields":[{"id":"nps","type":"rating","label":"0-10: how likely are you to recommend us?","required":true},
                     {"id":"why","type":"long_text","label":"What is the main reason for your score?"}]}'

    2. Send the link

    Put the returned url in your post-purchase email or trigger it from your CRM.

    3. Pull answers and score

    Fetch /forms/{id}/responses nightly. NPS = % promoters (9–10) minus % detractors (0–6). Use our free NPS calculator to check the maths.

    Frequently asked questions

    What does it cost?
    API access is included on every account, including free. Free accounts can create unlimited forms and collect unlimited responses, and see the 10 most recent answers per form. Pro (from $14/month) shows every answer on every form.

    Related