Errors and failure codes
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
A step that cannot finish says so, in plain words, with a stable code. No step ever returns made-up data or success it did not get.
The error format
Every API failure is JSON in one shape: { "error": { "code", "message", "fix", "docs_url", "retryable", "request_id" } }. Branch on code, never on the message. The server publishes the same list at /docs/errors.md.
Every API error code
| Code | HTTP status | Retry helps? | Meaning | What to do |
|---|---|---|---|---|
unauthorized | 401 | No | The API key is missing, malformed, revoked or unknown. | Send a valid key as a bearer token, or ask the operator for a new one. |
forbidden | 403 | No | The key is not allowed to make this request. | Use a key from the account that owns the site. |
insufficient_credits | 402 | No | The site has no manual credit left this period for an article you asked for by hand. | Wait for the next period or move the site to a larger plan. Nothing was charged. |
subscription_required | 402 | No | The site has no plan yet. A site needs a 7-day trial or a paid plan before it writes, researches, publishes or connects Google. | Write to hello@blogautopost.com to start the trial or a paid plan for the site. |
trial_expired | 402 | No | The 7-day trial for this site ended without a payment, so the site has no plan. | Start a paid plan for the site. Its articles and settings are kept. |
trial_allowance_exhausted | 402 | No | The trial allowance is used up, so writing is paused. Nothing was charged and the trial is still running. | Start the plan now with POST /v1/sites/{siteId}/start-plan or by writing to hello@blogautopost.com, or wait for the next period. |
plan_limit | 402 | No | The plan does not allow this: the period allowance of scheduled articles is used, the daily ceiling is reached, the daily auto-publish cap is reached, or the feature is not on the plan (custom writing style and competitor gap are Growth only). | Wait for the allowance to renew, or move the site to a plan that includes it. |
rate_limited | 429 | Yes | Too many requests from this key, or too many sample-article requests from this address. | Wait for the number of seconds in the Retry-After header, then retry. |
invalid_input | 400 | No | The request body, query or an identifier failed validation. The message names the field. | Fix the named field and send it again. |
not_found | 404 | No | The site, article, keyword or idea does not exist or is not on your account, or a link has already been used. | Check the identifier. Records of other accounts are never revealed. |
conflict | 409 | No | The request clashes with the current state, for example a second site with the same address, an article that is not in the status the action needs, or a slug already in use. | Read the message, change the state or the input, and retry. |
method_not_allowed | 405 | No | The path exists but not for this HTTP method. | Use a method in the Allow header. |
payload_too_large | 413 | No | The request body is over the size limit. | Send a smaller body. |
signature_invalid | 400 | No | The Stripe signature on a webhook request did not match. | Only Stripe calls the webhook; resend the event from the Stripe dashboard. |
vendor_rejected | 502 | No | An outside service answered and refused: the website rejected the credentials, Google refused a sign-in code, or an article failed its quality checks. | Read the message, which says which service and why. Fix that and retry. |
provider_unavailable | 503 | Yes | An outside service did not answer or could not be used right now. | Retry with backoff when retryable is true. If it is false, write to hello@blogautopost.com. |
internal_error | 500 | Yes | An unexpected error on our side. | Retry once after a short wait. If it repeats, write to support with the request id. |
Two kinds of failure from an outside service
| Kind | API answer | Meaning |
|---|---|---|
unavailable | 503 provider_unavailable | Nothing was attempted, or the service could not be reached or was overloaded. A retryable flag says whether trying again can help |
rejected | 502 vendor_rejected | The service answered and refused, or our own checks refused its output. The message says which service and why. |
A feature whose outside service cannot be reached answers unavailable on each call until the service is back.
When a failure is retryable
- A timeout, a dropped connection, HTTP 408, 425, 429 or any 5xx from a service is
unavailableand retryable. Wait, then try again. - A service your plan does not include is
unavailablebut not retryable: write to hello@blogautopost.com to add it. - A
rejectedfailure is not retried by default. Fix the cause named in the message. - Messages never contain your secrets. Keys, tokens and passwords are replaced before a message is shown.
How common HTTP answers map to codes
| Service answer | Result |
|---|---|
| 401 or 403 | rejected, auth_failed |
| 404 | rejected, not_found |
| 409 | rejected, conflict |
| Other 4xx | rejected, invalid_request |
| 408, 425, 429, 5xx | unavailable, retryable |
| An answer that is too large or not what was expected | rejected, unexpected_response |
Reason codes behind a refusal
Behind a vendor_rejected answer is a more exact reason code. The HTTP answer carries the plain-language message; the reason code is stored on the article as failure.code (drafting) or publish_error.code (publishing). Some appear only for one platform, and the message always says which step failed.
| Code | Meaning | Retry helps? | What to do |
|---|---|---|---|
auth_failed | The service refused the credentials, token or permission. | No | Create a new token or reconnect, then try again. |
not_found | The site, store, collection, blog, property or photo does not exist. | No | Check the address or identifier you entered. |
invalid_request | The service or our checks refused the request, for example a bad address, date or field. | No | Read the message, fix the named input, try again. |
conflict | The slug or item already exists. | No | Change the slug, or check whether the post is already there. |
unexpected_response | The service answered in a shape we do not recognise, or with too large an answer. | Rarely | Try again later. If it repeats, contact support. |
blocked_target | The site address points somewhere the guarded fetch refuses: a private address, a redirect or a non-https site. | No | Use the public https address of your site. |
access_not_approved | This server's Google Ads API access does not cover that account. | No | Nothing to fix on your side; write to hello@blogautopost.com. |
invalid_output | The model answered, but the result failed our checks: malformed article, or an image that is too large or not PNG, JPEG or WebP. | No | Try again. The article is not created and nothing is spent. |
invalid_model_output | The writing model answered, but its output failed the platform's check for the task. | No | Try again. The article is not created and nothing is spent. |
wrong_connection_kind | A connection of one platform was given to the publisher of another. | No | Reconnect with the right platform. |
invalid_site_url | The WordPress or webhook address is not a valid web address. | No | Use the form https://example.com. |
insecure_site_url | The WordPress address starts with http, so your password would travel unencrypted. | No | Use the https version of the address. |
site_redirect | The WordPress address redirects. Redirects are never followed with your password attached. | No | Use the final address the redirect points to. |
rest_api_unavailable | The WordPress REST API did not answer. | No | Check the address and that a plugin or host is not blocking the REST API. |
application_passwords_disabled | WordPress application passwords are turned off for the site or user. | No | Turn them on, then create a new application password. |
forbidden | The WordPress user may not perform the action. | No | Use an account with the Author role or higher. |
missing_capability | The WordPress user cannot publish posts or upload images. | No | Use an Author or higher account. |
media_upload_failed | The cover image could not be uploaded to WordPress, so nothing was posted. | No | Check the account may upload files, then retry. |
missing_scope | A Shopify custom app or Webflow token lacks a permission. | No | Add the named scope, then reconnect or paste the new token. |
field_map_mismatch | The Webflow field map names a field the collection does not have. | No | Point each role at a field that exists. |
unmapped_required_field | The Webflow collection requires a field BlogAutoPost does not fill. | No | Make that field optional in Webflow, then connect again. |
image_upload_failed | Webflow gave an upload slot for the cover image but the upload failed. | No | Retry the publish. |
webhook_rejected | Your webhook receiver answered with a 4xx. The message gives the status and the first words of its reply. | No | Fix what the reply names, then publish again. |
webhook_redirect | Your webhook address answered with a redirect, which is never followed. | No | Save the final address. |
insufficient_scope | The Google connection is read-only, but submitting a sitemap needs write access. | No | Reconnect Google and approve the wider permission. |
key_file_missing | The IndexNow key file is not served at its address. | No | Serve the file with no redirect. |
key_file_mismatch | The key file is on the wrong host or has the wrong contents. | No | Make it contain only the key, on your host. |
key_invalid | IndexNow did not accept the key. | No | Check the file is served and holds exactly the key. |
url_host_mismatch | Submitted URLs do not belong to the host, or the key is malformed. | No | Submit only URLs on your host. |
What you see at each stage
| Stage | If it fails | What you see |
|---|---|---|
| 1 Keyword research | Google Ads not connected, Google Ads API access not set up on the server, Google busy, or the connection revoked. | A plain note that Keyword Planner is unavailable. Search Console topics and saved keywords still work, and no volumes are invented. |
| 2 Idea | Model key missing, overloaded, refusal, or malformed output. | The same two outcomes. Ideas already queued are untouched. |
| 3 Write | Model key missing, overloaded, refusal or an invalid article. | No article is created and no quota or credit is spent. The note says whether a retry makes sense. |
| 4 Image and metadata | Image service down or refusing, or missing alt text or metadata. | The post is held as needing an image, not published without one. You can supply your own. |
| 5 Approval | You do not answer. | The post waits in the queue. It never publishes by itself. |
| 6 Publish | Credentials rejected, collection missing, platform validation, slug in use, wrong connection, or an unreachable or blocked site. | The post stays in the queue with the platform reason in plain words, and a reconnect step where it applies. A retry first looks up the slug, so no second post appears. |
| 7 Index | Sitemap rejected, or the IndexNow key file is missing. | The post is live. The record shows that engines were not told, with the exact missing step. |
| 8 Rank sync | Google access revoked or expired. | A reconnect prompt. Rankings stop updating, and nothing else breaks. |
When you write to support, include the site address, the post, the error code and the request id. See Approvals and scheduling and Indexing for the related steps.