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

# Apply Referral Code

`POST /api/v1/referrals/apply`

## 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/apply`
- Auth: none declared

Apply a referral code for the authenticated provider.

Requires API key authentication (Bearer key_id:secret).
Links the current provider as 'referred' by the code owner.

## Request body

- ApplyCodeRequest
  - `code` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[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)
