Create subuser
Reseller Endpoints
Create subuser
POST /api/reseller/v1/subusers: create a subuser and allocate bandwidth
POST
Create subuser
Create a new subuser and allocate bandwidth from your pool. A secure password is generated and returned once in the response.
Authentication
Requires a reseller API key. Pass it asAuthorization: Bearer YOUR_API_KEY or X-API-Key: YOUR_API_KEY. See Reseller overview.
Body parameters
Desired username. Automatically prefixed with your store code (e.g.
user1 becomes MYSTORE_user1).Email for the subuser.
Bandwidth to allocate, in MB. Must be a positive number and cannot exceed your available balance.
Response
Returns the created subuser, including the generatedpassword. Store it now: it isn’t shown again.
Example request
Example response
Errors
| Status | Code | Reason |
|---|---|---|
| 400 | INSUFFICIENT_BALANCE | Not enough bandwidth available |
| 409 | USERNAME_TAKEN | A subuser with that username already exists |
| 422 | MISSING_FIELDS | A required field is missing |
| 422 | INVALID_BANDWIDTH | Bandwidth must be a positive number |

