curl --request POST \
--url 'https://gateway.amana.io/auth/nafath/callback' \
--header 'Content-Type: application/json' \
--data '{
"transId": "<string>",
"requestId": "<string>",
"token": "<string>"
}'
import requests
url = "https://gateway.amana.io/auth/nafath/callback"
headers = {"Content-Type": "application/json"}
payload = {
"transId": "<string>",
"requestId": "<string>",
"token": "<string>"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/auth/nafath/callback', {
method: 'POST',
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"transId": "<string>", "requestId": "<string>", "token": "<string>"}),
});
console.log(await response.json());
{
"status": "success"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Nafath sign-in
Handle Nafath callback
Receive the Nafath result and authenticate the user.
POST
/
auth
/
nafath
/
callback
curl --request POST \
--url 'https://gateway.amana.io/auth/nafath/callback' \
--header 'Content-Type: application/json' \
--data '{
"transId": "<string>",
"requestId": "<string>",
"token": "<string>"
}'
import requests
url = "https://gateway.amana.io/auth/nafath/callback"
headers = {"Content-Type": "application/json"}
payload = {
"transId": "<string>",
"requestId": "<string>",
"token": "<string>"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/auth/nafath/callback', {
method: 'POST',
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"transId": "<string>", "requestId": "<string>", "token": "<string>"}),
});
console.log(await response.json());
{
"status": "success"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Nafath sign-in is only for users in Saudi Arabia.
Body
Content type:application/json
string
required
string
required
string
required
Response
200 Success.
enum<string>
Available options:
successPossible 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/nafath/callback' \
--header 'Content-Type: application/json' \
--data '{
"transId": "<string>",
"requestId": "<string>",
"token": "<string>"
}'
import requests
url = "https://gateway.amana.io/auth/nafath/callback"
headers = {"Content-Type": "application/json"}
payload = {
"transId": "<string>",
"requestId": "<string>",
"token": "<string>"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/auth/nafath/callback', {
method: 'POST',
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"transId": "<string>", "requestId": "<string>", "token": "<string>"}),
});
console.log(await response.json());
{
"status": "success"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Last modified on October 8, 2026
