Admin - Promo Codes
Admin - Promo Codes

Mint Promo Codes

Mint one or more promo codes.

post/api/v1/admin/promo/codes

Request

  • Base URL: https://api.gemstoneaiapp.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.gemstoneaiapp.com/api/v1/admin/promo/codes
  • Auth: none declared

Headers

x-admin-keystring nullable

Request body

countinteger

How many codes to mint

premium_daysinteger nullable

Days of premium granted. null = lifetime.

bonus_scansinteger
campaignstring nullable

e.g. "outreach-jul"

notestring nullable

Who it went to / why

max_redemptionsinteger

0 = unlimited redemptions

restricted_emailstring nullable

Lock the code to one address; it auto-applies when they sign up

expires_atstring date-time nullable

Code unusable after this

codestring nullable

Mint one specific vanity code

prefixstring

Prefix for generated codes

Response

Successful Response

createdinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.