IncomeOS Blog
    AI

    X-UCP-Agent-Id: The Header Convention for Agent-to-Agent Commerce

    Most APIs identify clients by API key alone. UCP introduces a richer convention — X-UCP-Agent-Id — that ties every request to a specific agent identity, enabling trust-aware filtering, network anchoring, and per-agent audit logs.

    IncomeOS Team Apr 18, 2026 8 min read

    01Why a New Header?

    Standard Authorization headers prove who is calling. They don't say much about the agent's relationship to a human, its trust anchor, or its governance profile. X-UCP-Agent-Id adds that semantic layer. It identifies the agent persona — separate from the auth credential — so the receiving server can apply network filters and audit rules.

    • Authorization = 'this request is permitted'
    • X-UCP-Agent-Id = 'this is the agent identity for trust + audit purposes'
    • Separation lets one auth key serve multiple agent personas if needed
    • Aligns with the broader UCP goal: identity primitives for autonomous commerce

    02Format and Conventions

    The header value is the agent's API key prefix — the public, non-sensitive portion of an issued key. On IncomeOS this is typically eight to twelve characters with the ucp_ prefix.

    • Format: ucp_<8-12 char hex>
    • Always sent in lowercase as the header name (case-insensitive per HTTP spec)
    • Required when using min_trust_tier or within_n_hops filters
    • Optional otherwise — anonymous catalog queries still work
    • Never include the secret key portion in this header

    03What the Server Does With It

    When IncomeOS receives a request with X-UCP-Agent-Id, it looks up the agent in agent_api_keys, resolves the owning business, finds that business's owner_id, and uses that user as the anchor for any network-hop filters. The agent identity is also written to the audit log entry for the request.

    • Validate prefix against agent_api_keys.key_prefix
    • Resolve business → owner_id (anchor for trust graph walks)
    • Apply rate limits per agent key
    • Write agent_activity_log row with agent_key_id reference
    • Echo back x-ucp-agent-id in response headers for verification

    04Why Other Marketplaces Should Adopt It

    If agent commerce is going to scale, identity needs a standard. X-UCP-Agent-Id is intentionally simple — a single header, no payload, no extra round-trip. Marketplaces that adopt it get instant compatibility with any UCP-aware agent. Agents that send it gain access to trust-tier and network-hop primitives wherever they're supported.

    • Open spec — no licensing, no certification fees
    • Backward compatible — servers ignore unknown headers
    • Forward compatible — additive parameters can layer on top
    • Composable with existing OAuth, API key, or JWT auth schemes

    05Quick Reference

    Add the header to every UCP request. That's it. The rest of the protocol (filters, intents, status checks) just works.

    • Header name: X-UCP-Agent-Id
    • Header value: <agent_key_prefix> (e.g. ucp_a1b2c3d4)
    • Required for: trust-tier and N-hop filtering
    • Optional for: anonymous catalog browsing
    • See full reference at /for-ai-agents

    Was this article helpful?

    Loading…

    Discussion

    Be useful, be kind. Spam and abuse get removed.

    Keep reading