v1

latestOpenAPI 3.1.02026-07-2616459400.5 KB
Subaccount API

Add or Subtract Credits

Manually increase or decrease email credits for a subaccount.

post/subaccounts/setsubaccountcredit

Headers

api_keystring required
Example:x-api-key-123456789

Add your master account API key.

Request body

usernamestring required

Add subaccount username whose credit balance you want to change.

actionstring required

Choose credit action — use increase to add credits or decrease to deduct credits.

amountinteger required

Add the number of credits to increase or decrease.

Example request

{
  "username": "acme_marketing_team",
  "action": "increase",
  "amount": 5000
}

Response

Credits updated successfully