Basic Authentication (REST)
Acquiring the Authentication Token
Authentication is fairly simple. We use an Authentication-token based model. To get this token, please get an account email & password and post to the /login endpoint
Login to account
POST https://api.disadus.app/login
Request Body
Name
Type
Description
email*
String
User Email
password*
String
User Password
{
"success": true,
"token": "AuthToken"
}Once you receive the token, store it somewhere safe! At the moment, these tokens do NOT Automatically expire!!! Making a request with the token is fairly simple, just prepend Bearer to the token and send it via the Authorization header. Try out the following below!
Get Self User Data
GET https://api.disadus.app/user/@me
Headers
Name
Type
Description
Authorization*
Your authorization header ( Bearer AuthToken)
Last updated
Was this helpful?