Craft CMS sites connect through Craft's GraphQL API with an access token. Posts are saved as entries in one section and entry type. Because the platform expects specific field handles, prepare Craft first and involve the UP-TO-DATE support team for your first Craft site.
Before you start
You are an Owner or Admin of the company in Accounts, or of its agency.
You have administrator access to the Craft control panel.
The site has a section for blog posts (for example with the handle
blog) and an entry type in it (for exampleblogPost).
Step 1: Prepare the fields
The platform writes the post into these field handles on the entry type:
Content | Field handle |
|---|---|
Post body |
|
Description |
|
Categories |
|
Post date |
|
The title is always written to the entry title. New entries are saved as enabled, with author ID 1. These handles and the author can't be changed in the form, so make sure the entry type uses them, or ask the UP-TO-DATE support team before connecting.
Step 2: Create a GraphQL schema and token
In the Craft control panel, go to GraphQL.
Create a schema that can query entries in the blog section, and save and delete entries of the blog entry type.
Create a token assigned to that schema and copy it.
Step 3: Check the GraphQL addresses
The platform uses two addresses on the site:
https://your-site.com/apifor the connection testhttps://your-site.com/actions/graphql/apifor publishing
Both must reach Craft's GraphQL API and accept the token.
Step 4: Open Connect a Site
In Accounts, go to Companies > open the company > Websites tab.
Click Connect a Site. If the company already has sites, click Connect New Site.
Under Select your CMS, choose Craft CMS.
Step 5: Fill in the fields
Field | What to enter |
|---|---|
Craft CMS Site URL | The site address, for example |
Access Token | The GraphQL token from step 2. |
Blog Section Handle | The section handle, for example |
Blog Entry Handle | The entry type handle, for example |
Step 6: Test the connection
Click Test Connection. It becomes clickable once the URL and token are filled in.
The test reads entries in the section, saves a disabled "Test Entry" and deletes it again.
When it passes, you see "Test connection successful! Token has required permissions."
Step 7: Connect and check
Click Connect. The site name is read from Craft.
Check that the site appears in the company's Websites list.
Important: If the site doesn't appear in the Websites list after you click Connect, don't connect it again. Contact the UP-TO-DATE support team so they can finish the connection.
Common errors
Message | What to check |
|---|---|
"Please enter a valid URL" | The URL is missing |
"Authentication failed. Please check your token." | The token is wrong, expired or revoked. |
"GraphQL token has insufficient permissions for content creation." | The schema can read entries but not save them. Allow saving and deleting entries of the entry type. |
"Failed to connect to Craft CMS GraphQL endpoint." |
|
"Failed to connect to Craft CMS" | The site couldn't be reached. |
"Error connecting to Craft" followed by a status code | Connecting failed after a passed test. Contact the UP-TO-DATE support team. |