Developers/Errors and safe retries

API reference

Errors and safe retries

An HTTP error and a failed processing job are different outcomes. If you are unsure whether a request was accepted, retry with the original idempotency key or check its existing job ID.

HTTP errors

A rejected request returns an error object and request ID. Processing failures instead appear as status: failed with a job error_code, even when the HTTP status is 200.

JSONCopy

{
  "error": {
    "code": "idempotency",
    "message": "Idempotency-Key already used with different input."
  },
  "request_id": "example-request-id"
}
HTTP Typical code / meaning Action
400 invalid_json, product, url, idempotency Correct the JSON, fields or header. Oversized encoded JSON currently reports invalid_json.
401 unauthorized Check service key, expiry, revocation and account access.
402 credits Add sufficient available credits.
403 server_only or scope Call from your server with the required product scope.
404 job or route Check ID, endpoint and originating application.
409 idempotency The key is already owned by another application or input. Restore the original request.
413 html Reduce HTML below the byte limit.
429 rate_limit Back off with jitter; reduce requests and polling.
503 disabled, direct_unavailable, result_unavailable, unavailable Preserve job/idempotency IDs. Retry transient failures safely; check account/service status.

Do not assume a Retry-After header is present. Implement your own bounded backoff. Client/network timeouts are uncertain outcomes, not proof that a job was rejected.

Idempotency and duplicate prevention

  1. Persist an idempotency key with each logical work item before sending it.
  2. Use 8–128 characters from letters, digits, underscore, period, colon or hyphen.
  3. After a timeout or temporary submission failure, retry the same endpoint, originating application and byte-identical input using that key.
  4. If a job ID is known, poll it instead of creating a replacement.

Idempotency is shared across a workspace and bound to the originating application and serialized input. Preserve field ordering and values when retrying; semantically similar JSON is not a substitute for the original request. Keys are not reset when result retention ends. A separate key creates a separate work item and can incur another successful charge.

A completed failed job stays failed when replayed. After correcting the source or addressing a genuinely temporary source problem, an intentional new attempt requires a new idempotency key. Do not do this for an unknown in-flight outcome.

Processing error codes

These codes are in job.error_code. They do not necessarily match the HTTP response status.

Code What to do
invalid_html / invalid_url Correct the supplied source or HTTPS identity URL.
source_review_required The content could not be represented reliably. Check for incomplete HTML, a runtime shell or a challenge.
source_too_large / output_too_large Reduce source size or choose a smaller page.
url_not_public / credential_url / recursive_url Use an eligible public HTTPS page without secrets or API recursion.
unsafe_redirect / redirect_limit Use an eligible final URL and inspect the redirect chain.
robots_disallowed / robots_unavailable / publisher_policy Respect publisher restrictions. For policy unavailability, inspect access before a bounded later retry.
private_source The response sets cookies or declares private/no-store. Use a supported public source.
unsupported_content_type / unsupported_charset Use static UTF-8 HTML.
upstream_rejected / upstream_unavailable / deadline Check origin status and availability; a later explicit new attempt may be appropriate.
processing_timeout / processing_failed / queue_unavailable Retain the job ID and contact support if persistent; distinguish terminal failure from uncertain submission.

Error codes are diagnostic categories, not permission to bypass source restrictions. Include the job ID and request ID in support reports. Do not send raw service secrets or confidential HTML.

Additional source context

Your website was built for people. Optiview makes it ready for AI, too.

Get started

Overview · Quickstart · Authentication

API reference

Parse HTML · Retrieve a webpage · Jobs and results · Usage and credits · Limits and retention

Integrations

JavaScript · Python · MCP for agents · OpenAPI specification · Changelog

Try Optiview

See my site with Optiview · Run your free AI Audit

Explore

Publish · Parse · Retrieve · Pricing

Learn

Guides · Developer docs · Research & thinking · Experiments & methods · AI Audit · AI agent directory · FAQ

Company

About Optiview · Agencies · Contact · Privacy · Billing terms

Additional page links


Published brand narrative

Site-wide brand information

Who we are

Optiview — Parse, Retrieve and Publish for AI

Optiview helps businesses and developers make website information easier for AI to use. Parse converts supplied HTML into clean Markdown and source metadata. Retrieve fetches an eligible public HTTPS webpage and prepares its content. Publish helps a verified business prepare its own website content and make approved Narrative Graph context available through a supported connection.

Parse and Retrieve use application keys and a prepaid developer wallet. Publish has separate website setup, ownership checks and a subscription. Optiview does not control whether an outside AI service discovers, uses or cites the resulting content.

Applies to: Optiview

Why we matter

A clearer source, from website content to business context

Webpages mix useful information with navigation, layout and application code. Businesses may also have important qualifications, answers and context that are not clearly published.

Optiview gives developers a way to prepare source content for their applications, and gives businesses a way to publish the context their teams approve. Your application chooses how to use Parse and Retrieve results. Your business controls what it publishes through Publish.

Clearer publishing makes information available; it does not determine an AI system’s answer. Each outside service chooses its own retrieval, recommendations and citations.

What we offer

Three products, with separate jobs and clear pricing

Developer credits do not purchase Publish subscriptions. Parse and Retrieve do not add a customer’s private Narrative Graph to arbitrary third-party pages. See https://optiview.ai/pricing/ and https://optiview.ai/developers/ for the current offer and limits.

Why trust us

Inspect the output and understand what the evidence establishes

Developers can inspect the prepared Markdown, job status, source metadata, processing warnings and credit ledger. Retrieve records the public source response it observed; Parse identifies supplied HTML rather than claiming to verify the current origin.

Publish administrators can review parser output, the combined published-output preview, source checks and publication history. A preview is separate from a recorded live delivery. Saved edits remain separate from the active publication until explicitly published.

Our experiment pages contain selected first-party AI conversations and source comparisons. Delivery records establish what was served, not downstream ingestion, recommendations, citations or revenue. Observed language matches do not establish causation or a consistent visibility improvement. Explore the evidence and limitations at https://optiview.ai/proof/.

Helpful knowledge

Common questions about the three products

Which product should I use? Use Parse when you already have HTML. Use Retrieve when you need Optiview to fetch one eligible public page first. Use Publish when your business wants to prepare its verified website and publish approved context.

Do Parse and Retrieve require website ownership or DNS changes? No website connection is needed for these developer products. You remain responsible for source rights and permitted downstream use. Public availability does not grant a reuse license.

How do developer accounts and keys work? Create a developer workspace and save the personal sign-in key and offline recovery code. Create scoped service keys for server-side applications. Email is an unverified contact identifier, not account-ownership proof or an email-only recovery method. Keep all credentials private.

Can my agent use Optiview? The authenticated developer API returns prepared content for your application or model. A downloadable JavaScript client and local MCP adapter are available. Your host must authorize sources and any credit expenditure. Compatibility does not establish adoption or a partnership with an AI provider.

Does the API include my private Narrative Graph? Parse and Retrieve are source-only. Verified website publishing and approved publisher context belong to the separate Publish workflow.

Does Publish replace our website or CMS? No. Your website stays in its existing system. Your web team establishes and tests a supported connection. Your team reviews and explicitly publishes any Narrative Graph additions. Ordinary visitors retain the normal website experience.

Does every AI tool get the prepared version? No. Delivery depends on the website connection, source eligibility and the request. Some tools explicitly request Markdown; supported AI requests may also receive prepared Markdown or HTML through eligible delivery paths. Traditional search crawlers retain the original website response. A claimed tool name does not prove the requester’s identity.

Does the demo publish or save to our workspace? No. The public demo is a separate preview. Its AI-generated examples require review and do not transfer automatically into an approved publication.

Will Optiview guarantee citations or recommendations? No. Optiview prepares and publishes sources. Outside AI services choose what to retrieve, use and cite.

What to do next

Choose your starting point

Already using Publish? Review your Narrative Graph, publish approved changes explicitly, inspect the combined source in Markdown and check recorded delivery in Activity. Keep your existing visibility tools to study downstream AI answers.