Authentication
Authenticating users is a key part to managing user accounts - This documentation will explain how. It will cover 2 different methods that are available via AccountableAPI.
Authenticate token
POST https://accountable.pixelninja.dev/:token/user/:uuid/authenticate/token
This will allow you to check if the provided token is valid for the user who you provide. You can use this 10 times per second.
Path Parameters
token
string
This is your API token.
uuid
string
This is the UUID of the user who is suspected of owning the token.
Request Body
token
string
This is the user token you are checking.
{ "code": 200, "message": "OK" }{ "code": 400, "message": "Bad request" }{ "code": 401, "message": "Unauthorized" }{ "code": 410, "message": "Gone" }Authenticate Via User Credentials
POST https://accountable.pixelninja.dev/:token/users/authenticate
This will take a username and password argument - returning information about the credentials if valid. You can use this endpoint 10 times per second.
Path Parameters
token
string
This is your API token.
Request Body
username
string
The username of the user who is authenticating.
password
string
The password of the user who is authenticating.
{
"uuid": "d4b4e3d7-c081-4937-ae96-0ec140111f5b",
"2fa": false
}{ "code": 400, "message": "Bad request" }{ "code": 401, "message": "Unauthorized" }Will return a boolean of 2fa if enabled plus an MFA token which should be used for assignment while checking 2fa.
Last updated
Was this helpful?