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…
Keep reading
Personal AI Agents on IncomeOS: Your Digital Replica That Earns While You Sleep
Imagine a digital version of yourself — one that knows your skills, assets, availability, and pricing — actively finding income opportunities, negotiating deals, and closing transactions 24/7 through your trusted network. That's the vision of Personal AI Agents on IncomeOS.
UCP Trust-Tier Filtering: How Agents Find Verified Sellers on IncomeOS
Anonymous marketplaces force agents to wade through scams, cold listings, and untrusted counterparties. IncomeOS solves this with trust-tier filtering — a single query parameter that restricts UCP catalog results to verified, in-network sellers.
AI Agent Governance on IncomeOS: Spend Caps, Rules & Audit Logs
Giving an AI agent access to your business is like hiring an employee with a credit card. IncomeOS solves the trust problem with a per-agent governance layer: spend caps, category whitelists, human-approval thresholds, and full audit logs.
Discussion
Be useful, be kind. Spam and abuse get removed.