Skip to main content

How to use the Post to API function in the Questionnaire plugin

Send questionnaire responses automatically to external services or databases using the Post to API function.

Amr Alshareef avatar
Written by Amr Alshareef
Updated over a week ago

The Post to API feature lets you connect your questionnaire responses to any external system via an API endpoint. This is useful if you want to store responses in a tool like Google Sheets, trigger automated workflows, or send user data to other services for analysis. When enabled, all questionnaire data—including user details, tags, and answers—will be posted to your chosen API endpoint in real time.


Requirements

  • You must have the Questionnaire plugin installed and configured with questions

  • An active API endpoint (such as Google Sheets, Zapier, or custom webhook)


How to use the Post to API function in the Questionnaire plugin

  1. Log in, go to Builder in the left navigation

  2. Go to your Questionnaire plugin and click the Settings tab

    • Under General, toggle Post to API on

    • Enter the API endpoint URL where you want to send the questionnaire responses

    • Choose your Content Type:

      1. text/plain for simple responses

      2. application/json for structured responses (recommended)

    • Click Save

  3. Test your integration

    • Submit a sample questionnaire response from your app

    • Open your connected system (e.g., Google Sheets or webhook viewer) to verify data was received

    • Each submission includes:

      1. User metadata (ID, username, email, tags, etc.)

      2. Question details (question ID, title, type, and body)

      3. Answer content (text or image URL depending on the question type)

    • Filter and process your responses externally

      1. Use filters or formulas (e.g., in Google Sheets) to view specific data like email addresses or answers

      2. You can create automations such as sending confirmation emails or triggering follow-up actions


Pro tips

  • Use application/json format to simplify integration with most third-party tools

  • Test with a simple webhook first (like Webhook.site) before connecting to production systems

  • For Google Sheets connections, use Google Apps Script to automatically process or route new entries

  • Highlight key columns like user email and response text to make follow-up automation easier

Did this answer your question?