Skip to content
All docs

Umbraco setup

Credential: API user

The Umbraco connector writes each article as a document of one document type through the Umbraco Management API. You need no package.

Umbraco 15 or newer is required. Umbraco 13 and older cannot connect: API users with client credentials came in Umbraco 15. Umbraco 17 LTS is recommended. Umbraco Heartcore is a different product and does not work.

Your site must be on the internet over https. BirchSeek does not connect to private addresses.

Step 1 - make an API user

  1. In the backoffice, go to Users and select Create → API User.
  2. Name it BirchSeek. Put it in a user group with access to the Content and Media sections, and with the Create, Update and Publish permissions on your blog page. The built-in Administrators group has all of them.
  3. Open the user and add Client credentials. Copy the client id and the client secret. Umbraco shows the secret one time.

Step 2 - prepare the document type

BirchSeek writes to a document type that you have, for example blogPost. It needs a body property with the Rich Text or Markdown editor.

Add a Textstring property with the alias umbracoUrlName to keep BirchSeek’s slug in the URL. Without it, Umbraco makes the URL from the title.

Step 3 - connect in BirchSeek

Setting Meaning
Site URL The root of your site, for example https://example.com. Not /umbraco
Client id From step 1. With or without umbraco-back-office-
Client secret From step 1
Document type alias For example blogPost
Parent page key The key of your blog page, from its Info tab. Empty puts posts at the root
Body property The alias of the Rich Text or Markdown property
After each save Keep as draft (default) or Publish

The optional properties:

Role Editor Value
URL name Textstring The article slug
Meta title Textstring or Textarea The meta title
Meta description Textstring or Textarea The meta description
Image Media Picker The featured image
Tags Tags The tags
Author Textstring The byline
Publish date Date Picker with time The publish date
Schema Textarea The article’s JSON-LD

Set the Media folder key to put images in a folder. Set the Culture (for example en-US) when the document type varies by culture.

Step 4 - send a test

Send a test gets a token with your client id and secret, reads the Umbraco version, finds the document type by its alias, and checks each property alias and its editor. The test stores the document type’s key. The test writes nothing.

What BirchSeek writes

  • The body without the title heading. The document name is the title. A Rich Text body gets HTML markup. A Markdown body gets markdown.
  • Images in the media library. BirchSeek uploads each image one time as an Image media item and finds it again on the next publish. In-article images point at the media URL.
  • One document per article. BirchSeek gives each article one document key. A retry or a refresh updates that document, and a document that you wrote is never changed.
  • Only its own properties. An update replaces the mapped properties and keeps every other value.
  • Drafts. With Keep as draft, BirchSeek saves and you publish in Umbraco. A change to a published page waits as a pending change until you publish it. With Publish, BirchSeek publishes after each save.

The body ends with the ## Sources block. See Sources and citations.

A video is written as a link, because the rich text editor removes embeds.

BirchSeek’s calendar times each write. The access token lives about five minutes; BirchSeek gets a new one when it needs it.

Troubleshooting

  • “refused the client id or secret”: copy them again. Make new client credentials if you lost the secret.
  • “Umbraco 15 or newer is required”: upgrade the site.
  • 403: the API user’s group needs the Content and Media sections and the Create, Update and Publish permissions on the parent page.
  • “has no document type with the alias”: check the alias in Settings → Document Types.
  • “varies by culture”: set the Culture.
  • Umbraco Cloud: with IP filtering on the Management API, allow BirchSeek’s server. Contact support for the address.
  • The URL is the headline: map the URL name property.