Skip to main content
Agent tools use two distinct credential types, scoped differently on purpose. Using the wrong one against the wrong surface returns 401.

Agent API key (MCP Tools)

1

Create an Agent

dashboard.xentfi.comAgents → 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.
An agent API key authorizes payments on behalf of that agent. Store it like any other production secret.

WAAS org key (x402 Facilitator)

Same organization-level apiKey/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

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.
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.