curl "https://api.usegately.com/api/v1/settings" \
-H "Authorization: Bearer YOUR_API_KEY"
const settings = await gately.settings.get()
console.log(settings.sender_name, settings.sender_email)
{
"success": true,
"data": {
"name": "Magana",
"sender_name": "Magana Team",
"sender_email": "hello@magana.com",
"reply_to_email": "support@magana.com",
"support_email": "help@magana.com",
"primary_color": "#FE551B",
"logo_url": "https://cdn.magana.com/logo.png",
"allow_new_member_signup": true,
"session_duration_days": 30
}
}
Project Settings
Get Settings
Retrieve all project settings including email sender configuration, branding, and authentication options
GET
/
api
/
v1
/
settings
curl "https://api.usegately.com/api/v1/settings" \
-H "Authorization: Bearer YOUR_API_KEY"
const settings = await gately.settings.get()
console.log(settings.sender_name, settings.sender_email)
{
"success": true,
"data": {
"name": "Magana",
"sender_name": "Magana Team",
"sender_email": "hello@magana.com",
"reply_to_email": "support@magana.com",
"support_email": "help@magana.com",
"primary_color": "#FE551B",
"logo_url": "https://cdn.magana.com/logo.png",
"allow_new_member_signup": true,
"session_duration_days": 30
}
}
Returns the combined settings for your project from both the
project_settings and projects tables.
Headers
Response
curl "https://api.usegately.com/api/v1/settings" \
-H "Authorization: Bearer YOUR_API_KEY"
const settings = await gately.settings.get()
console.log(settings.sender_name, settings.sender_email)
{
"success": true,
"data": {
"name": "Magana",
"sender_name": "Magana Team",
"sender_email": "hello@magana.com",
"reply_to_email": "support@magana.com",
"support_email": "help@magana.com",
"primary_color": "#FE551B",
"logo_url": "https://cdn.magana.com/logo.png",
"allow_new_member_signup": true,
"session_duration_days": 30
}
}
Was this page helpful?