Lambda
  • API Docs
    • 📌Authentication & Authorization
    • 📬Notifications
      • Accessing Notifications
      • Posting Notifications
    • 🪵Logs
      • Accessing Logs
Powered by GitBook
On this page
  • Generate a session for a given Lambda account
  • Fetches the minimal authenticated user
  1. API Docs

Authentication & Authorization

In order to use almost all of the API endpoints outside of this page, you must authenticate yourself.

Firstly, you must generate a new session for your respective Lambda account. After doing so you will be able to move forward in accessing other API endpoints.

Generate a session for a given Lambda account

POST /auth/login

Request Body

Name
Type
Description

ukey*

String

User key given upon account creation

{
    success: true,
    userFacingMessage: string,
    token: Your Authorization Token
}
{
    success: false,
    userFacingMessage: string
}

Now that you have successfully authenticated yourself, you will be given a token. Now let us validate that we have logged into our Lambda account.

Fetches the minimal authenticated user

GET /users/authenticated

Headers

Name
Type
Description

Authorization*

String

Your Lambda Authorization Token

{
    success: true,
    username: Your Username,
    rank: Your Rank,
    avatarUrl: Your Avatar URL,
    uid: Your UID
}
{
    success: false,
    userFacingMessage: string
}

Now you can access the proceeding API endpoints by passing your token in the Authorization header for each request.

NextNotifications

Last updated 2 years ago

📌