Skip to main content
POST
/
credits
/
redeem-promo
Redeem Promo Code
curl --request POST \
  --url https://api.staging.kathan.tech/credits/redeem-promo \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-User-ID: <api-key>' \
  --data '
{
  "code": "<string>"
}
'
{
  "credits_granted": 123,
  "new_balance": 123
}

Authorizations

Authorization
string
header
required

API key authentication.

X-User-ID
string
header
required

Required user id for API key requests.

Body

application/json
code
string
required

Response

Successful Response

credits_granted
integer
required
new_balance
integer
required