Skip to main content

Login Redirect Entry Points

This document provides entry points for redirecting to or embedding WeSurvey.
Note:

  1. This is not a backend request API, it's only used as an entry point for users to directly access or third-party login to the survey;
  2. Please avoid directly concatenating page URLs like https://wesurvey.com/edit.html?tid=30 for embedding, to prevent link failure due to WeSurvey modifications.
  3. This API does not require access_token

Redirect with Third-party Login State

Guide users to click or directly HTTP 302 redirect to the following link:

https://wesurvey.com/api/v2/redirect?appid={appid}&code={code}&action={action}

Note: The API will redirect to corresponding pages based on different actions, code comes from Get One-time Login Code.

  • Survey Editor View
actionFunctionOther Required ParametersExample
my_surveysPersonal Survey Listhttps://wesurvey.com/api/v2/redirect?action=my_surveys
org_surveysTeam Survey Listorg_id (Team ID)https://wesurvey.com/api/v2/redirect?action=org_surveys&org_id=60000208206
survey_createCreate Personal Surveyhttps://wesurvey.com/api/v2/redirect?action=survey_create
org_survey_createCreate Team Surveyorg_id (Team ID)https://wesurvey.com/api/v2/redirect?action=org_survey_create&org_id=60000208206
org_survey_create_in_projectCreate Team Survey in Projectorg_id (Team ID)
project_id (Project ID)
Can be obtained from Shared Project List API
https://wesurvey.com/api/v2/redirect?action=org_survey_create_in_project&org_id=60000208206&project_id=391504
survey_editEdit Surveysurvey_id (Survey ID)https://wesurvey.com/api/v2/redirect?action=survey_edit&survey_id=8068279
survey_settingSurvey Settingssurvey_id (Survey ID)
survey_overviewStatistics Resultssurvey_id (Survey ID)
survey_printPrint Surveysurvey_id (Survey ID)
survey_skinSurvey Themesurvey_id (Survey ID)
survey_dslCustom Logic Editorsurvey_id (Survey ID)
org_infoTeam Informationorg_id (Team ID)
org_contactsTeam Contactsorg_id (Team ID)
answer_detailResponse Detailsurvey_id (Survey ID) answer_id (Response ID)https://wesurvey.com/api/v2/redirect?action=answer_detail&survey_id=8068279&answer_id=1
exam_survey_createCreate Personal Exam Surveyhttps://wesurvey.com/api/v2/redirect?action=exam_survey_create
org_exam_survey_createCreate Team Exam Surveyorg_id (Team ID)https://wesurvey.com/api/v2/redirect?action=org_exam_survey_create&org_id=60000208206
exam_survey_overviewExam Gradingsurvey_id (Survey ID)
exam_survey_answersExam Response Datasurvey_id (Survey ID)
ai_survey_createCreate AI Surveyorg_id (Team ID)https://wesurvey.com/api/v2/redirect?action=ai_survey_create&org_id=60000208206
ai_survey_create_in_projectCreate AI Survey in Projectorg_id (Team ID)
project_id (Project ID)
Can be obtained from Shared Project List API
https://wesurvey.com/api/v2/redirect?action=ai_survey_create_in_project&org_id=60000208206&project_id=391504
  • Survey Respondent View
actionFunctionOther Required ParametersExample
survey_collectSurvey Response Pagesurvey_id (Survey ID), survey_hash (Survey Hash)https://wesurvey.com/api/v2/redirect?action=survey_collect&survey_id=8068279&survey_hash=0418

Direct Redirect

After performing one of the above Redirect with Third-party Login State, the browser has set the login state. Subsequent redirects can omit the code parameter, avoiding the need to Get One-time Login Code for each page.