curl -X PATCH https://api.vouchmark.com/v1/widget/embed/sessions/wses_.../answers \
-H "Content-Type: application/json" \
-d '{
"token": "elt_...",
"moduleId": "business_profile",
"answers": {
"legalName": "Acme Trading Ltd",
"registrationNumber": "RC123456",
"contactEmail": "admin@acme.com"
}
}'
{
"success": true,
"data": {
"sessionId": "wses_...",
"widgetId": "wgt_aBcD...",
"status": "in_progress",
"currentModuleId": "business_profile",
"answers": {
"business_profile": {
"legalName": "Acme Trading Ltd",
"registrationNumber": "RC123456",
"contactEmail": "admin@acme.com"
}
},
"attachments": {},
"referenceId": null
}
}
Widget Embed (Runtime)
Save session answers
Save a module’s answers into an in-progress session.
PATCH
/
v1
/
widget
/
embed
/
sessions
/
{sessionId}
/
answers
curl -X PATCH https://api.vouchmark.com/v1/widget/embed/sessions/wses_.../answers \
-H "Content-Type: application/json" \
-d '{
"token": "elt_...",
"moduleId": "business_profile",
"answers": {
"legalName": "Acme Trading Ltd",
"registrationNumber": "RC123456",
"contactEmail": "admin@acme.com"
}
}'
{
"success": true,
"data": {
"sessionId": "wses_...",
"widgetId": "wgt_aBcD...",
"status": "in_progress",
"currentModuleId": "business_profile",
"answers": {
"business_profile": {
"legalName": "Acme Trading Ltd",
"registrationNumber": "RC123456",
"contactEmail": "admin@acme.com"
}
},
"attachments": {},
"referenceId": null
}
}
This is an embed runtime endpoint. It is called by the embedded Vouchmark widget in the applicant’s browser, not by your backend. It uses the widget’s
token and does not take a Bearer token.in_progress, and the module must be enabled on the widget. Returns the updated session view.
Path parameters
Body
The module these answers belong to (e.g.
business_profile). Must be enabled on the widget.curl -X PATCH https://api.vouchmark.com/v1/widget/embed/sessions/wses_.../answers \
-H "Content-Type: application/json" \
-d '{
"token": "elt_...",
"moduleId": "business_profile",
"answers": {
"legalName": "Acme Trading Ltd",
"registrationNumber": "RC123456",
"contactEmail": "admin@acme.com"
}
}'
{
"success": true,
"data": {
"sessionId": "wses_...",
"widgetId": "wgt_aBcD...",
"status": "in_progress",
"currentModuleId": "business_profile",
"answers": {
"business_profile": {
"legalName": "Acme Trading Ltd",
"registrationNumber": "RC123456",
"contactEmail": "admin@acme.com"
}
},
"attachments": {},
"referenceId": null
}
}
