dotCMS
Connect dotCMS so Sitefire can send finished articles to your instance as drafts. To learn how publishing works, read How publishing works.
Sitefire needs two things: the address of your instance and an API token.
Copy your dotCMS URL
Use the HTTPS address of your dotCMS instance, with no path:
https://cms.example.comThe address must be public and use HTTPS, without a port number. Sitefire cannot reach an instance on localhost or on a private network.
Create an API token
The screenshots show dotCMS 26.09.03-01. Other versions can have different labels. We hid the user details in the screenshots.
In dotCMS, go to Settings → Users. Select the user for the token.

Select the service account that Sitefire will use.
Open the API Access Tokens tab, then click Request New Token.

The API Access Tokens tab belongs to the selected user.
Give the token a Label (for example sitefire) and an Expires Date. Leave Allow Network (CIDR) as 0.0.0.0/0.

Choose an expiry date that matches your token-rotation policy. The date shown is an example.
Click OK, then get token. Copy the token.
Paste the token into the API token field in Sitefire.
Do not limit the network. Sitefire pushes from IP addresses that change, so a smaller CIDR range blocks it.
Use a service account, not the account of a person. The token has the same permissions as its user. A token of a person stops working when the person leaves.
Write down the expiry date. When the token expires, pushes fail with an invalid-credentials error. The error does not say that the token expired.
Give the user the right permissions
The user of the token must be able to:
- read content types
- read and write content
- run the content type’s initial save-only workflow action
To create an article, the content type must have an initial workflow action with Save content or Save Draft content. The action can also include Unlock or Unarchive. It must not include publishing or custom sub-actions. The user of the token must be allowed to run the action. The standard System Workflow works.
An update saves directly to the working draft, without a workflow action. The token does not need permission to publish or to manage workflows.
Select a content type
After connecting, Sitefire shows the content types on your instance. Select the one you use for articles, for example Blog.
Sitefire lists a content type only if it has at least one field that Sitefire can write to.
Map your fields
Map each article field to the matching dotCMS field.
| dotCMS field type | Use it for | What happens |
|---|---|---|
| Text | Title, Slug | Stored as written |
| Textarea | Excerpt | Markdown stays markdown |
| Block Editor | Body | Converted to Block Editor content |
| WYSIWYG | Body | Converted to HTML |
| Date, Date and Time | Publish date | Stored as written |
| Custom | Slug | Stored as written, if the field is indexed |
Map the article slug to the field that your URL map uses. On the standard Blog type of dotCMS, this field is urlTitle, and it is required.
Sitefire also uses this field to find an article that it pushed before. Without it, each push creates a new article and does not update the first one.
Fields Sitefire does not offer
Image, file, category, tag and relationship fields need a value that Sitefire cannot give. You cannot map them.
You can map a custom field only if it is indexed and holds text. dotCMS uses custom fields for two jobs: real content such as urlTitle, and editor widgets such as a character counter. Only the first kind is indexed.
Sitefire fills the Site or Folder field itself, with the site of your content type. You cannot map it.
If dotCMS rejects the article
“No save-only dotCMS workflow action is available”. Ask your dotCMS administrator to give the user of the token an initial Save content or Save Draft content action. To create articles, Sitefire does not support Publish, Set Value or custom script sub-actions.
“requires fields Sitefire sent no value for”. A required field of the content type got no value. If it is a text or date field, map it. If it is an image, category or site field, make it optional in dotCMS, or give it a default value.
“Invalid dotCMS API token”. The token is wrong or expired. Or its user cannot read content types and write content.
“does not look like a dotCMS instance”. The URL does not point to dotCMS. Make sure that it is the address of the CMS, with no path.
Where the drafts arrive
New articles arrive as unpublished working drafts. An update to a published article changes its working draft. The published version stays live until you publish the new version.
The article goes to the site of its content type. If all sites share the content type, the article goes to your default site.
View in dotCMS on a pushed article opens Content Search in your instance.