authentication
Finish Passkey Registration
Verify a WebAuthn attestation and persist the passkey.
POST
/
api
/
account
/
passkeys
/
verify
Finish Passkey Registration
curl --request POST \
--url https://api.aixy-gateway.com/api/account/passkeys/verify \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"ceremony_id": "<string>",
"credential": {}
}
'import requests
url = "https://api.aixy-gateway.com/api/account/passkeys/verify"
payload = {
"ceremony_id": "<string>",
"credential": {}
}
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({ceremony_id: '<string>', credential: {}})
};
fetch('https://api.aixy-gateway.com/api/account/passkeys/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"label": "<string>",
"device_type": "<string>",
"backed_up": true,
"created_at": "<string>",
"last_used_at": "<string>",
"object": "account.passkey"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Secure same-origin browser session cookie.
⌘I
Finish Passkey Registration
curl --request POST \
--url https://api.aixy-gateway.com/api/account/passkeys/verify \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"ceremony_id": "<string>",
"credential": {}
}
'import requests
url = "https://api.aixy-gateway.com/api/account/passkeys/verify"
payload = {
"ceremony_id": "<string>",
"credential": {}
}
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({ceremony_id: '<string>', credential: {}})
};
fetch('https://api.aixy-gateway.com/api/account/passkeys/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"label": "<string>",
"device_type": "<string>",
"backed_up": true,
"created_at": "<string>",
"last_used_at": "<string>",
"object": "account.passkey"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}