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

Get White-label Config

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

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

Successful calculation

Media type application/json
object
ok
boolean
data
object
primary_color
string
nullable
secondary_color
string
nullable
font_family
string
nullable
footer_text
object
custom_domain
object
domain_verified
boolean
nullable
domain_last_checked_at
object
logo_storage_key
object
updated_at
string
nullable
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

Media type application/json
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

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