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

CodeHTTP statusRetry helps?MeaningWhat to do
unauthorized401NoThe API key is missing, malformed, revoked or unknown.Send a valid key as a bearer token, or ask the operator for a new one.
forbidden403NoThe key is not allowed to make this request.Use a key from the account that owns the site.
insufficient_credits402NoThe 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_required402NoThe 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_expired402NoThe 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_exhausted402NoThe 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_limit402NoThe 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_limited429YesToo 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_input400NoThe request body, query or an identifier failed validation. The message names the field.Fix the named field and send it again.
not_found404NoThe 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.
conflict409NoThe 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_allowed405NoThe path exists but not for this HTTP method.Use a method in the Allow header.
payload_too_large413NoThe request body is over the size limit.Send a smaller body.
signature_invalid400NoThe Stripe signature on a webhook request did not match.Only Stripe calls the webhook; resend the event from the Stripe dashboard.
vendor_rejected502NoAn 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_unavailable503YesAn 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_error500YesAn 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

KindAPI answerMeaning
unavailable503 provider_unavailableNothing was attempted, or the service could not be reached or was overloaded. A retryable flag says whether trying again can help
rejected502 vendor_rejectedThe 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 unavailable and retryable. Wait, then try again.
  • A service your plan does not include is unavailable but not retryable: write to hello@blogautopost.com to add it.
  • A rejected failure 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 answerResult
401 or 403rejected, auth_failed
404rejected, not_found
409rejected, conflict
Other 4xxrejected, invalid_request
408, 425, 429, 5xxunavailable, retryable
An answer that is too large or not what was expectedrejected, 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.

CodeMeaningRetry helps?What to do
auth_failedThe service refused the credentials, token or permission.NoCreate a new token or reconnect, then try again.
not_foundThe site, store, collection, blog, property or photo does not exist.NoCheck the address or identifier you entered.
invalid_requestThe service or our checks refused the request, for example a bad address, date or field.NoRead the message, fix the named input, try again.
conflictThe slug or item already exists.NoChange the slug, or check whether the post is already there.
unexpected_responseThe service answered in a shape we do not recognise, or with too large an answer.RarelyTry again later. If it repeats, contact support.
blocked_targetThe site address points somewhere the guarded fetch refuses: a private address, a redirect or a non-https site.NoUse the public https address of your site.
access_not_approvedThis server's Google Ads API access does not cover that account.NoNothing to fix on your side; write to hello@blogautopost.com.
invalid_outputThe model answered, but the result failed our checks: malformed article, or an image that is too large or not PNG, JPEG or WebP.NoTry again. The article is not created and nothing is spent.
invalid_model_outputThe writing model answered, but its output failed the platform's check for the task.NoTry again. The article is not created and nothing is spent.
wrong_connection_kindA connection of one platform was given to the publisher of another.NoReconnect with the right platform.
invalid_site_urlThe WordPress or webhook address is not a valid web address.NoUse the form https://example.com.
insecure_site_urlThe WordPress address starts with http, so your password would travel unencrypted.NoUse the https version of the address.
site_redirectThe WordPress address redirects. Redirects are never followed with your password attached.NoUse the final address the redirect points to.
rest_api_unavailableThe WordPress REST API did not answer.NoCheck the address and that a plugin or host is not blocking the REST API.
application_passwords_disabledWordPress application passwords are turned off for the site or user.NoTurn them on, then create a new application password.
forbiddenThe WordPress user may not perform the action.NoUse an account with the Author role or higher.
missing_capabilityThe WordPress user cannot publish posts or upload images.NoUse an Author or higher account.
media_upload_failedThe cover image could not be uploaded to WordPress, so nothing was posted.NoCheck the account may upload files, then retry.
missing_scopeA Shopify custom app or Webflow token lacks a permission.NoAdd the named scope, then reconnect or paste the new token.
field_map_mismatchThe Webflow field map names a field the collection does not have.NoPoint each role at a field that exists.
unmapped_required_fieldThe Webflow collection requires a field BlogAutoPost does not fill.NoMake that field optional in Webflow, then connect again.
image_upload_failedWebflow gave an upload slot for the cover image but the upload failed.NoRetry the publish.
webhook_rejectedYour webhook receiver answered with a 4xx. The message gives the status and the first words of its reply.NoFix what the reply names, then publish again.
webhook_redirectYour webhook address answered with a redirect, which is never followed.NoSave the final address.
insufficient_scopeThe Google connection is read-only, but submitting a sitemap needs write access.NoReconnect Google and approve the wider permission.
key_file_missingThe IndexNow key file is not served at its address.NoServe the file with no redirect.
key_file_mismatchThe key file is on the wrong host or has the wrong contents.NoMake it contain only the key, on your host.
key_invalidIndexNow did not accept the key.NoCheck the file is served and holds exactly the key.
url_host_mismatchSubmitted URLs do not belong to the host, or the key is malformed.NoSubmit only URLs on your host.

What you see at each stage

StageIf it failsWhat you see
1 Keyword researchGoogle 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 IdeaModel key missing, overloaded, refusal, or malformed output.The same two outcomes. Ideas already queued are untouched.
3 WriteModel 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 metadataImage 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 ApprovalYou do not answer.The post waits in the queue. It never publishes by itself.
6 PublishCredentials 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 IndexSitemap 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 syncGoogle 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.