API Reference

Generate Referral Codes

Generates referral codes for a given user identifier. The user will own these codes and can share them with others.

By default, 5 referral codes are generated. You can specify a custom quantity between 1 and 50 using the quantity parameter.

Each code can have a maximum number of uses specified via the max_uses parameter. If not specified, codes have unlimited uses.

Required API Key Scope: service_role

Language
Credentials
Bearer
Click Try It! to start a request and see the response here!