---
title: "Auto-post to Shopify blogs via GraphQL"
url: "https://blogautopost.com/integrations/shopify.md"
canonical_url: "https://blogautopost.com/integrations/shopify"
last_updated: "2026-10-20"
type: "guide"
summary: "How BlogAutoPost writes Shopify blog articles with the Admin GraphQL API: access token, scopes, field map, the retry check and the errors you may see."
related: ["https://blogautopost.com/docs/connect-shopify.md", "https://blogautopost.com/product/publishing.md", "https://blogautopost.com/docs/errors.md", "https://blogautopost.com/integrations/wordpress.md", "https://blogautopost.com/integrations/webflow.md"]
---

# Auto-post to Shopify blogs via GraphQL

> **For AI agents:** the complete index of BlogAutoPost pages is [llms.txt](https://blogautopost.com/llms.txt). Every page is also served as markdown at its URL plus .md.

How BlogAutoPost writes Shopify blog articles with the Admin GraphQL API: access token, scopes, field map, the retry check and the errors you may see.

## The facts at a glance

| Item | What the connection uses |
| --- | --- |
| Mutation | `articleCreate`, sent to `/admin/api/2026-10/graphql.json` on your `.myshopify.com` address. 2026-10 was the latest API version on the day we read the reference. |
| Credential | The Admin API access token of an app installed on your store, sent in the `X-Shopify-Access-Token` header. Shopify no longer lets stores create new admin-created custom apps, so a new connection uses an app made in the Shopify Dev Dashboard or with the Shopify CLI; an existing custom app keeps working. |
| Scopes | Shopify says `articleCreate` needs `write_content` or `write_online_store_pages`. The setup asks you to grant `read_content` and `write_content`. |
| Visibility | The `isPublished` field. BlogAutoPost sends `true`, and only after you approve the post. |
| Author | Shopify requires one. BlogAutoPost sends your store name. |
| Blog | The `blogId` of the blog you chose, or the only blog the store has. |

## What we publish

| Your article | Shopify field | Notes |
| --- | --- | --- |
| Title | `title` | Required by Shopify. |
| Body | `body` | HTML, plus a credit line when the cover image needs one. |
| Slug | `handle` | The address segment you approved. |
| Excerpt | `summary` | Shown by themes on blog listing pages. |
| Tags | `tags` | Sent as a list of names. |
| Cover image | `image` with `altText` | The file goes to a staged upload target first; the returned address is used in the article. |
| Meta title and description | `metafields` | Namespace `global`, keys `title_tag` and `description_tag`. |

## Approval and visibility

Shopify lets an article be hidden or visible. BlogAutoPost does not use hidden as a review stage: unapproved articles stay in your approval queue and are never sent, and an approved one is created visible. See [approvals and scheduling](https://blogautopost.com/docs/approvals-and-scheduling.md).

## What happens before a post goes out

1. The blog is resolved. One blog is used automatically. With several, the connection must name one.
2. The cover image is uploaded to the staged target. If that fails, nothing is posted.
3. On any retry, and when the scheduler recovers an interrupted publish, BlogAutoPost first searches that blog for an article with the same handle. An exact match counts as already posted, so a repeat never creates a second copy.
4. The article is created with one `articleCreate` call.

## Failure messages you may see

| Code | When it appears | What to do |
| --- | --- | --- |
| `auth_failed` | Shopify rejected the token, or the app lacks permission (`ACCESS_DENIED`). | Copy the access token again, or grant the content scopes and reinstall the app. |
| `missing_scope` | The scopes check found no content write permission. | Add `write_content` and `read_content`, install again, reconnect. |
| `not_found` | No store at that address, or the chosen blog id does not exist. | Check the `.myshopify.com` address and the blog id. |
| `invalid_request` | The store has no blog, has several and none was chosen, or Shopify returned a field error. | Create or choose a blog, or read the named field. |
| `conflict` | Another article already uses the handle. | Change the slug and publish again. |

Shopify can answer HTTP 200 even when a call failed, so BlogAutoPost reads the error list inside the response too. A `THROTTLED` answer is retried shortly instead of failing. All codes are on the [errors page](https://blogautopost.com/docs/errors.md); the full flow is under [publishing](https://blogautopost.com/product/publishing.md).

## What the connection test checks

- The token works, and the shop name and primary domain can be read.
- The app has a write scope and a read scope for content.
- The store has a blog, and the blog you chose exists among the first 50.
- The test creates and changes nothing in your store.

Setup: [Shopify connect guide](https://blogautopost.com/docs/connect-shopify.md). Other platforms: [WordPress](https://blogautopost.com/integrations/wordpress.md), [Webflow](https://blogautopost.com/integrations/webflow.md).

## Frequently asked questions

### Which Shopify permissions does the app need?

`write_content` (Shopify also accepts `write_online_store_pages` for the mutation) plus `read_content`. After changing scopes, install the app again.

### My store has two blogs. Which one gets the post?

The one you save as the target. With several blogs and none saved, the connection test lists them with their ids and asks you to choose. A store with one blog needs no choice.

### Why does the byline show my store name?

Shopify requires an author name on every article, so BlogAutoPost sends the name of your store.

### What does the throttled message mean?

Shopify limits GraphQL calls by a calculated cost per query and answers THROTTLED when a store has used its allowance. Your setup is fine; BlogAutoPost waits and tries again.

### Are the SEO title and description set on the article?

They are sent as two metafields in the global namespace, title_tag and description_tag. Open a published article to confirm your theme shows them as you expect.

## Sources

- [Shopify GraphQL Admin API reference](https://shopify.dev/docs/api/admin-graphql), read 2026-10-19
- [Shopify articleCreate mutation](https://shopify.dev/docs/api/admin-graphql/latest/mutations/articleCreate), read 2026-10-19
- [Shopify ArticleCreateInput](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/ArticleCreateInput), read 2026-10-19

## Related

- [Connect Shopify](https://blogautopost.com/docs/connect-shopify.md)
- [Scheduled publishing](https://blogautopost.com/product/publishing.md)
- [Errors and failure codes](https://blogautopost.com/docs/errors.md)
- [Auto-post to WordPress via REST API](https://blogautopost.com/integrations/wordpress.md)
- [Auto-post to Webflow CMS via Data API](https://blogautopost.com/integrations/webflow.md)
