curl --request POST \
--url 'https://gateway.amana.io/auth/passkeys/authentication/options' \
--header 'Content-Type: application/json' \
--data '{
"rpId": "<string>"
}'
import requests
url = "https://gateway.amana.io/auth/passkeys/authentication/options"
headers = {"Content-Type": "application/json"}
payload = {
"rpId": "<string>"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/auth/passkeys/authentication/options', {
method: 'POST',
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"rpId": "<string>"}),
});
console.log(await response.json());
{}
{
"error": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Authentication
Start passkey sign-in
Get the challenge needed to sign in with a passkey. Pass the result to the device’s passkey API.
POST
/
auth
/
passkeys
/
authentication
/
options
curl --request POST \
--url 'https://gateway.amana.io/auth/passkeys/authentication/options' \
--header 'Content-Type: application/json' \
--data '{
"rpId": "<string>"
}'
import requests
url = "https://gateway.amana.io/auth/passkeys/authentication/options"
headers = {"Content-Type": "application/json"}
payload = {
"rpId": "<string>"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/auth/passkeys/authentication/options', {
method: 'POST',
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"rpId": "<string>"}),
});
console.log(await response.json());
{}
{
"error": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Body
Content type:application/json
string
Relying party ID (your domain) for the passkey.
Response
200 Success.
object
Possible Errors
| Error | Possible cause | What to do |
|---|---|---|
| 400 | Invalid or missing field | Check the request against the schema. |
| 403 | IP not whitelisted, or account restricted | Confirm your IP is whitelisted; otherwise contact Amana. |
| 429 / 5xx | Rate limit, or temporary issue on our side | Retry with backoff; contact support if it persists. |
curl --request POST \
--url 'https://gateway.amana.io/auth/passkeys/authentication/options' \
--header 'Content-Type: application/json' \
--data '{
"rpId": "<string>"
}'
import requests
url = "https://gateway.amana.io/auth/passkeys/authentication/options"
headers = {"Content-Type": "application/json"}
payload = {
"rpId": "<string>"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/auth/passkeys/authentication/options', {
method: 'POST',
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"rpId": "<string>"}),
});
console.log(await response.json());
{}
{
"error": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Last modified on October 8, 2026
