Get passkey registration options
curl --request POST \
--url https://aropay.aro.media/api/v1/me/passkeys/options \
--header 'Content-Type: application/json' \
--cookie aropay_session= \
--data '
{
"password": "…"
}
'const options = {
method: 'POST',
headers: {cookie: 'aropay_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({password: '…'})
};
fetch('https://aropay.aro.media/api/v1/me/passkeys/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aropay.aro.media/api/v1/me/passkeys/options"
payload = { "password": "…" }
headers = {
"cookie": "aropay_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {
"options": {}
}
}Profile & security
Get passkey registration options
Session-only, with step-up. Produce WebAuthn registration options
for adding a passkey to the current account, after re-checking the
password (and a 2FA code when enabled). The challenge rides in a
signed cookie bound to the account, its token version and this
session, and must accompany POST /me/passkeys/register from the
same session. Each call replaces the previous challenge, and the
challenge answers one register attempt. Options require user
verification: the passkey must unlock with a PIN or biometric.
POST
/
me
/
passkeys
/
options
Get passkey registration options
curl --request POST \
--url https://aropay.aro.media/api/v1/me/passkeys/options \
--header 'Content-Type: application/json' \
--cookie aropay_session= \
--data '
{
"password": "…"
}
'const options = {
method: 'POST',
headers: {cookie: 'aropay_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({password: '…'})
};
fetch('https://aropay.aro.media/api/v1/me/passkeys/options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aropay.aro.media/api/v1/me/passkeys/options"
payload = { "password": "…" }
headers = {
"cookie": "aropay_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {
"options": {}
}
}Authorizations
Browser session cookie minted by POST /auth/login (or passkey
login). httpOnly, SameSite=Lax, 24 h TTL. Endpoints marked
Session-only accept only this credential and return
403 session_required for API keys.
Body
application/json