Show examples in:
Javascript HTTP
Content Management API > Public info

Public info

Info that can be accessed by unauthorized users

Object payload

id string

ID of site

Example: "412"
type string

Must be exactly "public_info".

name string

Site name

Example: "My Awesome Website"
theme object

Specifies the color-scheme for the project. For monochromatic themes the response only includes type and hue — frontends must derive the palette from the hue. For custom themes the primary_color, light_color, accent_color, and dark_color fields are returned.

type enum

Whether the project is using a custom color palette or a monochromatic one derived from a hue.

Example: "monochromatic"
custom
monochromatic
hue integer, null

If the type is monochromatic, the value will fall between 0 and 359. If it's not, the value will be null.

Example: 16
color_channel integer

An integer color channel value (0-255)

Example: 128
color object

An RGBA color value

red integer

An integer color channel value (0-255)

Example: 128
green integer

An integer color channel value (0-255)

Example: 128
blue integer

An integer color channel value (0-255)

Example: 128
alpha integer

An integer color channel value (0-255)

Example: 128
primary_color object

An RGBA color value

red integer

An integer color channel value (0-255)

Example: 128
green integer

An integer color channel value (0-255)

Example: 128
blue integer

An integer color channel value (0-255)

Example: 128
alpha integer

An integer color channel value (0-255)

Example: 128
light_color object

An RGBA color value

red integer

An integer color channel value (0-255)

Example: 128
green integer

An integer color channel value (0-255)

Example: 128
blue integer

An integer color channel value (0-255)

Example: 128
alpha integer

An integer color channel value (0-255)

Example: 128
accent_color object

An RGBA color value

red integer

An integer color channel value (0-255)

Example: 128
green integer

An integer color channel value (0-255)

Example: 128
blue integer

An integer color channel value (0-255)

Example: 128
alpha integer

An integer color channel value (0-255)

Example: 128
dark_color object

An RGBA color value

red integer

An integer color channel value (0-255)

Example: 128
green integer

An integer color channel value (0-255)

Example: 128
blue integer

An integer color channel value (0-255)

Example: 128
alpha integer

An integer color channel value (0-255)

Example: 128
sso_saml_init_url null, string

Specifies the Single Sign-on URL to reach

Example: "https://sso.datocms.com/XXX/saml/init"
logo_url null, string

Specifies the logo url if present

Example: "https://www.datocms-assets.com/XXX/logo.svg"
white_label boolean

Specifies whether the project is in white-label mode

custom_i18n_messages_template_url null, string

Template URL to download specific I18n messages (for white-label projects only)

extras null, object

Additional information (only returned on authenticated requests)

blocks_depth integer
Example: 3
blocks_per_item integer
Example: 150
maximum_single_upload_bytes integer
Example: 1073741824

Available endpoints