---
title: "Get my referral code"
method: GET
path: "/referrals/my-code"
tags: ["referrals"]
---

# Get my referral code

`GET /referrals/my-code`

## Request

- Base URL: `https://api.instruxi.dev/api/v1/enforcer`
- URL: `https://api.instruxi.dev/api/v1/enforcer/referrals/my-code`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

## Response `200`

OK

- InternalDeliveryHttpHandlerReferralCodeResponse
  - `data` EnforcerV3InternalDomainReferralCode
    - `account_id` string
    - `code` string
    - `created_at` string
    - `id` string
    - `tenant_id` string
  - `success` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/instruxi/apis/enforcer-api.md) · [All operations](https://skmtc.dev/instruxi/apis/enforcer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/instruxi/apis/enforcer-api/revisions/fa82bc1becc0?raw)
