curl --request POST \
--url https://verification.didit.me/v3/id-verification/wallets/verifications/REQUEST_ID/response/ \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"response": {
"protocol": "openid4vp-v1-signed",
"data": {
"response": "<compact JWE returned by the wallet>"
}
}
}'import requests
url = "https://verification.didit.me/v3/id-verification/wallets/verifications/{request_id}/response/"
payload = { "response": {
"protocol": "openid4vp-v1-signed",
"data": { "response": "<compact JWE returned by the wallet>" }
} }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
response: {
protocol: 'openid4vp-v1-signed',
data: {response: '<compact JWE returned by the wallet>'}
}
})
};
fetch('https://verification.didit.me/v3/id-verification/wallets/verifications/{request_id}/response/', 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/id-verification/wallets/verifications/{request_id}/response/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'response' => [
'protocol' => 'openid4vp-v1-signed',
'data' => [
'response' => '<compact JWE returned by the wallet>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/id-verification/wallets/verifications/{request_id}/response/"
payload := strings.NewReader("{\n \"response\": {\n \"protocol\": \"openid4vp-v1-signed\",\n \"data\": {\n \"response\": \"<compact JWE returned by the wallet>\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://verification.didit.me/v3/id-verification/wallets/verifications/{request_id}/response/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"response\": {\n \"protocol\": \"openid4vp-v1-signed\",\n \"data\": {\n \"response\": \"<compact JWE returned by the wallet>\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/id-verification/wallets/verifications/{request_id}/response/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"response\": {\n \"protocol\": \"openid4vp-v1-signed\",\n \"data\": {\n \"response\": \"<compact JWE returned by the wallet>\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"request_id": "00000000-0000-4000-8000-000000000001",
"wallet_verification": {
"wallet": {
"id": "google_wallet",
"name": "Google Wallet",
"issuing_authority": "Google Wallet (ID pass) and US state issuers (mobile driving licence)"
},
"country": "USA",
"status": "Approved",
"outcome": "verified",
"error": null,
"interaction": "digital_credentials",
"simulated": false,
"expires_at": "2026-01-01T10:10:00Z",
"next_action": null,
"identity": {
"full_name": "Alex Example",
"first_name": "Alex",
"last_name": "Example",
"date_of_birth": "1990-01-31",
"nationality": "USA",
"issuing_state": "USA"
},
"attributes": {
"document_number": "X0000000",
"document_expiry_date": "2030-01-31"
},
"level_of_assurance": "substantial",
"verified_at": "2026-01-01T10:01:00Z",
"signature_valid": true,
"credential_type": "person_identification"
},
"vendor_data": "your-customer-reference",
"metadata": {
"reference": "example"
},
"created_at": "2026-01-01T10:00:00Z"
}{
"error": "<string>",
"detail": "<string>"
}{
"detail": "Forbidden - User doesn't have permission"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}デジタル認証情報ウォレットのレスポンスを送信する
Google WalletなどのDigital Credentials APIウォレットがページやアプリに返した認証情報のレスポンスをDiditに送信すると、Diditが認証の判定を行います。
curl --request POST \
--url https://verification.didit.me/v3/id-verification/wallets/verifications/REQUEST_ID/response/ \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"response": {
"protocol": "openid4vp-v1-signed",
"data": {
"response": "<compact JWE returned by the wallet>"
}
}
}'import requests
url = "https://verification.didit.me/v3/id-verification/wallets/verifications/{request_id}/response/"
payload = { "response": {
"protocol": "openid4vp-v1-signed",
"data": { "response": "<compact JWE returned by the wallet>" }
} }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
response: {
protocol: 'openid4vp-v1-signed',
data: {response: '<compact JWE returned by the wallet>'}
}
})
};
fetch('https://verification.didit.me/v3/id-verification/wallets/verifications/{request_id}/response/', 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/id-verification/wallets/verifications/{request_id}/response/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'response' => [
'protocol' => 'openid4vp-v1-signed',
'data' => [
'response' => '<compact JWE returned by the wallet>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/id-verification/wallets/verifications/{request_id}/response/"
payload := strings.NewReader("{\n \"response\": {\n \"protocol\": \"openid4vp-v1-signed\",\n \"data\": {\n \"response\": \"<compact JWE returned by the wallet>\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://verification.didit.me/v3/id-verification/wallets/verifications/{request_id}/response/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"response\": {\n \"protocol\": \"openid4vp-v1-signed\",\n \"data\": {\n \"response\": \"<compact JWE returned by the wallet>\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/id-verification/wallets/verifications/{request_id}/response/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"response\": {\n \"protocol\": \"openid4vp-v1-signed\",\n \"data\": {\n \"response\": \"<compact JWE returned by the wallet>\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"request_id": "00000000-0000-4000-8000-000000000001",
"wallet_verification": {
"wallet": {
"id": "google_wallet",
"name": "Google Wallet",
"issuing_authority": "Google Wallet (ID pass) and US state issuers (mobile driving licence)"
},
"country": "USA",
"status": "Approved",
"outcome": "verified",
"error": null,
"interaction": "digital_credentials",
"simulated": false,
"expires_at": "2026-01-01T10:10:00Z",
"next_action": null,
"identity": {
"full_name": "Alex Example",
"first_name": "Alex",
"last_name": "Example",
"date_of_birth": "1990-01-31",
"nationality": "USA",
"issuing_state": "USA"
},
"attributes": {
"document_number": "X0000000",
"document_expiry_date": "2030-01-31"
},
"level_of_assurance": "substantial",
"verified_at": "2026-01-01T10:01:00Z",
"signature_valid": true,
"credential_type": "person_identification"
},
"vendor_data": "your-customer-reference",
"metadata": {
"reference": "example"
},
"created_at": "2026-01-01T10:00:00Z"
}{
"error": "<string>",
"detail": "<string>"
}{
"detail": "Forbidden - User doesn't have permission"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}next_action.type = request_digital_credentialが含まれるウォレット(Google Walletなど)に使用します。
認証には、検証を開始したアプリケーションのAPIキーを使用し、バックエンドから呼び出してください。
ウォレットが返した内容をそのまま送信してください。ブラウザの場合はnavigator.credentials.getから得た{protocol, data}、Androidの場合はAndroid Credential Managerから得てパースしたcredentialJsonです。
このレスポンスはDidit向けに暗号化されているため、改変しないでください。
Diditは、信頼済みの発行者ルートに照らした発行者の署名、署名付きダイジェストに照らした返却されたすべての値、そしてoriginとこのリクエストに対するデバイス署名を検証し、そのうえで検証の判定を行います。
レスポンスを送信できるのは1回のみです。
2回目の送信では、すでに判定済みの検証が返されます。
ウォレットのレスポンスを受け付けない検証の場合は、error: "not_a_digital_credentials_wallet"とともに409が返されます。
ブラウザおよびAndroidのスニペットを含む一連の流れについては、デジタルIDウォレットAPIを参照してください。承認
お客様のアプリケーションのAPIキーです。Business ConsoleのDevelopers -> API keysで取得できます。プライマリキーはフルアクセス権を持ちます。名前付きキーにはスコープを設定できます。リソースごとのアクセス権(なし、読み取り、書き込み)、一部のワークフローまたは承認済みセッションへの限定、IPアドレスのリストへの限定、有効期限の設定です。401は、キーが誤っている、失効している、または期限切れであることを意味します。403は、キーが送信されていない、キーにこのリソースやアクションへのアクセス権がない、またはIPリスト外のアドレスからリクエストが送信されたことを意味します。セッションのルートでの404は、セッションがキーのワークフローまたはステータスの対象外であることを意味します。メディアへのアクセス権がないキーでは、画像、動画、PDFのURLがnullで返されます。セッションの書き込み権限がないキーでは、セッションのリンクとトークンがnullで返されます。詳細は次を参照してください: https://docs.didit.me/console/api-keys
パスパラメータ
開始エンドポイントが返したrequest_idです。
ボディ
request_digital_credential認証において、ウォレットがあなたのページまたはアプリに返した応答です。
ウォレットが返した内容そのものです。navigator.credentials.getで取得したDigitalCredentialのprotocolとdata、またはAndroidのDigitalCredentialを解析したcredentialJsonです。Didit宛てに暗号化されているため、変更しないでください。
Show child attributes
Show child attributes