Connect Shopify
For AI agents: the docs index is at /llms.txt, and every page is also served as markdown at its URL plus .md.
In this guide
BlogAutoPost writes blog articles to Shopify through the Admin GraphQL API, using a token from a custom app you create in your own store.
What you need
- Your shop domain ending in
.myshopify.com, such asmy-store.myshopify.com. A custom storefront domain does not work here. - The Admin API access token of a custom app you created in your Shopify admin and installed on the store.
- The
write_contentandread_contentAdmin API scopes on that app.write_online_store_pagesalso works for writing. - At least one blog in the store, created under Online Store, Blog posts. If the store has more than one, choose which one BlogAutoPost posts to.
Why a custom app token
A custom app belongs to your store alone, and its token is how BlogAutoPost connects. The token is stored encrypted and is removed from any error message.
How verification works
Verification only reads. It asks Shopify for the shop name, the granted scopes and the list of blogs. It fails if the read or write content scope is missing, if the store has no blog, or if it has several and none was chosen. A blog id you gave must exist in the store, and the error lists the blogs that do.
What is set on each article
- Title, handle (the slug), body, summary, tags and published state.
- The SEO title and description go into the standard
global.title_tagandglobal.description_tagfields. - The cover image with alt text. The image bytes are uploaded to a Shopify staging target first, then attached to the article.
- Shopify requires an author, so the store name is used as the byline.
Retries never post twice
Before publishing, BlogAutoPost searches your blog for an article with the same handle. Only an exact handle in the chosen blog counts as already posted, and then the existing article is reused instead of creating another.
Failures and what to do
| Code | Meaning | What to do |
|---|---|---|
auth_failed | Shopify did not accept the token, or the app lacks permission. | Copy the Admin API access token again. Grant the scopes, reinstall the app and reconnect. |
missing_scope | The app lacks read_content or write_content. | Add the scope in the app configuration, reinstall and reconnect. |
not_found | No store at that domain, or the blog id does not exist. | Check the .myshopify.com address or pick a listed blog. |
invalid_request | Shopify refused something, or the store has no blog or several blogs. | Read the message, then create a blog or choose one. |
conflict | The handle is already taken. | Change the post address or remove the older article. |
unexpected_response | Shopify answered in a shape we do not recognise, so nothing changed. | Try again later or contact support. |
When Shopify is rate limiting your store, the step is reported as unavailable and retryable, and BlogAutoPost tries again shortly. See errors for the full list.
Next guide
Connect Webflow
Connect a Webflow CMS collection with a Data API token: required scopes, the field map, verification, live versus draft items and fixes for failures.
Read the guide