Import Shared Session
curl --request POST \
--url https://identity.contra.id/v1/sessions/import-sharedimport requests
url = "https://identity.contra.id/v1/sessions/import-shared"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://identity.contra.id/v1/sessions/import-shared', 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/import-shared",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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/import-shared"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://identity.contra.id/v1/sessions/import-shared")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/sessions/import-shared")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyUser and Business Verifications
Import Shared Session
Redeem a share token to clone a partner’s verification into your application.
POST
/
v1
/
sessions
/
import-shared
Import Shared Session
curl --request POST \
--url https://identity.contra.id/v1/sessions/import-sharedimport requests
url = "https://identity.contra.id/v1/sessions/import-shared"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://identity.contra.id/v1/sessions/import-shared', 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/import-shared",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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/import-shared"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://identity.contra.id/v1/sessions/import-shared")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/sessions/import-shared")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodycurl -X POST https://identity.contra.id/v1/sessions/import-shared \
-H "x-api-key: $CONTRA_KEY" -H "Content-Type: application/json" \
-d '{
"share_token": "shr_a1b2c3d4…",
"trust_review": true,
"workflow_id": "enhanced_kyc",
"vendor_data": "user-abc-123"
}'
| Body | Type | Required | Description |
|---|---|---|---|
share_token | string | yes | Token from the originating tenant. |
trust_review | boolean | yes | true → keep the original status; false → set to in_review. |
workflow_id | string | yes | Your workflow id. |
vendor_data | string | no | Your own user identifier. |
Response · 201
{
"session_id": "sess_a8f2…",
"imported_from": "shr_a1b2c3d4…",
"status": "approved",
"compliance_level": "enhanced",
"contra_token": "eyJ…"
}
⌘I