curl --request PUT \
--url https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"answers": [
{
"question_id": "<string>",
"value": "<string>"
}
]
}
'import requests
url = "https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers"
payload = { "answers": [
{
"question_id": "<string>",
"value": "<string>"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({answers: [{question_id: '<string>', value: '<string>'}]})
};
fetch('https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'answers' => [
[
'question_id' => '<string>',
'value' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers"
payload := strings.NewReader("{\n \"answers\": [\n {\n \"question_id\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"answers\": [\n {\n \"question_id\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"answers\": [\n {\n \"question_id\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"status": "collecting_artifacts",
"privacy_contact_email": "jsmith@example.com",
"consent_notice_locale": "en",
"consent_notice_version": "<string>",
"consent_notice_text": "<string>",
"consent_notice_digest": "<string>",
"capture_manifest": {
"workflow": "liveness_and_id",
"required_kinds": [
"liveness_front"
]
},
"step_manifest": {
"steps": [
{
"step_id": "<string>",
"type": "liveness",
"required": true,
"title": "<string>",
"config": {
"accepted_id_types": [
"driver_license"
],
"custom_id_types": [
{
"id_type": "<string>",
"label": "<string>",
"sides": "one_sided",
"description": "<string>"
}
],
"sides": "auto",
"questions": [
{
"question_id": "<string>",
"label": "<string>",
"type": "text",
"required": true,
"required_when": {
"question_id": "<string>",
"equals": true
},
"visible_when": {
"question_id": "<string>",
"equals": true
},
"options": [
{
"value": "<string>",
"label": "<string>"
}
]
}
],
"documents": [
{
"document_id": "<string>",
"label": "<string>",
"description": "<string>",
"accepted_content_types": [
"application/pdf"
],
"required": true
}
]
}
}
]
},
"flow_steps": [
{
"step_id": "<string>",
"type": "liveness",
"required": true,
"state": "pending",
"detail": {
"captured_kinds": [
"liveness_front"
],
"remaining_kinds": [
"liveness_front"
],
"answered_count": 1,
"question_count": 1,
"uploaded_document_ids": [
"<string>"
],
"remaining_document_ids": [
"<string>"
]
}
}
],
"steps": [
{
"kind": "liveness_front",
"reserved": true,
"uploaded": true
}
],
"face_match_performed": true,
"completion": {
"action": "close_tab",
"return_url": "<string>"
}
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}Submit questionnaire answers
Session-token auth; capture window must be open. Validates against the step’s questionnaire config (unknown question_id, value type, and select/multi_select option membership -> 400). Answer values are PII: each value is envelope-encrypted (per-value DEK, AAD bound to tenant/workspace/session/step/question) before persistence and is only ever readable again on the audited application-plane data endpoint. A re-PUT replaces the step’s answers wholesale (last write wins; the session revision provides optimistic concurrency -> 409 on conflict, retry with fresh state). Missing unconditionally required answers are not an error here: completeness is enforced at submit. When an answered boolean activates a required_when condition, its dependent answer must be included in the same replacement payload. Answers for questions whose visible_when condition is not active are rejected.
curl --request PUT \
--url https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"answers": [
{
"question_id": "<string>",
"value": "<string>"
}
]
}
'import requests
url = "https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers"
payload = { "answers": [
{
"question_id": "<string>",
"value": "<string>"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({answers: [{question_id: '<string>', value: '<string>'}]})
};
fetch('https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'answers' => [
[
'question_id' => '<string>',
'value' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers"
payload := strings.NewReader("{\n \"answers\": [\n {\n \"question_id\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"answers\": [\n {\n \"question_id\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gominerva.com/idv/v1/sessions/{sessionId}/steps/{stepId}/answers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"answers\": [\n {\n \"question_id\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"status": "collecting_artifacts",
"privacy_contact_email": "jsmith@example.com",
"consent_notice_locale": "en",
"consent_notice_version": "<string>",
"consent_notice_text": "<string>",
"consent_notice_digest": "<string>",
"capture_manifest": {
"workflow": "liveness_and_id",
"required_kinds": [
"liveness_front"
]
},
"step_manifest": {
"steps": [
{
"step_id": "<string>",
"type": "liveness",
"required": true,
"title": "<string>",
"config": {
"accepted_id_types": [
"driver_license"
],
"custom_id_types": [
{
"id_type": "<string>",
"label": "<string>",
"sides": "one_sided",
"description": "<string>"
}
],
"sides": "auto",
"questions": [
{
"question_id": "<string>",
"label": "<string>",
"type": "text",
"required": true,
"required_when": {
"question_id": "<string>",
"equals": true
},
"visible_when": {
"question_id": "<string>",
"equals": true
},
"options": [
{
"value": "<string>",
"label": "<string>"
}
]
}
],
"documents": [
{
"document_id": "<string>",
"label": "<string>",
"description": "<string>",
"accepted_content_types": [
"application/pdf"
],
"required": true
}
]
}
}
]
},
"flow_steps": [
{
"step_id": "<string>",
"type": "liveness",
"required": true,
"state": "pending",
"detail": {
"captured_kinds": [
"liveness_front"
],
"remaining_kinds": [
"liveness_front"
],
"answered_count": 1,
"question_count": 1,
"uploaded_document_ids": [
"<string>"
],
"remaining_document_ids": [
"<string>"
]
}
}
],
"steps": [
{
"kind": "liveness_front",
"reserved": true,
"uploaded": true
}
],
"face_match_performed": true,
"completion": {
"action": "close_tab",
"return_url": "<string>"
}
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}{
"error": {
"code": "idv_session_not_found",
"message": "<string>"
}
}Authorizations
Authorization: Bearer idvs_<token>: one-time value from create/acquire. Header only; never a query param.
Body
Replaces the step's answers wholesale (empty clears them).
50Show child attributes
Show child attributes
Response
Updated token-plane progress
Token-plane projection. No tenant/workspace, no upload refs, no OCR/jurisdiction/fraud detail.
Show child attributes
Show child attributes