User Exists

POST
https://authsecure.com/api/seller/

End/Modify user data and sessions directly securely.

Check whether a specific user exists under your seller application.

ℹ️ Useful for validation before creating, banning, or modifying a user.

Endpoint Details

GET /api/user_exists.php

Query Parameters

ParameterRequiredDescription
sellerkeyYesSeller API Key
usernameYesUsername to check

Success Response

{
  "success": true,
  "exists": true,
  "msg": "User exists"
}

User Not Found

{
  "success": true,
  "exists": false,
  "msg": "User does not exist"
}

Code Examples

fetch("http://localhost/commen/api/user_exists.php?sellerkey=KEY&username=USER")
 .then(r => r.json())
 .then(console.log);
<?php
echo file_get_contents(
 "http://localhost/commen/api/user_exists.php?sellerkey=KEY&username=USER"
);
?>
import requests
r = requests.get(
 "http://localhost/commen/api/user_exists.php",
 params={"sellerkey":"KEY","username":"USER"}
)
print(r.text)
var client = new RestClient(
 "http://localhost/commen/api/user_exists.php?sellerkey=KEY&username=USER"
);
var res = client.Execute(new RestRequest(Method.GET));
Console.WriteLine(res.Content);