---
title: "Attribute an agent to a referrer"
method: POST
path: "/api/referral/link"
tags: ["adoption"]
---

# Attribute an agent to a referrer

`POST /api/referral/link`

## Request

- Base URL: `https://api.anygas.xyz/svc`
- URL: `https://api.anygas.xyz/svc/api/referral/link`
- Auth: none declared

Set the referrer for an agent at first use (immutable, no self-refer). Body: {agent, code|referrer}.

## Request body

- object

## Response `200`

OK

---

[API](https://skmtc.dev/anygas/apis/robyn-anygas-api.md) · [All operations](https://skmtc.dev/anygas/apis/robyn-anygas-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anygas/apis/robyn-anygas-api/revisions/9b7498be8304?raw)
