Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Public info

Retrieve public site info

Returns

Returns a resource object of type public_info.

Examples

GET https://site-api.datocms.com/public-info HTTP/1.1
Authorization: Bearer YOUR-API-TOKEN
Accept: application/json
X-Api-Version: 3
Terminal window
curl -g 'https://site-api.datocms.com/public-info' \
\
-H "Authorization: Bearer YOUR-API-TOKEN" \
-H "Accept: application/json" \
-H "X-Api-Version: 3"
await fetch("https://site-api.datocms.com/public-info", {
headers: {
Authorization: "Bearer YOUR-API-TOKEN",
Accept: "application/json",
"X-Api-Version": "3",
},
});
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: cache-control: max-age=0, private, must-revalidate
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 28
{
"data": {
"type": "public_info",
"id": "412",
"attributes": {
"name": "My Awesome Website",
"theme": {
"primary_color": {
"red": 128,
"green": 128,
"blue": 128,
"alpha": 128
},
"light_color": {
"red": 128,
"green": 128,
"blue": 128,
"alpha": 128
},
"accent_color": {
"red": 128,
"green": 128,
"blue": 128,
"alpha": 128
},
"dark_color": {
"red": 128,
"green": 128,
"blue": 128,
"alpha": 128
}
},
"sso_saml_init_url": "https://sso.datocms.com/XXX/saml/init",
"logo_url": "https://www.datocms-assets.com/XXX/logo.svg",
"white_label": true,
"custom_i18n_messages_template_url": "",
"extras": {
"blocks_depth": 3,
"blocks_per_item": 150,
"maximum_single_upload_bytes": 1073741824
}
}
}
}