Skip to main content
The /api/agent/status endpoint gives you a real-time view of every ERC-8004 agent registered to your merchant account. Each agent record in the response includes its on-chain identity details, current USDC balance, recent payment history, and cumulative spend — everything you need to monitor agent activity and debug payment flows. You can narrow the response to a single agent using scaAddress or tokenId query parameters.
Querying by scaAddress alone (without any other filter) is a public lookup — it returns the basic agent record without requiring authentication. This powers anonymous checkout flows where a merchant’s frontend shows the agent name to a customer. All other queries (by tokenId, name, or no filter) require a merchant Bearer token scoped to your account.

Request

GET https://flarehq.xyz/api/agent/status

Headers

Query Parameters

string
Filter results to a single agent by its Circle SCA wallet address (e.g. 0xA1B2C3...). A bare scaAddress query is the only unauthenticated variant of this endpoint.
string
Filter by ERC-8004 token ID (e.g. 68210). Requires merchant authentication. Returns only agents belonging to your account.
string
Case-insensitive partial-match filter on agent name. Useful for dashboard search. Requires merchant authentication.

Response

200 — Success

boolean
true when at least one matching agent was found.
object
Convenience field containing the first agent in the result set. Identical to agents[0]. Useful when you query for a single known agent.
array
Array of agent objects matching your query. Each object has the following shape:
number
Number of agent records returned in agents.

401 — Unauthorized

Returned when a query other than a bare scaAddress lookup is made without a valid merchant token.

404 — Not Found

Returned when no agent matches the provided filters.

Examples

Success Response (single agent)

GET /api/agent/reputation

For a detailed reputation breakdown beyond the summarised reputation score in the status response, call the dedicated reputation endpoint: GET https://flarehq.xyz/api/agent/reputation?agentId={tokenId} This returns the full reputationSummary including total payment volume, success rate, and the on-chain Reputation Registry address (0x8004B663056A597Dffe9eCcC1965A193B7388713).
The estimatedScore is computed from your payment history stored in FlareHQ’s database. For the authoritative on-chain reputation score written by third-party validators, query the Reputation Registry contract directly at 0x8004B663056A597Dffe9eCcC1965A193B7388713 on Arc testnet (chain ID 5042002).