Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

CMS · pages

11 routes. Paths are relative to https://api.intersink.com/v1.

All groups

List the channel's pages (all statuses)

GET/cms/channels/{channelId}/pages

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
pagenumber, queryMinimum 1.
limitnumber, queryMinimum 1, maximum 100.
statusstring, queryOne of: "draft", "published", "archived".
qstring, querySearch in the title/name

Response

200. The payload in data is not described in the spec yet.

Create a page (draft by default)

POST/cms/channels/{channelId}/pages

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Request body application/json

FieldTypeDescription
descriptionstringIntro (plain text) At most 2000 characters.
imagestringdirectus_files id of the hero image
meta_titlestringAt most 255 characters.
meta_descriptionstringAt most 500 characters.
meta_keywordstringAt most 255 characters.
tagsstringAt most 255 characters.
og_imagestringdirectus_files id of the og:image
canonical_urlstringAt most 2048 characters. Example: "https://shop.example.com/about-us"
noindexbooleanAsk search engines not to index
titlerequiredstringAt most 255 characters. Example: "About us"
slugrequiredstringUnique per channel At most 120 characters. Example: "about-us"
statusstringOne of: "draft", "published".

Response

201. The payload in data is of type object.

Get a page with its sections

GET/cms/channels/{channelId}/pages/{pageId}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
pageIdrequirednumber, path

Response

200. The payload in data is of type object.

Update a page (title, slug, SEO, status)

PATCH/cms/channels/{channelId}/pages/{pageId}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
pageIdrequirednumber, path

Request body application/json

FieldTypeDescription
descriptionstringIntro (plain text) At most 2000 characters.
imagestringdirectus_files id of the hero image
meta_titlestringAt most 255 characters.
meta_descriptionstringAt most 500 characters.
meta_keywordstringAt most 255 characters.
tagsstringAt most 255 characters.
og_imagestringdirectus_files id of the og:image
canonical_urlstringAt most 2048 characters. Example: "https://shop.example.com/about-us"
noindexbooleanAsk search engines not to index
titlestringAt most 255 characters.
slugstringAt most 120 characters. Example: "about-us"
statusstringOne of: "draft", "published", "archived".

Response

200. The payload in data is of type object.

Delete a page and its sections

DELETE/cms/channels/{channelId}/pages/{pageId}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
pageIdrequirednumber, path

Response

200. The payload in data is not described in the spec yet.

Publish a page

POST/cms/channels/{channelId}/pages/{pageId}/publish

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
pageIdrequirednumber, path

Response

201. The payload in data is of type object.

Add a section (content is sanitized HTML)

POST/cms/channels/{channelId}/pages/{pageId}/sections

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
pageIdrequirednumber, path

Request body application/json

FieldTypeDescription
titlestringAt most 255 characters.
contentstringRich text (HTML). Sanitized server-side with an allow-list. At most 100000 characters.
sortnumberMinimum 0, maximum 10000.

Response

201. The payload in data is of type object.

Update a section

PATCH/cms/channels/{channelId}/pages/{pageId}/sections/{sectionId}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
pageIdrequirednumber, path
sectionIdrequirednumber, path

Request body application/json

FieldTypeDescription
titlestringAt most 255 characters.
contentstringRich text (HTML). Sanitized server-side with an allow-list. At most 100000 characters.
sortnumberMinimum 0, maximum 10000.

Response

200. The payload in data is of type object.

Delete a section

DELETE/cms/channels/{channelId}/pages/{pageId}/sections/{sectionId}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
pageIdrequirednumber, path
sectionIdrequirednumber, path

Response

200. The payload in data is not described in the spec yet.

Reorder sections: ids = every section, in order

PUT/cms/channels/{channelId}/pages/{pageId}/sections/order

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
pageIdrequirednumber, path

Request body application/json

FieldTypeDescription
idsrequirednumber[]Every section id of the page, in the new order

Response

200. The payload in data is of type object.

Unpublish a page (back to draft)

POST/cms/channels/{channelId}/pages/{pageId}/unpublish

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
pageIdrequirednumber, path

Response

201. The payload in data is of type object.