Skip to main content
The guided setup creates a persistent API key, configures the hosted MCP connection and installs the agent skill. A successful free HTTP Fetch completes the data-access proof. Hosted MCP still requires the client’s separate OAuth authorization; an HTTP proof does not assert that an OAuth grant exists.

Accept current terms before starting

GET /v1/onboarding/terms is public. It returns version, sha256, url, privacy_url, and notice from the configured Earth terms policy. A verified human must explicitly agree to that exact document. The setup page uses the same customer terms gate as the dashboard: GET /v1/users/me/terms, then POST /v1/users/me/terms with version, document_sha256, document_url, and accepted: true. A checkbox and explicit setup action record acceptance; passive session restoration does not. An existing current receipt is reused. See Authentication. POST /v1/users/me/onboarding requires verified Firebase authentication and:
Start requires the canonical receipt for the current document. It never creates a separate onboarding acceptance. A mismatch returns onboarding_terms_changed; missing acceptance returns terms_required. Success returns HTTP 201 with attempt_id, api_key, token_id, and expires_at. The issued key is a scoped opaque mry_ key, bound to that receipt. expires_at is null: the key remains usable until revoked, subject to account status and licensed-data access checks. Send it as X-API-Key and store it in a private credential store. Keep it out of URLs, logs, analytics and persistent browser storage. Setup responses use Cache-Control: no-store. There is no temporary setup code or exchange endpoint. Repeating an explicit setup action reuses the current eligible setup key and attempt, including after a lost response or page reload. Only the authenticated account owner with current terms acceptance can recover it through this setup flow. Ordinary dashboard keys remain random and show-once; setup does not adopt a key merely because it has the same name. The server stores token hashes and recovery metadata, not plaintext keys. Revoked, expired or no-longer-recoverable setup keys, and unfinished attempts that have ended, receive a replacement; old records are preserved and never reactivated. A changed terms document requires current acceptance and a new receipt-bound setup key. Other existing keys retain their original permissions. Key rotation can require a fresh setup. The setup key claims the dashboard’s default-key slot only if it is empty or already refers to the previous setup key. Existing user-created/default keys are preserved. Opening the dashboard after setup does not issue a second key. Setup does not reset balances, renew allowances or create another welcome grant. Paid API calls use the same dollar wallet, current terms, scoped access, spending ceiling and idempotency rules as other API keys.

Validate the credential before installing

GET /v1/onboarding/{attempt_id}/credential requires the API key bound to that exact attempt. It returns uid, token_id, and attempt_id, with no credential or milestones. The installer uses this read-only check to validate supplied metadata before saving a key or modifying client configuration. A different account gets 404; another key on the same account gets onboarding_token_mismatch. Firebase browser credentials cannot call this endpoint. A key can revoke itself through DELETE /v1/users/me/tokens/{token_id}. Revoking another key requires the owning Firebase session. Keys can also be reviewed and revoked in the dashboard.

Report progress and prove a free Fetch

POST /v1/onboarding/{attempt_id}/progress requires the bound API key. Its body contains stage (installed or verified), clients (client names), and skill_installed (boolean). Repeated reports preserve milestones. Reports are advisory and cannot assert server-observed first-call success or OAuth completion. Send the same key with X-Mireye-Onboarding-Attempt: <attempt_id> on POST /v1/fetch. A small free request is:
The API records first_call_at only when the credential belongs to that attempt and at least one returned field has status: "ok" with a meaningful value. Zero and false are meaningful values. Failed, absent and null fields, catalog reads and authentication checks do not provide this proof. first_call records field names and available source URLs, not the customer’s field values. A tracking outage cannot turn a successful Fetch into an error. GET /v1/users/me/onboarding/{attempt_id} requires the owning Firebase identity. An integration can retain the attempt ID under that account to resume polling. The response contains status (waiting, connected, or complete), installed_at, verified_at, first_call_at, clients, skill_installed, first_call, mcp_authorized_at, mcp_clients, and expires_at. It returns no credential or token ID. An unfinished attempt that has ended returns 410 onboarding_attempt_ended; start setup again to get a new key and attempt. complete means the server observed the useful HTTP Fetch. Installation and verification remain separate diagnostic milestones. mcp_authorized_at is set the first time an MCP client finishes the hosted OAuth sign-in for the account after this setup started, and mcp_clients lists the names those clients registered with. Both stay empty until a client signs in. Signing in does not change status, and a Fetch does not sign a client in. Verify hosted tools through the actual connected MCP client after OAuth. See setup errors.

What Mireye keeps

Mireye keeps each setup attempt, a marker for the account’s setup key, the API key record and your accepted customer terms receipt, under the account retention policy. The mireye-mcp 0.7.3 package is an installer and diagnostic helper for the hosted service. It does not run a local MCP server. See installation.