2

I would like to receive webhook calls to my own service when a survey has been completed. I do not want to poll surveymonkey for results. I noticed there is some obscure documentation here: http://help.surveymonkey.com/articles/en_US/kb/WebHook-PUT but it is not useful.

Has anyone had any experience with this?

Joe R
  • 115
  • 1
  • 2
  • 7
  • That page you link to is for Wufoo. The only real option you have here that I know of is to have a custom redirect at the end of your survey that takes you to a page of your choice at the end of a survey. You need a platinum plan for this though ($780 / year) - https://www.surveymonkey.com/pricing/details/ – Miles Cederman-Haysom Jan 18 '16 at 21:36
  • Actually another thing you can check out is Zapier's integration with SurveyMonkey, I think they potentially handle the polling for you https://zapier.com/zapbook/surveymonkey/ – Miles Cederman-Haysom Jan 18 '16 at 21:37
  • thanks @MilesCederman-Haysom however, the link I refer to is on surveymonkey -- which is the exact same as on wufoo site. Clearly I could switch to wufoo as it does exactly what I want (I've even tested it). I don't want to pay for Zapier - on top of SurveyMonkey. I just want surveymonkey to call my web-hook (like wufoo does) after a survey is completed. its a shame SurveyMonkey doesn't do that. – Joe R Jan 19 '16 at 19:40
  • It's on the SurveyMonkey site but it's just the help page for the Wufoo API. We're definitely aware that callbacks would be a great feature to have. – Miles Cederman-Haysom Jan 20 '16 at 17:34

1 Answers1

14

You can setup a webhook with SurveyMonkey API v3. To create a webhook, you would make a request like:

POST /v3/webhooks
{
  "name": "My Survey Completed Webhook",
  "event_type": "response_completed",
  "object_type": "survey",
  "object_ids": ["<survey_id1>", "<survey_id2>" ...],
  "subscription_url": "https://example.com/surveys_responses",
}

Now every time a survey is completed, a notification will be made to the subscription_url specified when creating the webhook. The notification will be a skinny payload with the response_id which you can use to fetch responses:

GET /v3/surveys/{id}/responses/{id}
General Kandalaft
  • 2,215
  • 2
  • 18
  • 25
  • Any idea how to listen for all responses in case we don't know all `object_ids` ahead of time? (Otherwise, it seems I'm left with this cumbersome strategy: set up a 'new survey' webhook which in turn sets up a 'response_completed' webhook with the now-known survey_id) – opyate Jul 10 '18 at 09:32
  • Unfortunately it doesn't currently support getting a webhook for "any" survey. – General Kandalaft Jul 11 '18 at 23:45