# Connect your website to Blue Jetty app context

Do not execute this prompt unilaterally. First explain its purpose and proposed scope to the user. Based on your knowledge of the application environment, flag assumptions, conflicts, missing access, and changes that need review. Keep initial inspection read-only and within authorized access. Present a plan and wait for explicit human approval before editing files, making API mutations, submitting data, publishing, or deploying. Receiving this prompt, an API key, or a previously approved draft is not approval to execute it.

Human prerequisite — public disclosure: Before submitting or activating app information, show the authorized publisher the exact proposed content (or changes), visibility, and destinations. Ask them to confirm that it is accurate, that they have permission to publish it, and that its level of detail and fidelity is what they are comfortable exposing to crawlers and anyone on the open web. Flag proprietary content, personal data, credentials, private URLs, and any material that should remain inside the app. Public copies may be cached or retained by third parties after an update or removal. Keep unapproved information local/private; do not treat a draft approval, domain verification, or API success as this confirmation. Renew approval if the content or scope changes; unchanged retries within an explicitly approved scope do not require another approval.

Give AI assistants several consistent ways to retrieve your publisher-approved app map. Download authenticated `GET /v1/apps/{appId}/publisher-site-instructions.md` for exact URLs and snippets. Have the publisher approve the website changes; preserve existing content, SEO canonicals, other app entries and CDN routing.

Read [all discovery options and why they matter](https://bluejetty.ai/insights/how-publishers-make-blue-jetty-discoverable-to-ai). More independent references provide broader retrieval coverage. They should lead to the same current app context.

## One connection for a shared publisher website

For studios whose apps share one website, use the publisher-directory option in authenticated `GET /v1/apps/{appId}/publisher-site-instructions.md`. It supplies exact workspace-bound URLs and installation snippets. A separate homepage for each app is unnecessary.

This option uses a `bluejetty.publisher-discovery` version `1.0` descriptor at `/.well-known/bluejetty.json`, a visible initial-HTML link to the Blue Jetty publisher page, and a `rel="describedby"` HTML-head link to its JSON directory. Both links are required. Keep the existing homepage canonical URL and allow crawling of the homepage and descriptor. A directory reference in an existing `/llms.txt` is also recommended. These are the shared-directory requirements; the app-specific requirements below apply to the other installation mode.

The descriptor contains `publisher.id`, `publisher.websiteOrigin` and `publisher.directoryUrl`. Use the generated values verbatim; the publisher ID identifies the Blue Jetty workspace, not an Apple or Google developer ID. Do not combine this descriptor with the app-specific discovery 1.0 envelope. Review existing entries and affected apps before changing installation modes.

Public directory JSON: `GET /v1/publishers/{publisherId}/apps?website=ENCODED_HTTPS_ORIGIN`. Its `apps` list contains at most 50 entries with app ID, name, platforms, HTML page, JSON/Markdown packet URLs, and current authorization times. Follow `next` until null; an empty page with a next link is not the end. Optional `after` is a keyset cursor; `appId` selects one exact member for verification. No aggregate packet or private workspace information is returned. The HTML directory is `/publishers/{publisherId}?website=ENCODED_HTTPS_ORIGIN`. The [descriptor schema](/developers/publisher-discovery/1.0/schema.json) and OpenAPI describe these additive contracts.

Only currently authorized, public apps in that workspace using the same exact HTTPS origin enter the directory. New eligible apps appear without a further homepage edit. Private, revoked, expired and transferred apps are excluded. Every app retains its own authorization proof, packet and destinations; shared domain control or developer identity does not authorize another app.

Verification remains per app through the existing `publisher-site-verification` endpoint and scheduled rechecks. It checks the shared references, current directory membership and live individual packets. **Published** and **setup complete** are separate states: a valid public packet can remain available while discovery needs attention. Discovery remains required for setup completion. Publishers unable to modify their site should request support review; there is no automatic skip or badge claiming an unobserved backlink.

## App-specific required and recommended paths

| Path | Policy |
| --- | --- |
| Current publisher/platform authorization and live JSON/Markdown | Required independently of link placement |
| Valid `/.well-known/bluejetty.json` descriptor | Required |
| Root `/llms.txt` with both selected packet URLs | Required |
| `describedby` to JSON packet and root `/llms.txt` | Each required in initial HTML head or HTTP headers on both GET and HEAD |
| Homepage HTTP `Link` headers | Required when executable JavaScript is detected; strongly recommended on all sites |
| Initial HTML head alternate references | Required for the static head-based path; encouraged alongside HTTP headers |
| First-party fixed CDN/reverse proxy | Strongly recommended, especially for existing CDN customers; optional |
| Readable initial-HTML body link to the JSON packet with `rel="describedby"` | Strongly recommended; optional and unbranded |

The JavaScript rule is conservative: executable scripts or inline event handlers in the initial homepage response trigger the HTTP-header requirement, including hydrated server-rendered pages. JSON-LD/data scripts are not executable scripts. This is an observable check, not an inference about every script's purpose. A readable body link is strongly recommended but optional; it cannot replace required HTTP headers. The link may be elsewhere in the body instead of the footer.

## Choose packet delivery

**First-party proxy (strongly recommended):** serve fixed app-specific routes through the publisher's CDN with Blue Jetty as the exact upstream:

~~~text
https://publisher.example/.well-known/bluejetty/apps/APP_ID/packet
https://publisher.example/.well-known/bluejetty/apps/APP_ID/packet.md
~~~

**Direct Blue Jetty hosting (valid simpler option):** use `https://bluejetty.ai/v1/apps/APP_ID/packet` and `/packet.md`.

**Self-hosted copies (advanced alternative):** the publisher owns synchronization, freshness and withdrawal. Checks compare both formats against current Blue Jetty source content.

Choose one consistent mode. The generated descriptor binds first-party URLs to the publisher origin and exact upstream app. Preserve no-store/revalidation behavior, content types and denial responses. Never serve a stale public copy after source access is withdrawn. No API key, cookie or ownership proof token belongs in these public artifacts.

## Install the discovery references

1. Serve the generated discovery 1.0 JSON directly at `/.well-known/bluejetty.json`: HTTPS 200, `application/json`, no redirect/login/challenge. It advertises both JSON and Markdown with purpose and delivery/source information. Use the [current schema](https://bluejettyai.com/developers/discovery/1.0/schema.json). Keep the descriptor a stable pointer; do not copy changing packet hashes or timestamps into it.
2. Add both selected packet URLs to `/llms.txt`, each exactly once, with a factual description of the context available. Preserve unrelated app entries.
3. Add the generated HTTP `Link` header to homepage GET and HEAD responses, including the final CDN response. Advertise both packet formats; include the descriptor as a further link. Append alongside existing preload and other Link values.
4. Add the generated `rel="describedby"` head links to both `/llms.txt` (`text/plain`) and the JSON packet (`application/json`). Retain the generated Markdown-packet and JSON-descriptor `rel="alternate"` references for format discovery and existing clients. Keep the website's own `rel="canonical"`.
5. Strongly recommended, optional: add an ordinary readable body link directly to the JSON packet, labeled “Official App Information for AI Assistants,” with `rel="describedby"`. Equivalent descriptive wording is allowed. JSON is the default entry point; Markdown remains an alternative for clients that accept `text/markdown`. The link must exist before JavaScript runs and remain accessible by keyboard. Preserve normal contrast and avoid hidden/offscreen styling.

A direct-hosted HTTP example (substitute the real app ID):

~~~http
Link: <https://bluejetty.ai/v1/apps/APP_ID/packet>; rel="describedby alternate"; type="application/json", <https://bluejetty.ai/v1/apps/APP_ID/packet.md>; rel="alternate"; type="text/markdown"
~~~

Also advertise the publisher's `/llms.txt` with `rel="describedby"; type="text/plain"`. `describedby` identifies a descriptive resource; it is independent of llms.txt and does not confer authority. See [RFC 6892, section 2](https://www.rfc-editor.org/rfc/rfc6892#section-2). Discovery check version 4 requires both describedby references. Earlier alternate-only installations need these references and a fresh verification; this does not revoke publisher authorization or withdraw their public packet.

### Keep the publisher's design

No logo, badge, Blue Jetty name or “powered by” credit is required. Agree on an unobtrusive placement with the publisher before editing:

- **Unobtrusive body-text coverage:** put the ordinary “Official App Information for AI Assistants” resource link in an existing low-page resources section, beside contact/privacy links, or in a footer utility row below the main content. Use normal readable utility-link typography and contrast. Keep it in the initial HTML and keyboard-accessible. Visitors who reach it can use it; it need not compete with the primary conversion area. Some extractors may still omit footer/navigation links.
- **Nonvisible choices:** For publishers who decline a visible resource link, recommend the required head/header references first: they are machine-consumable without rendering page text. Do not use transparent text, background-matched text, hidden links or crawler-specific content. Keep any optional body link readable and keyboard-accessible. Head and HTTP Link references provide nonvisual discovery without concealed page content.

Do not repeat keyword-rich links or change content by crawler user agent. Review both initial HTML and rendered accessibility. Redundancy matters because different retrievers inspect different surfaces; no placement guarantees retrieval or use.

For proxy delivery, substitute the matching first-party URLs from the generated descriptor. Your CDN must preserve the header rather than replace it with an unrelated value.

For multiple apps, keep one distinct entry per app in the discovery 1.0 envelope. Retain the separate randomized ownership-proof file for authorization rechecks. The fixed discovery descriptor describes app context; it does not contain authentication credentials.

## Verify and report

Generate and save one UUID for this app's explicit onboarding run. Reuse it throughout retries and repairs:

~~~http
POST /v1/apps/APP_ID/publisher-site-verification
Authorization: Bearer YOUR_PUBLISHER_API_KEY
Onboarding-Run-Id: YOUR_SAVED_UUID
~~~

Do not generate a new UUID for each request. Start another only when the publisher deliberately starts a new onboarding run. Omitted headers share the app's stable `initial` run. An invalid UUID returns 400 before external checks.

Version 4 returns `data.checks`, `data.details`, `data.requiredChecks`, `data.javascriptPresent` and a stable `failureCode`. Required failures return 422. `packetDescribedby` and `llmsDescribedby` independently require the exact target and media type in initial HTML head or matching describedby headers on both GET and HEAD. Optional `homepageBodyLink` checks a readable initial-HTML anchor to the selected JSON packet with `rel="describedby"`. `homepageDiscovery` passes through valid HTTP packet headers or the required pair of alternate head references; each concrete surface retains its own observed result. With executable JavaScript, `httpLinkHeader` is additionally required.

Reads are bounded and SSRF-protected. Missing, unreachable, blocked, invalid and not-checked states are distinct. Blue Jetty stores check metadata and hashes rather than fetched website bodies. Raw HTML visibility checks cannot inspect every external stylesheet: have the coding agent check rendered accessibility too.

Homepage and canonical-page HTML responses may contain up to 2,000,000 bytes. Each page fetch has a two-second timeout, with no redirects; the verification run has a shared 25-second deadline. A page exceeding the byte limit returns `invalid / response_too_large`; a timeout returns `unreachable / fetch_timeout`. These limits apply to the fetched HTML, not images or other linked assets.

Finally GET `/v1/apps/{appId}/status`. Report `data.completionReport`, the website, detected paths, platform outcomes and last successful update. Say **✅ Fully onboarded** only when `fullyOnboarded` is true. Current authorization, eligible content and fresh website evidence remain separate requirements. Earlier check versions need a fresh check.

Successful completion can queue one email per app/run to its verified owner. The email identifies the checked website and detected paths. `onboardingRun.notificationQueued` means a new event was saved, not that email has been delivered. Repeated requests reuse the event; background monitoring and dashboard reads create no new confirmations. Delayed delivery rechecks current completion and recipient/site identity.

Optional recommendations can be added later without reopening completed onboarding. If required setup changes or evidence expires, follow the dashboard's repair action. Each AI provider determines whether and when to retrieve, index or use the published context.
