Create Account
Account API
Create Account
Create a new customer account.
POST
Create Account
Create a new customer account in the Stat Proxies system.
Request
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer {your_api_key} | Yes |
Content-Type | application/json | Yes |
Body Parameters
The customer’s Discord ID.
The customer’s Discord username.
The customer’s email address.
Example Request
Response
Success Response
Error Responses
503 Service Unavailable - Account Exists
503 Service Unavailable - Creation Failed
Account Properties
When an account is created, it is initialized with:| Property | Value |
|---|---|
member | false |
unix_creation_date | Current timestamp |
iso_creation_date | Formatted date string |
Use Case
This endpoint is useful for:- Pre-provisioning accounts: Create accounts before customers make purchases
- Integration with external systems: Sync user accounts from other platforms
- Reseller platforms: Create sub-accounts for customers
Notes
- If an account with the same Discord ID already exists, the request will fail
- The email address is not validated for uniqueness
- Accounts created via API can later sign in using Discord OAuth
- This is a legacy endpoint primarily for Discord-based authentication
Modern Authentication
For modern integrations, users typically create accounts by:- Signing in via the dashboard with Google, GitHub, or Discord
- Accounts are automatically created on first sign-in
- Multiple auth providers can be linked to the same account
Learn About Authentication
Set up API keys and authenticate your requests.
