User-Specific Endpoint
This endpoint will allow you to read and change data about a specific user!
Get A User
GET https://accountable.pixelninja.dev/:token/user/:uuid
This will get a specified user by UUID. This is not for authenticating users as there are specific endpoints for that. This endpoint should not be used for getting data that is covered by other endpoints (like custom attributes). You can use this endpoint 2 times per second.
Path Parameters
token
string
This is your API token.
uuid
string
This is the UUID of the user you wish to fetch.
[{
"username": "admin",
"uuid": "3ae74cfd-3174-49e2-ab99-1310bb89fa67",
"password": "$2b$12$O1l14ukIqsL8S/0L1E2IsOYtfvkgtS2H7oJYfKcuMMZVlRSAEnakO",
"accessToken": "M2FlNzRjZmQtMzE3NC00OWUyLWFiOTktMTMxMGJiODlmYTY3.MTYxNjAxODY1MTAyNw.exyGGW61aV04V4GcFUXRIpS1mIqeiSpl",
"passwordLastChanged": 1616018651027,
"createdAt": 1616018651027,
"permissions": 0,
"customAttributes": {},
"2fa": {
"enabled": true,
"enabledAt": 1616154804936,
"token": "HBBWWLRYN4WF4YZDGVYWKWRVMFRXQ5JYO4UVIS25KBFVW52WGAXA",
"mfaToken": "AYIspPs91RUYdabk9WdZvKO3lA9v2MTS"
},
"scopes": {
"key": "",
"permissions": [],
"timeout": 0
}
}]{ "code": 400, "message": "Bad request" }Edit User Info
PUT https://accountable.pixelninja.dev/:token/user/:uuid
This is used to change information about a user. It only covers username and password as other endpoints are dedicated to editing other values. You can choose to change one or both of these values in one request. You can use this endpoint once per second.
Path Parameters
token
string
This is your API token.
uuid
string
This is the UUID of the user you wish to edit.
Request Body
username
string
Provide this field to change the user's username
password
string
Provide this field to change the user's password.
{
"username": "NotAdmin",
"uuid": "3ae74cfd-3174-49e2-ab99-1310bb89fa67",
"password": "$2b$12$W3bsCDysVoyIYzbR22tAZ.ycsJORzxkSRrD3X58Zle.6k9L2CXmd6",
"accessToken": "M2FlNzRjZmQtMzE3NC00OWUyLWFiOTktMTMxMGJiODlmYTY3.MTYxNjQ1MTU0MjYxMw.QWjOPg3s4Py9XHYMOvMVWbptbqx0aXY0",
"passwordLastChanged": 1616451542613,
"createdAt": 1616018651027,
"permissions": 0,
"customAttributes": {},
"2fa": {
"enabled": true,
"enabledAt": 1616154804936,
"token": "HBBWWLRYN4WF4YZDGVYWKWRVMFRXQ5JYO4UVIS25KBFVW52WGAXA",
"mfaToken": "AYIspPs91RUYdabk9WdZvKO3lA9v2MTS"
},
"scopes": {
"key": "",
"permissions": [],
"timeout": 0
}
}{ "code": 400, "message": "Bad request" }If you change a user password, the user access token will change! Make sure to re-send it to the user!
Delete User
DELETE https://accountable.pixelninja.dev/:token/user/:uuid
This will permanently delete a user - Deleted users do not count against your user quota. This endpoint can be used 2 times per second.
Path Parameters
token
string
This is your API token.
uuid
string
This is the UUID of the user you wish to delete.
{ "code": 204, "message": "No content" }{ "code": 400, "message": "Bad request" }{ "code": 404, "message": "Not found" }Deleted users cannot be recovered.
Last updated
Was this helpful?