Zum Inhalt springen
StatusZu Brandhub

REST-API

Markenfarbe abrufen

GET
/brand/colors/{id}
curl --request GET \
--url https://beispielmarke.brandhub.de/api/v1/brand/colors/1 \
--header 'Authorization: Bearer <token>'

Liefert eine Farbe mit HEX, RGB, CMYK, Pantone, RAL und Abstufungen.

id
required
integer

ID der Farbe.

BrandColor

Media typeapplication/json
BrandColor
object
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
ncs
required
string | null
share
integer
text_colors

Erlaubte Textfarben auf dieser Farbe (#1649): white, black oder die id einer Markenfarbe.

Array
text_colors_denied

Unzulässige Textfarben auf dieser Farbe, gleiches Format wie text_colors.

Array
text_contrast

Kontrastverhältnis und WCAG-Stufe je erlaubter Textfarbe: all (ab 4,5), large (ab 3, nur große Schrift), none.

Array
shades
required
Array<object>
object
opacity
required
string | null
hex
required
string | null
Examplegenerated
{
"id": 1,
"name": "example",
"description": "example",
"role": "example",
"hex": "example",
"rgb": "example",
"cmyk": "example",
"pantone": "example",
"ral": "example",
"ncs": "example",
"share": 1,
"text_colors": [
"example"
],
"text_colors_denied": [
"example"
],
"text_contrast": [
"example"
],
"shades": [
{
"opacity": "example",
"hex": "example"
}
]
}

Not found

Media typeapplication/json
object
message
required

Error overview.

string
Examplegenerated
{
"message": "example"
}