curl --request POST \
--url 'https://gateway.amana.io/onboarding/step/verify_otp' \
--header 'Content-Type: application/json' \
--data '{
"sid": "<string>",
"code": "<string>"
}'
import requests
url = "https://gateway.amana.io/onboarding/step/verify_otp"
headers = {"Content-Type": "application/json"}
payload = {
"sid": "<string>",
"code": "<string>"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/onboarding/step/verify_otp', {
method: 'POST',
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"sid": "<string>", "code": "<string>"}),
});
console.log(await response.json());
{
"access_token": "<string>",
"refresh_token": "<string>"
}
{
"error": "INVALID_REQUEST",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Onboarding & KYC
Sign-up step 6: verify phone
Verify the one-time code sent to the user’s phone.
POST
/
onboarding
/
step
/
verify_otp
curl --request POST \
--url 'https://gateway.amana.io/onboarding/step/verify_otp' \
--header 'Content-Type: application/json' \
--data '{
"sid": "<string>",
"code": "<string>"
}'
import requests
url = "https://gateway.amana.io/onboarding/step/verify_otp"
headers = {"Content-Type": "application/json"}
payload = {
"sid": "<string>",
"code": "<string>"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/onboarding/step/verify_otp', {
method: 'POST',
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"sid": "<string>", "code": "<string>"}),
});
console.log(await response.json());
{
"access_token": "<string>",
"refresh_token": "<string>"
}
{
"error": "INVALID_REQUEST",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Body
Content type:application/json
string
required
Sign-up session ID returned by the first sign-up step.
string
required
One-time code the user received.Minimum length:
4Maximum length: 6Response
200 Success.
string
string
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/onboarding/step/verify_otp' \
--header 'Content-Type: application/json' \
--data '{
"sid": "<string>",
"code": "<string>"
}'
import requests
url = "https://gateway.amana.io/onboarding/step/verify_otp"
headers = {"Content-Type": "application/json"}
payload = {
"sid": "<string>",
"code": "<string>"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/onboarding/step/verify_otp', {
method: 'POST',
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"sid": "<string>", "code": "<string>"}),
});
console.log(await response.json());
{
"access_token": "<string>",
"refresh_token": "<string>"
}
{
"error": "INVALID_REQUEST",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Last modified on October 8, 2026
