Initial sync — receiving Setka Editor files to connect them to your CMS

To get style and editor files configured in your account, make the following request with your license key:

GET https://editor.setka.io/api/v2/integration?token=your-license-key

Response sample:

{
  "public_token": "123456789123456789123456789",
  "plugins": [
    {
      "url": "https://ceditor.setka.io/public.v.1.2.3.js",
      "filetype": "js",
      "md5": "asdfasdfasdf"
    }
  ],
  "content_editor_files": [
    {
      "id": 1,
      "url": "https://ceditor.setka.io/company.v.1.2.3.min.css",
      "filetype": "css",
      "md5": "asdfasdfasdf"
    },
    {
      "id": 1,
      "url": "https://ceditor.setka.io/company.v.1.2.3.min.js",
      "filetype": "js",
      "md5": "asdfasdfasdf"
    }
  ],
  "theme_files": [
    {
      "id": 1,
      "url": "https://ceditor.setka.io/company.v.1.2.3.min.css",
      "filetype": "css",
      "md5": "asdfasdfasdf"
    },
    {
      "id": 1,
      "url": "https://ceditor.setka.io/public.v.1.2.3.json",
      "filetype": "json",
      "md5": "asdfasdfasdf"
    }
  ],
  "standalone_styles": {
    "common": [
      {
        "id": 1,
        "url": "https://ceditor.setka.io/common_css/common_css_1.css",
        "filetype": "css"
      }
    ],
    "themes": [
      {
        "id": "1",
        "url": "https://ceditor.setka.io/clients/company/css/1.css",
        "filetype": "css"
      }
    ],
    "layouts": [
      {
        "id": "1",
        "url": "https://ceditor.setka.io/clients/company/layout_option_builds/1/1.css",
        "filetype": "css"
      }
    ]
  }
}

Description for the received set of files:

Array of content_editor_files

Array of theme_files

Array of standalone_styles

To have your post reflected correctly, enable 3 CSS-files from standalone_styles array of files:

API request with additional parameters

To make an API request for the additional files, use an options parameter:

GET https://editor.setka.io/api/v2/integration?token=your-license-key
&options=amp,fonts,icons

Response sample:

{
  "public_token": "123456789123456789123456789",
  "plugins": [
    {
      "url": "https://ceditor.setka.io/public.v.1.2.3.js",
      "filetype": "js",
      "md5": "asdfasdfasdf"
    }
  ],
  "content_editor_files": [
    {
      "id": 1,
      "url": "https://ceditor.setka.io/company.v.1.2.3.min.css",
      "filetype": "css",
      "md5": "asdfasdfasdf"
    },
    {
      "id": 1,
      "url": "https://ceditor.setka.io/company.v.1.2.3.js",
      "filetype": "js",
      "md5": "asdfasdfasdf"
    }
  ],
  "theme_files": [
    {
      "id": 1,
      "url": "https://ceditor.setka.io/editor.v.1.2.3.min.css",
      "filetype": "css",
      "md5": "asdfasdfasdf"
    },
    {
      "id": 1,
      "url": "https://ceditor.setka.io/public.v.1.2.3.json",
      "filetype": "json",
      "md5": "asdfasdfasdf"
    }
  ],
  "standalone_styles": {
    "common": [
      {
        "id": 1,
        "url": "https://ceditor.setka.io/common_css/common_css_1.css",
        "filetype": "css"
      }
    ],
    "themes": [
      {
        "id": "1",
        "url": "https://ceditor.setka.io/clients/company/css/1.css",
        "filetype": "css"
      }
    ],
    "layouts": [
      {
        "id": "1",
        "url": "https://ceditor.setka.io/clients/company/layout_option_builds/1/1.css",
        "filetype": "css"
      }
    ]
  },
  "amp_styles": {
    "common": [
      {
        "id": 1,
        "url": "https://ceditor.setka.io/common_css/common_css_1_amp.css",
        "filetype": "css"
      }
    ],
    "themes": [
      {
        "id": "1",
        "url": "https://ceditor.setka.io/clients/company/theme_builds/1/2.css",
        "filetype": "css",
        "fonts": [
          "https://fonts.googleapis.com/css?family=Open+Sans:400,700%7COpen+Sans+Condensed:400,400i,700&subset=cyrillic&display=swap"
        ]
      }
    ],
    "layouts": [
      {
        "id": "1",
        "url": "https://ceditor.setka.io/clients/1/layout_option_builds/1/2.css",
        "filetype": "css"
      }
    ]
  },
  "icons": [
    {
      "id": 1,
      "url": "https://ceditor.setka.io/clients/company/css/assets/1/img/icon-name.png",
      "filetype": "image"
    }
  ],
  "fonts": [
    {
      "id": 1,
      "url": "https://ceditor.setka.io/clients/company/css/assets/fonts/1/font-name.woff",
      "filetype": "font"
    }
  ]
}

Description of a received array of files

amp_styles array of files

API request for specific arrays of files

To get the needed array of files, add a select parameter to your request, then enumerate these files separated by commas:

GET https://editor.setka.io/api/v2/integration?token=your-license-key
&select=plugins,editor,theme,standalone,amp,fonts,icons

List of available files

Last updated