Agent Integration
Use this page when an LLM, agent, workflow runner, or other automated client needs to understand how to work with Global Mosaic without crawling private product surfaces or spending quota by accident.
Discovery order
Agents should use these sources in order:
GET /llms.txtfor the public map of agent-readable resources.GET /docs/agentsfor safety and workflow rules.GET /api/explainfor the sanitized machine-readable API contract.- Gated customer docs only when the user is signed in with an eligible account.
Do not crawl the full website to infer hidden capabilities. Public discovery is the supported contract for unauthenticated agents.
Public machine contract
/api/explainnoneReturns the public, sanitized machine-readable API contract for building requests. It omits customer-only catalog detail, lineage, source storage, worker internals, dormant layers, and private operational notes.
Use the public contract to learn the current endpoint list, required top-level fields, location options, response shape, and safe examples. Treat the contract as the source of truth over copied examples.
Authenticated material
Account-specific API detail is intentionally not part of public agent discovery. Agents may use gated customer docs or authenticated catalog responses only when:
- The user explicitly asks for customer/account-specific integration help.
- The user is already signed in or supplies an API key through a secure secret mechanism.
- The request requires customer-specific categories, parameter options, or lineage.
Never place API keys in URLs, browser-visible links, screenshots, logs, support messages, or generated code samples.
Calling the API
Global Mosaic API requests are asynchronous:
- Build one request using the current public or authenticated contract.
- Ask for confirmation before sending a metered request unless the user has already authorized the workflow.
- Send
POST /api/invokewith the API key in thex-api-keyheader. - Store the returned
job_id. - Wait for
poll_after_seconds. - Poll
GET /api/jobs/{job_id}with the same API key. - Stop when the job status is
completeorfailed.
Do not send a second invoke request just because a job is still queued or running.
Retry rules
| Situation | Agent behavior |
|---|---|
A job_id was returned | Store it and poll the existing job. |
| Network failed before a response | Retry once only after checking the workflow's own request fingerprint. |
| Validation failed | Repair the request before retrying. |
| Auth, account, or entitlement failed | Ask the user to fix access; do not retry automatically. |
| Quota failed | Stop and ask the user before any further metered action. |
| Job completed with layer errors | Inspect partial results and explain which parts failed. |
Output rules
- Say that returned values are modeled, derived, or aggregated estimates unless a customer contract says otherwise.
- Include
job_id, timestamp, selected categories, geography label, and error codes when preparing support handoff text. - Do not claim every requested category succeeded until
result.errorshas been checked. - Do not infer account entitlements from public docs.
- Do not publish customer-only catalog details into public artifacts.