POST /api/agent/deploy provisions Circle owner/validator SCAs and submits ERC-8004 registration. It can create wallets and spend gas. End-to-end mainnet agent deployment remains unverified.
Authentication and request
Use the merchant’s API key or supportedmerchant_token session. The authenticated merchant, not a client-supplied owner or merchant ID, owns the resulting records.
Review network configuration, Circle authorization, sponsorship and the metadata before making a funded request. The registry address comes from server network configuration; the legacy
IDENTITY_REGISTRY_ADDRESS override is not honored. Do not copy an address from a docs example into production configuration.
What the route does
- Checks deployment limits and an optional replay key.
- Provisions a wallet set and two Circle SCAs: owner and validator.
- Persists the authenticated merchant-to-wallet deployment intent.
- Submits and polls identity registration.
- Indexes the real token ID and persists the active agent only when identity indexing succeeds.
Successful and pending responses
On success, save each value separately:agent.id: Registry ID for owner-only wallet, policy, pay and treasury routes.agent.tokenId: ERC-8004 token ID for identity, reputation and validation.agent.scaAddress: SCA wallet address.agent.circleWalletId: Circle’s wallet identifier, not an on-chain agent identifier.txHash,explorerUrland the owner/validator wallet addresses.
PENDING_IDENTITY_CONFIRMATION means registration may have succeeded but the token ID was not recovered. Preserve the transaction hash and use POST /api/agent/deploy/recover under the owning merchant. Do not redeploy to recover; that can mint another identity. No fallback token ID should be treated as active.
Inspect status and reputation
An exactscaAddress-only lookup at /api/agent/status is public. Broader status queries by token ID, name or no filter require merchant authentication and remain scoped to that merchant.
Read status and reputation for their specific inputs. There is no universal 8004:{chainId}:{tokenId} input accepted by every owner-only route. Missing reputation is not a default proof of trust.

