# Referral code

## Overview

This endpoint allows you to retrieve a user referral code. A referral code is the code used by the user to invite other users in your community.

## API Reference

{% openapi src="<https://api-v2.zealy.io/swagger.json>" path="/public/communities/{subdomain}/users/{userId}/referral-code" method="get" %}
<https://api-v2.zealy.io/swagger.json>
{% endopenapi %}
