Skip to main content

Brands API

Manage customer brands. All routes need a signed-in user with brand access: an Aztec internal admin (any brand) or a client admin (brands owned by their own organization node or below). Other users get 403. A missing brand is 404.

Brand JSON: key, displayName, primaryColor, fontKey (inter, system or serif), fontFamily, logoUrl, logoAltText (en, es), ownerOrganizationId (null for the seeded Aztec brands), isSeeded, version.

OperationRouteNotes
ListGET /api/brands{ "brands": [...] } in the caller's scope.
CreatePOST /api/brandsBody: key, displayName, primaryColor, fontKey, ownerOrganizationId, logoAltText, acceptance. Returns 201.
EditPATCH /api/brandsBody: key, version, and the fields to change. 409 when version is stale.
Upload logoPOST /api/brands/{key}/logoMultipart: file, altTextEn (required), altTextEs.
Check contrastPOST /api/brands/contrast-checkBody: { "primaryColor": "#00467F" }. Stateless.
Resolve my brandGET /api/branding/meUnchanged; see the cobranding page.

Acceptance​

When the primary colour fails the 4.5:1 check, send "acceptance": { "accepted": true, "language": "en", "statementVersion": "1" }. Without it the response is 400 with a primaryColor error listing each failing check. The server recomputes the colours and ratios and stores them with the user's name, role, organization and the time. Acceptances are append-only.

Errors​

400 validation (including failing colours with no acceptance, and logo problems under errors.logo), 403 out of scope, 404 not found, 409 conflicting edit, 503 logo storage unavailable (the brand keeps its previous logo).