Перейти до вмісту
AstroWay/api v2.19.0 · docs
усі системи в нормі
UA EN

Get White-label Config

GET
/whitelabel/config

Read the authenticated user’s branding overrides (logo, colour palette, font, footer text, custom domain). On first access, defaults are seeded.

curl -X GET https://api.astroway.info/v1/whitelabel/config \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json"

Successful calculation

object
ok
boolean
Example
true
data
object
primary_color
string
secondary_color
string
font_family
string
footer_text
object
custom_domain
object
domain_verified
boolean
domain_last_checked_at
object
logo_storage_key
object
updated_at
string
Example
{
"ok": true,
"data": {
"primary_color": "#d4a84c",
"secondary_color": "#7e6bff",
"font_family": "Inter",
"footer_text": null,
"custom_domain": null,
"domain_verified": false,
"domain_last_checked_at": null,
"logo_storage_key": null,
"updated_at": "2026-05-08T07:00:00Z"
}
}

Validation error

Example
{
"ok": false,
"error": {
"code": "INVALID_INPUT",
"message": "Validation failed: date: Date must be YYYY-MM-DD",
"details": [
{
"path": "date",
"message": "Date must be YYYY-MM-DD"
}
]
}
}

Missing or invalid API key

Example
{
"ok": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}
}
Корисно?