These endpoints let resellers manage their sub-users. Include your API token as a query parameter.
GET /v1/reseller/clients?token=YOUR_TOKEN - list active sub-usersGET /v1/reseller/usage?token=YOUR_TOKEN - view allocation and usagePOST /v1/reseller/create?token=YOUR_TOKEN - create a new sub-userPUT /v1/reseller/edit?token=YOUR_TOKEN - edit sub-user detailsPOST /v1/reseller/allocate?token=YOUR_TOKEN - allocate credits to a sub-userDELETE /v1/reseller/delete/{apiKey}?token=YOUR_TOKEN - delete a sub-user and refund remaining creditsAll credit movements are logged for auditing.
{
"email": "client@example.com",
"name": "Client Name"
}
Returns { "apiKey": "API_KEY" } on success.
{
"apiKey": "SUB_USER_API_KEY",
"email": "new@example.com",
"name": "New Name"
}
{
"apiKey": "SUB_USER_API_KEY",
"credits": 100
}
{
"resellerBalance": 5000,
"users": [
{
"apiKey": "SUB_USER_API_KEY",
"name": "Client Name",
"email": "client@example.com",
"allocated": 300,
"used": 50,
"balance": 250
}
]
}