curl --request POST \
--url https://testnet.edel-api.xyz/v1/auth/register/complete \
--header 'Content-Type: application/json' \
--data '
{
"temporaryAuthenticationToken": "<string>",
"firstFactorCredential": {
"credentialKind": "Fido2",
"credentialInfo": {},
"credentialName": "<string>"
},
"socialIdentity": {
"provider": "google",
"idToken": "<string>"
},
"referralCode": "<string>"
}
'import requests
url = "https://testnet.edel-api.xyz/v1/auth/register/complete"
payload = {
"temporaryAuthenticationToken": "<string>",
"firstFactorCredential": {
"credentialKind": "Fido2",
"credentialInfo": {},
"credentialName": "<string>"
},
"socialIdentity": {
"provider": "google",
"idToken": "<string>"
},
"referralCode": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
temporaryAuthenticationToken: '<string>',
firstFactorCredential: {credentialKind: 'Fido2', credentialInfo: {}, credentialName: '<string>'},
socialIdentity: {provider: 'google', idToken: '<string>'},
referralCode: '<string>'
})
};
fetch('https://testnet.edel-api.xyz/v1/auth/register/complete', 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://testnet.edel-api.xyz/v1/auth/register/complete",
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([
'temporaryAuthenticationToken' => '<string>',
'firstFactorCredential' => [
'credentialKind' => 'Fido2',
'credentialInfo' => [
],
'credentialName' => '<string>'
],
'socialIdentity' => [
'provider' => 'google',
'idToken' => '<string>'
],
'referralCode' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://testnet.edel-api.xyz/v1/auth/register/complete"
payload := strings.NewReader("{\n \"temporaryAuthenticationToken\": \"<string>\",\n \"firstFactorCredential\": {\n \"credentialKind\": \"Fido2\",\n \"credentialInfo\": {},\n \"credentialName\": \"<string>\"\n },\n \"socialIdentity\": {\n \"provider\": \"google\",\n \"idToken\": \"<string>\"\n },\n \"referralCode\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://testnet.edel-api.xyz/v1/auth/register/complete")
.header("Content-Type", "application/json")
.body("{\n \"temporaryAuthenticationToken\": \"<string>\",\n \"firstFactorCredential\": {\n \"credentialKind\": \"Fido2\",\n \"credentialInfo\": {},\n \"credentialName\": \"<string>\"\n },\n \"socialIdentity\": {\n \"provider\": \"google\",\n \"idToken\": \"<string>\"\n },\n \"referralCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://testnet.edel-api.xyz/v1/auth/register/complete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"temporaryAuthenticationToken\": \"<string>\",\n \"firstFactorCredential\": {\n \"credentialKind\": \"Fido2\",\n \"credentialInfo\": {},\n \"credentialName\": \"<string>\"\n },\n \"socialIdentity\": {\n \"provider\": \"google\",\n \"idToken\": \"<string>\"\n },\n \"referralCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"version": "external-auth-register-complete/v1",
"walletState": "wallet_ready",
"credential": {
"uuid": "passkey-credential-id",
"kind": "Fido2",
"name": "Primary passkey"
},
"user": {
"id": "dfns-user-id",
"username": "example-trader"
}
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "request-id",
"code": "unauthorized",
"safeMessage": "A verified end-user session is required.",
"retryable": false,
"recoveryActions": [
"do_not_retry"
],
"occurredAtEpochMs": 0
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "request-id",
"code": "service_degraded",
"safeMessage": "Authentication dependencies are temporarily unavailable.",
"retryable": true,
"recoveryActions": [
"observe_status",
"retry_after"
],
"occurredAtEpochMs": 0
}Complete DFNS end-user registration
Completes a tracked direct-social DFNS end-user registration using the signed WebAuthn credential and temporary registration token. The caller must re-prove the same Google identity used at initiation. The DFNS result must match the stored user and configured organization; durable state and the DFNS-user to engine-account mapping are mandatory. An optional referral code is resolved only while the DB-backed affiliate-public policy is current and enabled; otherwise a request containing one is hidden with 404 before DFNS creates the credential.
Method and path: POST /v1/auth/register/complete
Authentication: none.
Request schema: ExternalAuthRegisterCompleteRequest.
Response schema: ExternalAuthRegisterCompleteResponse.
Error envelope: ExternalRestError (external-rest-error/v1).
curl --request POST \
--url https://testnet.edel-api.xyz/v1/auth/register/complete \
--header 'Content-Type: application/json' \
--data '
{
"temporaryAuthenticationToken": "<string>",
"firstFactorCredential": {
"credentialKind": "Fido2",
"credentialInfo": {},
"credentialName": "<string>"
},
"socialIdentity": {
"provider": "google",
"idToken": "<string>"
},
"referralCode": "<string>"
}
'import requests
url = "https://testnet.edel-api.xyz/v1/auth/register/complete"
payload = {
"temporaryAuthenticationToken": "<string>",
"firstFactorCredential": {
"credentialKind": "Fido2",
"credentialInfo": {},
"credentialName": "<string>"
},
"socialIdentity": {
"provider": "google",
"idToken": "<string>"
},
"referralCode": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
temporaryAuthenticationToken: '<string>',
firstFactorCredential: {credentialKind: 'Fido2', credentialInfo: {}, credentialName: '<string>'},
socialIdentity: {provider: 'google', idToken: '<string>'},
referralCode: '<string>'
})
};
fetch('https://testnet.edel-api.xyz/v1/auth/register/complete', 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://testnet.edel-api.xyz/v1/auth/register/complete",
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([
'temporaryAuthenticationToken' => '<string>',
'firstFactorCredential' => [
'credentialKind' => 'Fido2',
'credentialInfo' => [
],
'credentialName' => '<string>'
],
'socialIdentity' => [
'provider' => 'google',
'idToken' => '<string>'
],
'referralCode' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://testnet.edel-api.xyz/v1/auth/register/complete"
payload := strings.NewReader("{\n \"temporaryAuthenticationToken\": \"<string>\",\n \"firstFactorCredential\": {\n \"credentialKind\": \"Fido2\",\n \"credentialInfo\": {},\n \"credentialName\": \"<string>\"\n },\n \"socialIdentity\": {\n \"provider\": \"google\",\n \"idToken\": \"<string>\"\n },\n \"referralCode\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://testnet.edel-api.xyz/v1/auth/register/complete")
.header("Content-Type", "application/json")
.body("{\n \"temporaryAuthenticationToken\": \"<string>\",\n \"firstFactorCredential\": {\n \"credentialKind\": \"Fido2\",\n \"credentialInfo\": {},\n \"credentialName\": \"<string>\"\n },\n \"socialIdentity\": {\n \"provider\": \"google\",\n \"idToken\": \"<string>\"\n },\n \"referralCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://testnet.edel-api.xyz/v1/auth/register/complete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"temporaryAuthenticationToken\": \"<string>\",\n \"firstFactorCredential\": {\n \"credentialKind\": \"Fido2\",\n \"credentialInfo\": {},\n \"credentialName\": \"<string>\"\n },\n \"socialIdentity\": {\n \"provider\": \"google\",\n \"idToken\": \"<string>\"\n },\n \"referralCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"version": "external-auth-register-complete/v1",
"walletState": "wallet_ready",
"credential": {
"uuid": "passkey-credential-id",
"kind": "Fido2",
"name": "Primary passkey"
},
"user": {
"id": "dfns-user-id",
"username": "example-trader"
}
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "request-id",
"code": "unauthorized",
"safeMessage": "A verified end-user session is required.",
"retryable": false,
"recoveryActions": [
"do_not_retry"
],
"occurredAtEpochMs": 0
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"rejectionGuard": "amount_atoms_invalid",
"withdrawalFailure": "requested",
"dependency": "dfns"
}{
"version": "external-rest-error/v1",
"requestId": "request-id",
"code": "service_degraded",
"safeMessage": "Authentication dependencies are temporarily unavailable.",
"retryable": true,
"recoveryActions": [
"observe_status",
"retry_after"
],
"occurredAtEpochMs": 0
}