Marke abrufen
GET
/brand
const url = 'https://ihre-marke.brandhub.31m.de/api/v1/brand';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://ihre-marke.brandhub.31m.de/api/v1/brand \ --header 'Authorization: Bearer <token>'Liefert Name, Slug und Theme der Marke mit Farben je Rolle, Palette und Schriften je Rolle. Farben und Schriften pflegen Sie im Backend, über die API sind sie nur lesbar.
Authorizations
Abschnitt betitelt „Authorizations“Responses
Abschnitt betitelt „Responses“Media typeapplication/json
object
slug
required
string
name
required
string
theme
required
object
colors
required
object
primary
required
string
accent
required
string
background
required
string
text
required
string
link
required
string
palette
required
Array<object>
BrandColorobject
id
required
integer
name
required
string
description
required
string | null
role
required
string | null
hex
required
string
rgb
required
string | null
cmyk
required
string | null
pantone
required
string | null
ral
required
string | null
shades
required
Array<object>
object
opacity
required
string | null
hex
required
string | null
font
required
string
fonts
required
Array<object>
object
role
required
string
family
required
string
base_weight
required
integer | null
faces
required
Array<object>
object
weight
required
integer
style
required
string
Examplegenerated
{ "slug": "example", "name": "example", "theme": { "colors": { "primary": "example", "accent": "example", "background": "example", "text": "example", "link": "example" }, "palette": [ { "id": 1, "name": "example", "description": "example", "role": "example", "hex": "example", "rgb": "example", "cmyk": "example", "pantone": "example", "ral": "example", "shades": [ { "opacity": "example", "hex": "example" } ] } ], "font": "example", "fonts": [ { "role": "example", "family": "example", "base_weight": 1, "faces": [ { "weight": 1, "style": "example" } ] } ] }}