Skip to main content
The guided setup:
  • Creates a persistent API key.
  • Configures the hosted MCP connection.
  • Installs the agent skill.
What setup proves:
  • A successful free HTTP Fetch completes the data-access proof.
  • Hosted MCP still needs 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. These come 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:
  1. GET /v1/users/me/terms
  2. POST /v1/users/me/terms with version, document_sha256, document_url and accepted: true
  • A checkbox and an explicit setup action record acceptance.
  • Passive session restoration does not.
  • An existing current receipt is reused.
  • See Authentication.
Start setup: POST /v1/users/me/onboarding needs verified account sign-in and this body:
  • Start needs the canonical receipt for the current document.
  • It never creates a separate onboarding acceptance.
The issued key:
  • It is a scoped opaque mry_ key, bound to that receipt.
  • expires_at is null. The key stays usable until revoked.
  • Account status and licensed-data access checks still apply.
  • Send it as X-API-Key.
  • 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.
Repeating setup:
  • There is no temporary setup code or exchange endpoint.
  • Repeat an explicit setup action to get the current eligible setup key and attempt again.
  • This also works after a lost response or page reload.
  • Only the signed-in account owner with current terms acceptance can recover it through this setup flow.
  • Ordinary dashboard keys stay random and show-once.
  • Setup does not adopt a key only because it has the same name.
  • The server stores key hashes and recovery metadata, not plaintext keys.
Replacement keys:
  • These setup keys get a replacement: revoked, expired, or no longer recoverable.
  • Unfinished attempts that have ended also get a replacement.
  • Old records are kept and never reactivated.
  • A changed terms document needs current acceptance and a new receipt-bound setup key.
  • Other existing keys keep their original permissions.
  • Key rotation can require a fresh setup.
The dashboard’s default key:
  • The setup key takes the default-key slot only if the slot is empty.
  • It also takes the slot if the slot already holds the previous setup key.
  • Existing user-created and default keys are kept.
  • Opening the dashboard after setup does not issue a second key.
Balances:
  • Setup does not reset balances, renew allowances or create another welcome grant.
  • Paid API calls follow the same rules as other API keys: the same dollar wallet, current terms, scoped access, spending ceiling and idempotency rules.

Validate the credential before installing

GET /v1/onboarding/{attempt_id}/credential is a read-only check.
  • It needs the API key bound to that exact attempt.
  • It returns uid, token_id and attempt_id, with no credential or milestones.
  • The installer uses it to validate supplied metadata. It runs before saving a key or changing client configuration.
  • A different account gets 404.
  • Another key on the same account gets onboarding_token_mismatch.
  • Browser sign-in credentials cannot call this endpoint.
Revoking keys:
  • A key can revoke itself through DELETE /v1/users/me/tokens/{token_id}.
  • Revoking another key needs the owning browser sign-in session.
  • You can also review and revoke keys in the dashboard.

Report progress and prove a free Fetch

Report progress: POST /v1/onboarding/{attempt_id}/progress needs the bound API key. Its body:
  • Repeated reports keep the milestones.
  • Reports are advisory.
  • They cannot assert server-observed first-call success or OAuth completion.
Prove a free Fetch: Send POST /v1/fetch with the same key and the header X-Mireye-Onboarding-Attempt: <attempt_id>. A small free request:
The API records first_call_at only when both are true:
  • The credential belongs to that attempt.
  • At least one returned field has status: "ok" with a meaningful value.
About the proof:
  • Zero and false are meaningful values.
  • Failed, absent and null fields do not count.
  • Catalog reads and authentication checks do not count.
  • first_call records field names and available source URLs. It does not record the customer’s field values.
  • A tracking outage cannot turn a successful Fetch into an error.
Check status: GET /v1/users/me/onboarding/{attempt_id} needs the owning account sign-in. An integration can keep 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
  • 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. What the fields mean:
  • complete means the server observed the useful HTTP Fetch.
  • Installation and verification stay separate diagnostic milestones.
  • mcp_authorized_at is set the first time an MCP client finishes the hosted OAuth sign-in. Only sign-ins for the account after this setup started count.
  • mcp_clients lists the names those clients registered with.
  • Both stay empty until a client signs in.
  • Signing in does not change status.
  • A Fetch does not sign a client in.
  • After OAuth, verify hosted tools through the actual connected MCP client.
  • Errors: setup errors.

What Mireye keeps

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