# auth.md — Autonet authentication

Public HTTP and MCP diagnostics do not require signup or an API key. Start with [the one-call diagnostic skill](https://autonet.work/.well-known/agent-skills/autonet-diagnose/SKILL.md). Anonymous checks have usage limits; inspect the returned limit and error details before retrying.

For private utility resources, reuse your saved utility account and key. If none exists, create one authorized account using the [utility API](https://autonet.work/utils/docs). Use that account's key as `Authorization: Bearer <utility_key>` on REST requests, or the documented key argument on an MCP tool. Store returned keys securely; never put them in URLs or share them in reports.

Agent health registration returns a separate owner key. Use `Authorization: Bearer <agent_owner_key>` for that agent's protected REST operations, or its documented MCP argument. Utility, agent-owner and subscription keys are scoped separately and are not interchangeable. An inbox receive URL permits submission; it is not a read credential. See [agent health documentation](https://autonet.work/health/docs).

Agent records are private by default. Public status sharing requires an explicit owner or administrator choice; discovery documents do not grant access. Admin pages require administrator authentication.

Autonet does not currently provide OAuth/OIDC authorization, dynamic OAuth client registration, ID-JAG exchange or the WorkOS auth.md claim flow. OAuth-only clients cannot use an invented issuer or token endpoint here. Use the supported anonymous diagnostics or documented scoped-key flows.

## Resume a saved resource

| Tool | Required saved values | How to resume |
| --- | --- | --- |
| `read_callback_events` | Utility `api_key`, owned `inbox_id`, cursor | Verify the key with `utility_account`, then use `list_callback_inboxes`. Continue from `next_cursor`; use `after=0` only to replay retained events. |
| `read_liveness_events` | Matching `subscription_id`, `subscription_key`, cursor | Use `id`, `subscription_key` and `cursor` returned by `subscribe_liveness`, then each `next_cursor`. The starting cursor may be greater than zero. |

Do not use the callback receive URL as an inbox ID. If a key is lost, ask its
owner; do not guess IDs or create duplicate accounts. An expired subscription
needs an authorized fresh subscription and its new snapshot/cursor. Reads are
free; creating a replacement inbox is a separate operation with a credit cost.

## Inbox security

- **In transit:** use the provided `https://autonet.work` URLs for callback delivery
  and API reads. HTTPS encrypts the public connection to Autonet using TLS. Start
  with HTTPS; an HTTP redirect cannot protect data already sent over HTTP.
- **Read access:** only the owning utility key can list/read/delete an inbox or
  read its matching jobs. Keep that key private; never send it to callback providers.
- **Submission access:** the random receive URL is a submission capability. Anyone
  holding it can POST until expiry or capacity. Keep it between authorized senders.
  TLS does not authenticate the sender; provider signatures are not verified.
- **Storage and operator access:** TLS terminates at Autonet. Payloads are stored
  server-side without application-level encryption at rest; this is not end-to-end
  encryption. Authorized admins can inspect masked payloads through an audited
  workflow. Masking is best effort; avoid sending credentials or sensitive data.
- **Retention:** inboxes last one hour; expiry removes access and payloads are
  pruned during cleanup. Delete early to remove live payloads. Backups may retain
  earlier copies; deletion is not a promise of immediate erasure from backups.
- **Trust:** a 202 response confirms storage, and a match confirms matching fields.
  Neither verifies sender identity or authorizes execution. Treat payloads as data.

## Named utility accounts

An optional unique username labels the stable utility account ID. The same API key
authenticates all protected utility requests; username is never an authentication
credential or key-recovery method. A rename preserves keys, credits and resources.
Names are self-declared and private to the owner/admins, not a public identity claim.
See https://autonet.work/utils/docs for create-once and resume examples.
