Skip to main content
GET
/
v3
/
travel-rule
/
widget
/
{token}
/
curl
curl https://verification.didit.me/v3/travel-rule/widget/{token}/
import requests

url = "https://verification.didit.me/v3/travel-rule/widget/{token}/"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://verification.didit.me/v3/travel-rule/widget/{token}/', 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://verification.didit.me/v3/travel-rule/widget/{token}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);

$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://verification.didit.me/v3/travel-rule/widget/{token}/"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://verification.didit.me/v3/travel-rule/widget/{token}/")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://verification.didit.me/v3/travel-rule/widget/{token}/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "vasp_name": "<string>",
  "wallet_address": "<string>",
  "chain": "<string>",
  "holder_name": "<string>",
  "allowed_methods": [],
  "transfer_status": "<string>",
  "callback_url": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z",
  "proofs": [
    {
      "proof_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "wallet_address": "<string>",
      "chain": "<string>",
      "deposit_address": "<string>",
      "expected_amount": "<string>",
      "expires_at": "2023-11-07T05:31:56Z",
      "challenge": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ],
  "customization": {}
}

Authorizations

x-api-key
string
header
required

Path Parameters

token
string
required

Opaque session token returned when the widget session was minted.

Response

The widget context and proof statuses.

vasp_name
string

Legal name from your VASP profile, shown to the customer in the widget. Empty when no profile exists.

wallet_address
string
chain
string
holder_name
string
allowed_methods
enum<string>[]

Proof methods available for this session. MESSAGE_SIGNING requires a supported chain family, SATOSHI_TEST requires a satoshi_deposit_address on the session, SCREENSHOT requires the allow_screenshot_proof setting, and SELF_DECLARATION requires the allow_self_declaration setting.

Available options:
MESSAGE_SIGNING,
SCREENSHOT,
SATOSHI_TEST,
SELF_DECLARATION
transfer_status
string | null

Status of the linked Travel Rule transfer. Null when the session was minted without a transaction_id.

callback_url
string

Where the widget returns the customer after completion. Empty when not set.

expires_at
string<date-time>
completed_at
string<date-time> | null

Non-null once a proof has been verified.

proofs
object[]
customization
object | null

The application's whitelabel customization (colors, logo, font family) when white label is enabled - the widget renders with the same branding as the verification flow. Null otherwise.