curl --request POST \
--url 'https://gateway.amana.io/auth/link-social-provider' \
--header 'Content-Type: application/json' \
--data '{
"provider": "google",
"token": "<string>"
}'
import requests
url = "https://gateway.amana.io/auth/link-social-provider"
headers = {"Content-Type": "application/json"}
payload = {
"provider": "google",
"token": "<string>"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/auth/link-social-provider', {
method: 'POST',
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"provider": "google", "token": "<string>"}),
});
console.log(await response.json());
{
"status": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Authentication
Link a social provider
Link a social provider login to the signed-in user’s account so they can sign in with it later.
POST
/
auth
/
link-social-provider
curl --request POST \
--url 'https://gateway.amana.io/auth/link-social-provider' \
--header 'Content-Type: application/json' \
--data '{
"provider": "google",
"token": "<string>"
}'
import requests
url = "https://gateway.amana.io/auth/link-social-provider"
headers = {"Content-Type": "application/json"}
payload = {
"provider": "google",
"token": "<string>"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/auth/link-social-provider', {
method: 'POST',
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"provider": "google", "token": "<string>"}),
});
console.log(await response.json());
{
"status": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Body
Content type:application/json
enum<string>
required
Available options:
google, applestring
required
Response
200 Success.
string
Possible Errors
| Error | Possible cause | What to do |
|---|---|---|
| 400 | Invalid or missing field | Check the request against the schema. |
| 401 | Token missing or expired | Log in again or use the refresh token. |
| 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/link-social-provider' \
--header 'Content-Type: application/json' \
--data '{
"provider": "google",
"token": "<string>"
}'
import requests
url = "https://gateway.amana.io/auth/link-social-provider"
headers = {"Content-Type": "application/json"}
payload = {
"provider": "google",
"token": "<string>"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/auth/link-social-provider', {
method: 'POST',
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"provider": "google", "token": "<string>"}),
});
console.log(await response.json());
{
"status": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Last modified on October 8, 2026
