Show examples in:
JavascriptHTTP
Content Management API > Public info

Public info

Info that can be accessed by unauthorized users

Object payload

idstring

ID of site

Example:"412"
typestring

Must be exactly "public_info".

attributes.namestring

Site name

Example:"My Awesome Website"
attributes.themeobject

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.

typeenum

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

Example:"monochromatic"
custom
monochromatic
hueinteger, 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_channelinteger

An integer color channel value (0-255)

Example:128
colorobject

An RGBA color value

redinteger

An integer color channel value (0-255)

Example:128
greeninteger

An integer color channel value (0-255)

Example:128
blueinteger

An integer color channel value (0-255)

Example:128
alphainteger

An integer color channel value (0-255)

Example:128
primary_colorobjectDeprecated

An RGBA color value

Custom color palettes are deprecated.

redinteger

An integer color channel value (0-255)

Example:128
greeninteger

An integer color channel value (0-255)

Example:128
blueinteger

An integer color channel value (0-255)

Example:128
alphainteger

An integer color channel value (0-255)

Example:128
light_colorobjectDeprecated

An RGBA color value

Custom color palettes are deprecated.

redinteger

An integer color channel value (0-255)

Example:128
greeninteger

An integer color channel value (0-255)

Example:128
blueinteger

An integer color channel value (0-255)

Example:128
alphainteger

An integer color channel value (0-255)

Example:128
accent_colorobjectDeprecated

An RGBA color value

Custom color palettes are deprecated.

redinteger

An integer color channel value (0-255)

Example:128
greeninteger

An integer color channel value (0-255)

Example:128
blueinteger

An integer color channel value (0-255)

Example:128
alphainteger

An integer color channel value (0-255)

Example:128
dark_colorobjectDeprecated

An RGBA color value

Custom color palettes are deprecated.

redinteger

An integer color channel value (0-255)

Example:128
greeninteger

An integer color channel value (0-255)

Example:128
blueinteger

An integer color channel value (0-255)

Example:128
alphainteger

An integer color channel value (0-255)

Example:128
attributes.sso_saml_init_urlnull, string

Specifies the Single Sign-on URL to reach

Example:"https://sso.datocms.com/XXX/saml/init"
attributes.logo_urlnull, string

Specifies the logo url if present

Example:"https://www.datocms-assets.com/XXX/logo.svg"
attributes.white_labelboolean

Specifies whether the project is in white-label mode

attributes.custom_i18n_messages_template_urlnull, string

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

attributes.extrasnull, object

Additional information (only returned on authenticated requests)

blocks_depthinteger
Example:3
blocks_per_iteminteger
Example:150
maximum_single_upload_bytesinteger
Example:1073741824
overage_thresholdsobject

Amount of each resource included in the current plan before additional charges may apply.

environmentsinteger

Number of sandbox environments included in the current plan before additional charges may apply

Example:3
collaboratorsinteger

Number of project collaborators included in the current plan before additional charges may apply

Example:10
localesinteger

Number of locales included in the current plan before additional charges may apply

Example:5
modelsinteger

Number of models included in the current plan before additional charges may apply

Example:100

Available endpoints