Record consumer consent
curl --request POST \
--url https://api.gominerva.com/idv/v1/sessions/{sessionId}/consent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accepted": true,
"locale": "en"
}
'import requests
url = "https://api.gominerva.com/idv/v1/sessions/{sessionId}/consent"
payload = {
"accepted": True,
"locale": "en"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({accepted: true, locale: 'en'})
};
fetch('https://api.gominerva.com/idv/v1/sessions/{sessionId}/consent', 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}/consent",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accepted' => true,
'locale' => 'en'
]),
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}/consent"
payload := strings.NewReader("{\n \"accepted\": true,\n \"locale\": \"en\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.gominerva.com/idv/v1/sessions/{sessionId}/consent")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accepted\": true,\n \"locale\": \"en\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gominerva.com/idv/v1/sessions/{sessionId}/consent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accepted\": true,\n \"locale\": \"en\"\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>"
}
}Capture
Record consumer consent
Accepts EITHER a capture token OR an invite credential. The browser sends only the explicit checkbox state; Minerva records the server timestamp, notice version/text, copied privacy contact email, client IP, and user agent on the session before /acquire or capture mutations can proceed.
POST
/
sessions
/
{sessionId}
/
consent
Record consumer consent
curl --request POST \
--url https://api.gominerva.com/idv/v1/sessions/{sessionId}/consent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accepted": true,
"locale": "en"
}
'import requests
url = "https://api.gominerva.com/idv/v1/sessions/{sessionId}/consent"
payload = {
"accepted": True,
"locale": "en"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({accepted: true, locale: 'en'})
};
fetch('https://api.gominerva.com/idv/v1/sessions/{sessionId}/consent', 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}/consent",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accepted' => true,
'locale' => 'en'
]),
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}/consent"
payload := strings.NewReader("{\n \"accepted\": true,\n \"locale\": \"en\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.gominerva.com/idv/v1/sessions/{sessionId}/consent")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accepted\": true,\n \"locale\": \"en\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gominerva.com/idv/v1/sessions/{sessionId}/consent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accepted\": true,\n \"locale\": \"en\"\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>"
}
}Authorizations
sessionTokeninviteCredential
Authorization: Bearer idvs_<token>: one-time value from create/acquire. Header only; never a query param.
Path Parameters
Body
application/json
Response
Consent recorded
Token-plane projection. No tenant/workspace, no upload refs, no OCR/jurisdiction/fraud detail.
Show child attributes
Show child attributes