Developers

GetSurvey

Usage

Use this method to return the URL of a survey identified with a surveyId parameter. A session must be initiated before you can request the survey ID.

Mandatory parameters

Name Type Description
surveyId integer The survey identifier, which must match an existing Survey ID stored in the Chat instance. If necessary, contact Inbenta support to activate Surveys in your instance.

Optional parameters

This method has no optional parameters.

Response data format

This method calls the Chat API’s GET /surveys/{surveyId} endpoint. It returns a Promise with the API response data. Please refer to the Responses section of the endpoint on the Chat API Routes page for the response format.

Example

chatbot.api.getSurvey(<survey_id>);