AgentRef
/install agentref
AgentRef REST
Use this skill when the user wants to inspect or operate AgentRef over HTTP instead of MCP, especially from OpenClaw or other REST-first runtimes.
Connection contract
- Base URL:
https://www.agentref.co/api/v1 - Every request needs
Authorization: Bearer \x3CAGENTREF_API_KEY> - Never print, log, echo, or persist the raw API key in chat output, files, traces, or examples
- Success responses use
{ data, meta } - Error responses use
{ error, meta } - When a request fails, surface the failing endpoint plus
meta.requestId
First request
- Call
GET /api/v1/me - Read
data.key.ownerType,data.key.keyType,data.key.scopes, and the returned owner/program context - If
ownerTypeisaffiliate, do not use the merchant-admin endpoints below; say so clearly and only pivot to affiliate/api/v1/me/*reads if the user explicitly wants affiliate self-service
Credential guidance
- Prefer a dedicated AgentRef key for this skill instead of reusing a broad personal key
- Default to the smallest scope set that fits the task
- For inspection-only use, prefer read-only merchant scopes
- Only use write-capable scopes such as program changes, affiliate moderation, flag resolution, or payouts when the user explicitly needs those actions
- If the user only needs affiliate self-service, use an affiliate key instead of a merchant key
Operating rules
- Safe reads first: inspect current state with
GETbefore proposing or sending writes - Never invent endpoints, fields, or state transitions; use only the curated references in this bundle
- Ask for clear user confirmation before any action that creates, updates, archives, approves, blocks, resolves, or pays out
- When a documented write supports it, send an
Idempotency-Keyheader - Follow pagination from
meta.nextCursororpageandpageSize; do not guess hidden pages - Reuse IDs already returned by prior reads instead of searching again
Reference map
- Core REST surface: references/endpoints.md
- Intent-oriented call sequences: references/workflows.md
Load only the section needed for the current task. Keep the active prompt lean.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install agentref - After installation, invoke the skill by name or use
/agentref - Provide required inputs per the skill's parameter spec and get structured output
What is AgentRef?
Use AgentRef's REST API from OpenClaw or any HTTP runtime for merchant onboarding, programs, affiliates, conversions, flags, and payouts; authenticate with A... It is an AI Agent Skill for Claude Code / OpenClaw, with 107 downloads so far.
How do I install AgentRef?
Run "/install agentref" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is AgentRef free?
Yes, AgentRef is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does AgentRef support?
AgentRef is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created AgentRef?
It is built and maintained by Lukas van Uden (@lukasvanuden); the current version is v1.0.1.