- Creates a persistent API key.
- Configures the hosted MCP connection.
- Installs the agent skill.
- 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:
GET /v1/users/me/termsPOST /v1/users/me/termswithversion,document_sha256,document_urlandaccepted: true
- A checkbox and an explicit setup action record acceptance.
- Passive session restoration does not.
- An existing current receipt is reused.
- See Authentication.
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_atis 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.
- 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.
- 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 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.
- 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_idandattempt_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.
- 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.
POST /v1/fetch with the same key and the header
X-Mireye-Onboarding-Attempt: <attempt_id>. A small free request:
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.
- Zero and false are meaningful values.
- Failed, absent and null fields do not count.
- Catalog reads and authentication checks do not count.
first_callrecords 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.
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,connectedorcompleteinstalled_at,verified_at,first_call_atclients,skill_installed,first_callmcp_authorized_at,mcp_clientsexpires_at
410 onboarding_attempt_ended. Start setup again to get a new key and
attempt.
What the fields mean:
completemeans the server observed the useful HTTP Fetch.- Installation and verification stay separate diagnostic milestones.
mcp_authorized_atis 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_clientslists 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
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.