Skip to content

Connect a content source

A content source tells EdgeKit which CMS your content lives in and how to read it. For Arc XP and WordPress, saving one for the first time starts a full sync of that CMS into your organization’s copy. Every other CMS pushes its content to EdgeKit through the content API. A content source is not part of your draft: it takes effect when you save it, with no stage or deploy.

You need the site write permission (the Owner and Admin roles) to add or change a content source. Without it, the source is listed in Content › Configuration › Sources with no actions.

The Content management system list offers Arc XP, Glide, WordPress, Labrador, Contentful, Sanity and Custom CMS. See Arc XP and WordPress for what to set up on the CMS’s side.

Your organization can have many content sources: add one for each CMS installation your content lives in, two of the same CMS included, such as a news site and a blog that each run their own WordPress. Each source has a source key, a short name you choose, such as news. The key names the source in the sync request, in your webhook and in the content API path. The source key and the CMS of a source are fixed once saved, and the console cannot delete a source, so check both before you save.

EdgeKit reads your CMS with a credential of yours: for Arc XP, your Arc access token; for WordPress, the username and Application Password of a dedicated WordPress user with the Editor role. You enter it on the source’s own page, under CMS credential, once the source is saved. It is stored for your organization and never shown again: the page says only whether one is set. Each source has its own credential. Saving it redeploys your organization’s API, which takes a few minutes.

The first sync starts when the source is saved, before the credential is in place, so it fails on its first page and waits. Once the credential is saved and deployed, select Start full sync on the source’s page. The same button resumes a full sync that was interrupted.

  1. Open Content › Configuration › Sources and select Add source.

  2. Enter the Source key: lowercase letters, digits and single hyphens, at most 64 characters, such as news. Each source needs its own.

  3. Pick the Content management system.

  4. Enter the API base URL: your CMS’s own API origin, not your public site. It must be an https URL. For Arc XP it is https://api.<org>.arcpublishing.com, or https://api.sandbox.<org>.arcpublishing.com for a sandbox, and no other host is accepted. For WordPress it is your site’s REST root, https://<host>/wp-json; EdgeKit sends its WordPress credential to this host.

  5. Under Sites, select Add site once for each of your CMS’s sites. Enter its CMS site key (for Arc XP, the website id) and pick the EdgeKit site it maps to. Each row needs both, and each key may appear once. Arc XP needs at least one row. Leave it empty for a pushed source: each item you push names its EdgeKit sites itself.

    A WordPress source has no Sites rows. Pick its Site instead: the one EdgeKit site every item from this WordPress appears on.

  6. Enter the Default language: a BCP 47 tag such as en or en-GB. It starts as en. EdgeKit uses it for any item whose language your CMS leaves out or gives in a form EdgeKit cannot read as a language tag.

  7. Optionally, enter the Content types: your CMS’s own type keys, separated by commas, such as story, video. Each is at most 128 characters.

    For WordPress the field is Post types and is required: the WordPress post types to sync, separated by commas, such as post, page. It starts as post. Each must be available in the WordPress REST API.

  8. Select Save.

The first save starts a full sync. For Arc XP, that is every published story on a mapped website; see Arc XP. For WordPress, that is every post of each listed post type, drafts and scheduled posts included; see WordPress. Items appear in Content › Content › Items as they arrive, and a large archive takes hours. A pushed source’s first save starts nothing: its items arrive as your integration writes them.

  1. Open Content › Configuration › Sources and select the source in the Source key column.
  2. Change the API base URL, the Sites rows (for WordPress, the Site), the Default language or the Content types (for WordPress, the Post types).
  3. Select Save.

An edit starts nothing. It applies to the next read of each item: an item your CMS changes, or one you re-sync. A site you add later gets its items as they change in your CMS, not all at once. To read the whole CMS again, ask EdgeKit to run the full sync again.

  • Sites decides where an item is visible. An item your CMS places on a mapped site gets a URL for that EdgeKit site. An item on an unmapped site is still stored, with no URL there. A row whose EdgeKit site has been deleted is skipped like an unmapped key.
  • Default language is part of an item’s identity, because EdgeKit keeps one content item per language. Changing it moves every item that used it: at its next sync EdgeKit writes a new item under the new language and marks the old one deleted.
  • Content types limits what the content API accepts for a pushed source: an item of any other type is refused as unknown_content_type. Left empty, any type is accepted. Items already stored are kept. The Arc XP sync does not read this list; it syncs stories only.
  • Post types, on a WordPress source, is the list of post types EdgeKit syncs. The first sync and nightly reconciliation read each one, and a changed id is looked up under each in order. A post type you add later gets its posts as they change, not all at once. An item of a post type you remove is marked deleted at its next sync.

Your CMS tells EdgeKit what changed through its own integration calling the sync route; see Keep content in sync. Some changes are never announced. A nightly reconciliation re-reads what changed and what your CMS no longer serves, and catches those.

Nightly reconciliation is off unless EdgeKit turns it on for your organization. While it is off, a change your CMS never announces stays stale until that item’s next event or re-sync. With it on, each Arc XP and WordPress source is reconciled every night. A WordPress site depends on it more: see WordPress.

Pause nightly reconciliation stops it for this source when it is on. A running reconciliation stops at its next page. Sync on each CMS change keeps running either way, and the checkbox changes nothing while reconciliation is off.

A pushed source has no reconciliation, and its form has no checkbox: push an item again to correct it (Re-push to reconcile).

Each row shows the Source key, the CMS, the API base URL, how many Sites rows it maps and its Status:

  • Syncing: EdgeKit syncs from this CMS.
  • Reconciliation paused: Pause nightly reconciliation is on. Sync on each change still runs.
  • Pushed: your integration writes this source’s content through the content API; EdgeKit never reads the CMS.
Message Cause
Required A Sites row has no key or no EdgeKit site.
Lowercase letters, digits and single hyphens, at most 64 characters The Source key has another character, or is too long.
A source already has this key Another content source has this Source key.
Reserved. Pick another source key The Source key is a word EdgeKit keeps for itself.
"<key>" is a vendor's name, so only a <key> source can have it as its key. The Source key is another CMS’s name, such as arcxp.
Must be a URL, including the scheme The API base URL is not a URL.
"<url>" is not an https URL. The API base URL does not start with https://.
"<host>" is not an Arc XP API host, such as "api.<org>.arcpublishing.com". An Arc XP source points anywhere but Arc’s own API hosts.
Map at least one Arc website to a site An Arc XP source has no Sites row.
Pick the site this WordPress serves A WordPress source has no Site.
List at least one post type, like post A WordPress source has no Post types.
Each CMS site key appears once Two Sites rows share a key.
A BCP 47 tag, like en-GB The Default language is not a language tag.
Each content type is at most 128 characters A Content types entry is too long.
A content source was saved at the same moment. Reload and try again. Someone else saved a content source at the same time.

edgekit.ai