How to connect Strapi, and what agents can change there
Updated
Before you start#
- You need Strapi v4 or v5.
- For SEO fields, install the Strapi SEO plugin and add its
shared.seocomponent to your content type.
Your website must show the fields
SEOmatic fills in fields in your Strapi content. Google only sees an SEO title, canonical or noindex if your website's code reads that field. Check with your developer before you rely on it.
Connect Strapi#
- In Strapi admin, open Settings, API Tokens, click Create new API Token and set the type to Full access. Copy it.
- In SEOmatic, on the Strapi row, click Add Connection. Fill in API URL (your Strapi server's address) and API Token, then click Connect.
- In Choose where your posts go, click the collection for blog posts, match the fields in Map Blog Fields (Title, Content, Slug, Excerpt and Featured Image are required) and click Confirm Mapping.
Strapi only lists collections with common names, such as articles, posts or blogs. If yours has another name, type its plural API ID (for example blog-posts, from Strapi's Content-Type Builder) under Not listed? and click Use it. Until the mapping is done, agent articles stay ready and are not published.
What your agents can change on Strapi#
| Change | What happens | Notes |
|---|---|---|
| Title and URL | Live | |
| SEO title, meta description, canonical, noindex, structured data | Live | Through the SEO plugin's shared.seo component |
| Image alt text | Live | Set in the image's alternative text |
| New posts | Live | In the collection you mapped |
| Page text | Paste | Page text is never edited |
| Redirects | Paste | Strapi has no built-in redirects. Add them where your website handles redirects |
Fix connection errors#
| You see | What to do |
|---|---|
| Invalid API token... | Create a new Full access token and paste it. Tokens can stop working after Strapi is redeployed with a new salt. |
| Failed to connect to Strapi. Please check your domain is correct. | Use your Strapi server's address, not your website's. |
| Connection timed out. Please check your Strapi instance is running. | Make sure Strapi is up and reachable from the internet. |
| Connected, but the CMS returned no content documents SEOmatic can work with | You connected an empty project. Connect the one that holds your live content. |
- Why does my agent never suggest FAQ blocks or internal links on Strapi?
- Strapi is connected without editing page text, so your agents only plan changes they can make there.
Was this article helpful?
Still need help?Email contact@seomatic.ai with your site address and a screenshot. A person replies, usually within one business day.


