---
title: "Generate Referral Code"
method: POST
path: "/api/v1/referrals/code"
tags: ["referrals"]
---

# Generate Referral Code

`POST /api/v1/referrals/code`

## Request

- Base URL: `https://agentictrade.io` (the document declares no server; this is the origin it was published from)
- URL: `https://agentictrade.io/api/v1/referrals/code`
- Auth: none declared

Generate a new referral code for the authenticated provider.

Requires API key authentication (Bearer key_id:secret).
Returns the new referral record with the code.

## Response `201`

Successful Response

- unknown

---

[API](https://skmtc.dev/agentictrade/apis/agent-commerce-framework.md) · [All operations](https://skmtc.dev/agentictrade/apis/agent-commerce-framework/llms.txt) · [OpenAPI document](https://skmtc.dev/agentictrade/apis/agent-commerce-framework/revisions/65b4b64609bc?raw)
