register_agent
Register or look up an agent identity under the API key's organization. When to use: before client-side signing flows that need a known public_key, or to attach a human-readable name to an existing key. When NOT to use: Managed Mode log_decision (pass agent_name instead — Audifact provisions the key); do not use this to log decisions or outcomes. Idempotent on public_key: repeating the same key returns the existing agent. Requires X-API-Key. Returns the agent record (id, public_key, name).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional human-readable agent name. On lookup of an existing key, may update the stored name when provided. | |
| public_key | Yes | Base64 Ed25519 public key. Idempotency key — same value always resolves to the same agent in this org. |