curl --request POST \
--url 'https://gateway.amana.io/auth/logout'
import requests
url = "https://gateway.amana.io/auth/logout"
headers = {}
response = requests.request("POST", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/auth/logout', {
method: 'POST',
headers: {},
});
console.log(await response.json());
{
"status": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Authentication
Log out
End the current session. Call this when the user signs out.
POST
/
auth
/
logout
curl --request POST \
--url 'https://gateway.amana.io/auth/logout'
import requests
url = "https://gateway.amana.io/auth/logout"
headers = {}
response = requests.request("POST", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/auth/logout', {
method: 'POST',
headers: {},
});
console.log(await response.json());
{
"status": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Response
200 Success.
string
Possible Errors
| Error | Possible cause | What to do |
|---|---|---|
| 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/logout'
import requests
url = "https://gateway.amana.io/auth/logout"
headers = {}
response = requests.request("POST", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/auth/logout', {
method: 'POST',
headers: {},
});
console.log(await response.json());
{
"status": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Last modified on October 8, 2026
