Whether a brand's colours can be read for the theme
available is false when no Anthropic key is set up (reason no_key) or this month's AI budget is spent (reason limit); the theme editor offers reading a brand only while it is true, and goes on building a palette out of pasted colour values either way.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/white-label/brand-palette.do
available is false when no Anthropic key is set up (reason no_key) or this month's AI budget is spent (reason limit); the theme editor offers reading a brand only while it is true, and goes on building a palette out of pasted colour values either way. Also answers the size limits a document is held to. Requires the WHITE_LABEL admin permission, and an Anthropic key for the readings that need the model: the user's own, the network's, or Epom's while the network's plan includes it.
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/white-label/brand-palette.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());