POST
/
v0
/
promo
curl --request POST \
  --url 'https://api.unify.ai/v0/promo?code=sample_code' \
  --header "Authorization: Bearer $UNIFY_KEY"
{
    "info": "Code {code} activated successfully!"
}

Activates a promotional code.

Authorizations

Authorization
string
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

code
string
required

Promo code to be activated.

user
string

ID of the user that receives the credits,defaults to the user making the request.

curl --request POST \
  --url 'https://api.unify.ai/v0/promo?code=sample_code' \
  --header "Authorization: Bearer $UNIFY_KEY"
{
    "info": "Code {code} activated successfully!"
}