Share Session
curl --request POST \
--url https://identity.contra.id/v1/sessions/{session_id}/shareimport requests
url = "https://identity.contra.id/v1/sessions/{session_id}/share"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://identity.contra.id/v1/sessions/{session_id}/share', 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}/share",
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/{session_id}/share"
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/{session_id}/share")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/sessions/{session_id}/share")
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
Share Session
Mint a one-time share token so a partner platform can import this completed verification.
POST
/
v1
/
sessions
/
{session_id}
/
share
Share Session
curl --request POST \
--url https://identity.contra.id/v1/sessions/{session_id}/shareimport requests
url = "https://identity.contra.id/v1/sessions/{session_id}/share"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://identity.contra.id/v1/sessions/{session_id}/share', 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}/share",
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/{session_id}/share"
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/{session_id}/share")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/sessions/{session_id}/share")
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_bodyB2B KYC sharing — your customer verifies once with you, and a partner platform inherits the result without re-verifying.
Only sessions in a terminal state (
Request
curl -X POST https://identity.contra.id/v1/sessions/$SID/share \
-H "x-api-key: $CONTRA_KEY" -H "Content-Type: application/json" \
-d '{
"partner_application_id": "app_partner_…",
"expires_in": 3600
}'
| Body | Type | Required | Description |
|---|---|---|---|
partner_application_id | string | yes | The partner’s Contra application UUID. |
expires_in | integer | no | TTL in seconds (default 3600). |
Response · 200
{
"share_token": "shr_a1b2c3d4…",
"expires_at": 1748570400
}
approved, declined, in_review) can be shared. Each share token is one-shot per partner.
Pricing
Contra earns 0.15∗∗perimport;theoriginatingtenantearns∗∗0.15. The end user never re-verifies.⌘I