Begin passkey registration
curl --request POST \
--url https://api.pid.peridotvault.com/v1/credentials/register/start \
--cookie pid_access=const options = {method: 'POST', headers: {cookie: 'pid_access='}};
fetch('https://api.pid.peridotvault.com/v1/credentials/register/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/credentials/register/start"
headers = {"cookie": "pid_access="}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/credentials/register/start"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("cookie", "pid_access=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"registrationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": {},
"isAdditional": true,
"approval": {}
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}credentials
Begin passkey registration
Returns WebAuthn registration options. When the account already has a credential,
isAdditional is true and an approval challenge is included — the client must
assert with an existing credential to authorize adding the new one (existing-credential approval rule).
POST
/
credentials
/
register
/
start
Begin passkey registration
curl --request POST \
--url https://api.pid.peridotvault.com/v1/credentials/register/start \
--cookie pid_access=const options = {method: 'POST', headers: {cookie: 'pid_access='}};
fetch('https://api.pid.peridotvault.com/v1/credentials/register/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/credentials/register/start"
headers = {"cookie": "pid_access="}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/credentials/register/start"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("cookie", "pid_access=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"registrationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": {},
"isAdditional": true,
"approval": {}
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}Authorizations
JWT access token set by /auth/google/callback or /auth/refresh
Response
Registration options