Skip to main content
POST
/
api
/
v2
/
account
/
create
Create Account
curl --request POST \
  --url https://dashboard.statproxies.com/api/v2/account/create \
  --header 'Content-Type: application/json' \
  --data '
{
  "discord_id": "<string>",
  "discord_name": "<string>",
  "email": "<string>"
}
'
import requests

url = "https://dashboard.statproxies.com/api/v2/account/create"

payload = {
"discord_id": "<string>",
"discord_name": "<string>",
"email": "<string>"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({discord_id: '<string>', discord_name: '<string>', email: '<string>'})
};

fetch('https://dashboard.statproxies.com/api/v2/account/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://dashboard.statproxies.com/api/v2/account/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'discord_id' => '<string>',
'discord_name' => '<string>',
'email' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://dashboard.statproxies.com/api/v2/account/create"

payload := strings.NewReader("{\n \"discord_id\": \"<string>\",\n \"discord_name\": \"<string>\",\n \"email\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://dashboard.statproxies.com/api/v2/account/create")
.header("Content-Type", "application/json")
.body("{\n \"discord_id\": \"<string>\",\n \"discord_name\": \"<string>\",\n \"email\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://dashboard.statproxies.com/api/v2/account/create")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"discord_id\": \"<string>\",\n \"discord_name\": \"<string>\",\n \"email\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
Create a new customer account in the Stat Proxies system.

Request

Headers

HeaderValueRequired
AuthorizationBearer {your_api_key}Yes
Content-Typeapplication/jsonYes

Body Parameters

discord_id
string
required
The customer’s Discord ID.
discord_name
string
required
The customer’s Discord username.
email
string
required
The customer’s email address.

Example Request

curl -X POST "https://dashboard.statproxies.com/api/v2/account/create" \
  -H "Authorization: Bearer {your_api_key}" \
  -H "Content-Type: application/json" \
  -d '{
    "discord_id": "123456789012345678",
    "discord_name": "user#1234",
    "email": "user@example.com"
  }'

Response

Success Response

{
  "response": "success"
}

Error Responses

503 Service Unavailable - Account Exists

{
  "error": "account_already_exists"
}

503 Service Unavailable - Creation Failed

{
  "error": "account_creation_failed"
}

Account Properties

When an account is created, it is initialized with:
PropertyValue
memberfalse
unix_creation_dateCurrent timestamp
iso_creation_dateFormatted 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:
  1. Signing in via the dashboard with Google, GitHub, or Discord
  2. Accounts are automatically created on first sign-in
  3. Multiple auth providers can be linked to the same account

Learn About Authentication

Set up API keys and authenticate your requests.