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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Promo code to be activated.
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!"
}