---
title: "Create Affiliate Apply Link"
method: POST
path: "/users/{app_user_id}/affiliate-apply-link"
tags: ["Users"]
---

# Create Affiliate Apply Link

`POST /users/{app_user_id}/affiliate-apply-link`

Builds an affiliate apply link for the user, carrying a short-lived token so the affiliate they become is attributed back to them. Request it when the user asks to apply, rather than ahead of time.

## Path parameters

- `app_user_id` string, required

## Headers

- `x-api-key` string, required

## Request body

- UserAffiliateApplyLinkRequest
  - `group_slug` string, nullable — The affiliate group to apply to. Omit to link to the app's default group.

## Response `200`

The apply link has been successfully built.

- UserAffiliateApplyLinkResponse
  - `data` UserAffiliateApplyLinkResponseData, required
    - `link` string, required — The apply link to open, for the requested affiliate group or the app's default group. It carries a short-lived token identifying the user, so the affiliate they become is attributed back to them.

## Other responses

- `400` — The request is invalid.
- `401` — Unauthorized
- `403` — The app does not take in-app affiliate applications, is not on a plan that includes them, or the user is already an affiliate.
- `404` — The user or the affiliate group has not been found.

## Changes

- **2026-08-28** `5b921a291cf8` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/winwinkit/apis/winwinkit-api/changes/users/:app_user_id/affiliate-apply-link/post.md)

---

[API](https://skmtc.dev/winwinkit/apis/winwinkit-api.md) · [All operations](https://skmtc.dev/winwinkit/apis/winwinkit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/winwinkit/winwinkit-api/revisions/5b921a291cf8/schema)
