- Getting Started
- Setup On Your Website
- Server Side API
- Auth For Services
Server Side API
Delete User
Available For: Enterprise Plans
Allows you to delete a new user.
Only call the API from your secure backend server environment.
Never call this from a client such as Web or Mobile.
Never call this from a client such as Web or Mobile.
URL
https://www.justsignin.com/api/v1/server/deleteUser
Protocol
HTTPS
Method
POST
Header
Content-Type: application/json; charset=utf-8
Request Body
The request body is a JSON object sent as the body of the HTTPS POST. The request body should include the following pramaters.
appId
String
Required The ID of your Just Sign In website configured in the dashboard.
appSecret
String
Required One of the App Secrets you created for the website referenced by the appId.
userId
String
Required The Id of the user to be deleted.
Example JSON POST Body (with pretend example values)
{
"appId": "131889432817531002",
"appSecret": "FCGAYPQP73U47ASKOWRPIOP7DPIY",
"userId": "111770523408422991"
}
Responses
200 - Success
A successful call will return an HTTP 200 status code.
HTTP 200 JSON Response
{
"success": true
}
400 - User Doesn't Exist
The userId passed is invalid.
HTTP 400 JSON Response
{
"message": "User doesn't exist",
"error": "INVALID_USER"
}