Generate PDF Report
curl --request GET \
--url https://identity.contra.id/v1/sessions/{session_id}/pdfimport requests
url = "https://identity.contra.id/v1/sessions/{session_id}/pdf"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://identity.contra.id/v1/sessions/{session_id}/pdf', 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}/pdf",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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}/pdf"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://identity.contra.id/v1/sessions/{session_id}/pdf")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/sessions/{session_id}/pdf")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyUser and Business Verifications
Generate PDF Report
Generate an audit-grade PDF of a session — useful for compliance archives or regulator submission.
GET
/
v1
/
sessions
/
{session_id}
/
pdf
Generate PDF Report
curl --request GET \
--url https://identity.contra.id/v1/sessions/{session_id}/pdfimport requests
url = "https://identity.contra.id/v1/sessions/{session_id}/pdf"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://identity.contra.id/v1/sessions/{session_id}/pdf', 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}/pdf",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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}/pdf"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://identity.contra.id/v1/sessions/{session_id}/pdf")
.asString();require 'uri'
require 'net/http'
url = URI("https://identity.contra.id/v1/sessions/{session_id}/pdf")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodycurl https://identity.contra.id/v1/sessions/$SID/pdf \
-H "x-api-key: $CONTRA_KEY" -o session.pdf
application/pdf. The report includes:
- Session metadata + lifecycle timestamps
- Workflow definition + node results
- Extracted KYC/AML/PoA fields (redacted unless
?reveal_pii=trueand authorized) - ContraToken JWT (header + claims)
- On-chain anchor proof (tx hash + block)
- Audit log
⌘I