Skip to content
Connect an agent
Organisations

Read an organisation's brand theme

The saved brand colors, which of them were chosen, whether the hosted service paints with them (a brand is saved and the owner's plan includes brand themes), whether the caller may change them, and the plan.

GET/orgs/{org}/brand

TL;DR

QuestionAnswer
What does it do?Read an organisation's brand theme.
What does it take?org in the path.
What does it return?Status 200 with a body of type OrgBrand.
What can go wrong?401 not signed in; 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

The saved brand colors, which of them were chosen, whether the hosted service paints with them (a brand is saved and the owner's plan includes brand themes), whether the caller may change them, and the plan. Every member may read it.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The brand.OrgBrand
401Not signed in.ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type OrgBrand.

FieldTypeRequiredDescription
brandBrandColorsyesThe saved brand, or null when none is saved.
brand.primarystringyesLowercase #rrggbb.
brand.secondarystringyesLowercase #rrggbb.
brand.accentstringyesLowercase #rrggbb.
chosen("primary" | "secondary" | "accent")[]yesThe colors the person chose. The others are made from the primary.
activebooleanyesTrue when a brand is saved and the owner's plan includes brand themes, so the hosted service paints with it.
canEditbooleanyesTrue when the caller's role may save, remove and preview a brand: the owner and admins.
plan"free" | "pro" | "enterprise"yesThe organisation's plan, which is its owner's.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools