Create an API key manually in www.agentref.co/app/settings/api-keys as a merchant, or inside the affiliate portal settings as an affiliate. It is shown only once.
Use that key to manage merchant resources or affiliate self-service endpoints via the API, or authenticate against MCP at /api/mcp/merchant or /api/mcp/affiliate depending on the persona.