---
title: "Generate a referral code"
method: POST
path: "/api/v1/referrals/generate"
tags: ["Referrals"]
---

# Generate a referral code

`POST /api/v1/referrals/generate`

## Request

- Base URL: `https://www.deepmapai.com`
- URL: `https://www.deepmapai.com/api/v1/referrals/generate`
- Auth: none declared

Create a new referral code.  If the email already has one, returns it.

## Request body

- ReferralGenerateRequest
  - `name` string, required
  - `email` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/deepmapai/apis/deepmap-ai.md) · [All operations](https://skmtc.dev/deepmapai/apis/deepmap-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/deepmapai/apis/deepmap-ai/revisions/dab995d977d0?raw)
