401.
Agent API key (MCP Tools)
1
Create an Agent
dashboard.xentfi.com → Agents → New Agent.
2
Attach a Policy
Per-transaction/daily/weekly/monthly USD limits, an allowed-recipients list, and optionally allowed hours — enforced server-side on every
xentfi_create_payment call.3
Get the Agent API Key
After creating the agent, your Agent API Key is generated and displayed once. Copy and store it securely — you won’t be able to see it again.
WAAS org key (x402 Facilitator)
Same organization-levelapiKey/orgId used across the rest of the XentFi platform — see core Authentication for how to generate one from Settings → API Keys.
The facilitator URL and relayer wallet are fixed on the backend —
apiKey/orgId are the only two options the client takes. Header names are lowercase (apikey/orgid).Only the resource-server side (
verify/settle) needs this credential. A pure payer signs offline with signEip3009Authorization and needs no XentFi credential at all — see essentials/x402.Troubleshooting
401 on an MCP tool call
401 on an MCP tool call
XENTFI_AGENT_API_KEY didn’t reach the process, or the agent’s status is SUSPENDED/REVOKED (xentfi_get_agent_info shows this). See Error Handling.401/403 from verify() or settle()
401/403 from verify() or settle()
Invalid or missing WAAS
apiKey/orgId — double-check against the dashboard, and confirm you’re using the lowercase apikey/orgid header names if calling the facilitator’s REST endpoints directly rather than through the SDK.Next steps
Tools Reference
Every MCP tool.
x402 Reference
X402FacilitatorClient methods and types.
