Integrating with Third-party applications using SurveySparrow API

SurveySparrow API lets you integrate your applications such as CRM, Helpdesk, and HRM Software. With tight integration, you can achieve more solutions like triggering a survey when the ticket is closed in a help desk, or adding a new employee to SurveySparrow as you enter the information in the HRM system. 

Lets see how you can set to send a survey when a ticket is closed in your help desk system:

  1. Create a new app under Settings → Apps & Integrations

  2. Click on "Create a Custom app" button at the top. 

      Screenshot 2021-09-29 at 8.13.17 AM

    1. Enter the name and define the scope as View Survey & Manage Share Survey.


      Screenshot 2021-09-29 at 8.16.39 AM
     

       

    4. Generate your Access Token.

    Screenshot 2021-09-29 at 8.17.44 AM

       4. Now, go to your help desk system and set up a webhook to call SurveySparrow            API endpoint https://api.surveysparrow.com/v1/shares/email/{share_id}.
       5. Set your authorization header  as 'Authorization: Bearer <access-token>'.
       6. You can obtain{share_id} either from the URI of the email share or through our list          shares API.

    In our case, the share id is 176529. 

    Screenshot 2021-09-29 at 8.20.41 AM

     

    7. Set your data as the email you want the survey to be sent (ticket requester email id).
    8. If you are using an on premise system or any programming you can also call the          API through supported programming languages as well.

     A sample request will look like the following:

        curl --request PUT \
      --url '
    https://api.surveysparrow.com/v1/shares/email/{share_id} ' \
      --header 'Authorization: Bearer <token>' \
      --data '{
      "contacts": [
        "
    john@example.com "
      ]

    }'

    Note: You can also refer our API Documentation to explore other API endpoints. 

     

    Did this answer your question?