Update Session Status
curl --request PATCH \
--url https://identity.contra.id/v1/sessions/{session_id}/statusimport requests
url = "https://identity.contra.id/v1/sessions/{session_id}/status"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://identity.contra.id/v1/sessions/{session_id}/status', 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://identity.contra.id/v1/sessions/{session_id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://identity.contra.id/v1/sessions/{session_id}/status"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://identity.contra.id/v1/sessions/{session_id}/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/sessions/{session_id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_bodyUser and Business Verifications
Update Session Status
Override a session’s status — approve, decline, or request resubmission.
PATCH
/
v1
/
sessions
/
{session_id}
/
status
Update Session Status
curl --request PATCH \
--url https://identity.contra.id/v1/sessions/{session_id}/statusimport requests
url = "https://identity.contra.id/v1/sessions/{session_id}/status"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://identity.contra.id/v1/sessions/{session_id}/status', 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://identity.contra.id/v1/sessions/{session_id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://identity.contra.id/v1/sessions/{session_id}/status"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://identity.contra.id/v1/sessions/{session_id}/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/sessions/{session_id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_bodyRequest
curl -X PATCH https://identity.contra.id/v1/sessions/$SID/status \
-H "x-api-key: $CONTRA_KEY" -H "Content-Type: application/json" \
-d '{
"new_status": "approved",
"comment": "Manual review passed · senior compliance",
"send_email": true,
"email_address": "user@example.com"
}'
| Body | Type | Required | Description |
|---|---|---|---|
new_status | enum | yes | approved · declined · resubmitted · in_review. |
comment | string | no | Free-text reason (audited). |
send_email | boolean | no | Notify the user. |
email_address | string | conditional | Required when send_email is true. |
nodes_to_resubmit | array | no | For resubmitted → [{ node_type, feature }]. |
Response · 200
Same shape as Get Decision, withstatus updated and a new entry in the session reviews log.⌘I