Start a New Session

POST {{baseUrl}}/surveys/:surveyId/sessions

A sessionId is returned which is used for subsequent requests. <!--From Readme--> This API uses a 10-second timeout instead of the default timeout.

Limited Question Types Allowed

This API is limited to surveys with Multiple Choice, Text Entry, and NPS questions. Surveys with other question types are incompatible with this API.

For more information about using survey session APIs, see Working with Survey Sessions.

Request Body

{"language"=>"EN", "embeddedData"=>{"edKey"=>"edValue", "customerName"=>"Kyle"}, "recipientId"=>"MLRP_1234567890", "distributionId"=>"EMD_1234567890"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;result&quot;:{&quot;sessionId&quot;:&quot;FS_1234567890&quot;,&quot;embeddedData&quot;:{&quot;edKey&quot;:&quot;edValue&quot;,&quot;customerName&quot;:&quot;Kyle&quot;},&quot;questions&quot;:[{&quot;questionId&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;type&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;display&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;choices&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;options&quot;:{&quot;columnLabels&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;multiSelect&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}},{&quot;questionId&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;type&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;display&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;choices&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;options&quot;:{&quot;columnLabels&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;multiSelect&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}}],&quot;responses&quot;:{&quot;do_84&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;sed2&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;et_09&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;sit_a&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;done&quot;:&quot;amet&quot;},&quot;meta&quot;:{&quot;httpStatus&quot;:&quot;exercitation aute ad in&quot;,&quot;requestId&quot;:&quot;occaecat reprehenderit ea eiusmod ad&quot;,&quot;notice&quot;:&quot;cupidatat do est&quot;}}