TeleWellness Portal
  • Introduction
  • HELPFUL RESOURCES
    • Getting Started
    • FAQ
      • Appointments
      • Meal Plan
  • User Management
    • Roles and Permissions
    • Manage Coaches
      • Coach tab
        • Register a new coach
          • Assign Members
        • Edit an existing coach
      • Calendar tab
        • Appointment Types
        • Appointment Alerts
      • Note Templates tab
    • Manage Members
      • Create a new member
      • Edit member's information
      • Filter members
  • Using the TeleWellness Portal
    • Login and logout to the Portal
    • Navigating the TeleWellness Portal
      • Home
      • Dashboard
      • Admin Dashboard
      • Coach Dashboard
        • Progress Tab
          • Filtering the information
          • Checking the user’s streak progress
          • Checking the user's activities progress
          • Showing the food log history
          • Checking the user's recap questions
          • Checking the user's weight log history
          • Showing user’s program journey
          • Checking user’s water intake history
        • Meal Plan tab
        • Notes tab
        • Appointments tab
        • Lab Tests tab
        • Wellness Plans tab
      • Messages
      • Meal Plans
        • Manage Meal Plans
          • From Scratch
          • Smart Meal Plan
      • Scheduling
      • Wellness Plan
        • Manage Protocols
        • Manage Wellness Plan Templates
    • Note Templates
  • API Reference
    • Generate Authorization Token
    • Appointments
      • Appointment Types
      • Add Appointment Credits
    • Coaches
      • Coach List
      • Update a Coach
      • Create a Coach
      • Invite Coach
    • Members
      • Member List
      • Members List
      • Program List
      • Update member's program
      • Assign Coach to Member
    • Lab Test Reports
      • Lab Test Report List
      • Create a Lab Test Report
      • Update Lab Test Report
      • Delete a Lab Test Report
    • Wellness Plans
      • Create a Supplement Plan for Member
      • Update Member Supplement
      • List Member Supplement Plans
      • Delete Member Supplement Plan
Powered by GitBook
On this page
  • Required Arguments
  • Available Fields
  • Example
  1. API Reference

Generate Authorization Token

Use the login mutation to generate an access token in order to use the Telewellness Portal API.

Required Arguments

Argument

Type

Description

email

String!

Telewellness Admin email.

password

String!

Telewellness Admin password.

Available Fields

Field

Type

Description

success

Boolean

True if thelogin is successful, Otherwise False.

accessToken

String

This token will be used as Authorization header.

Example

mutation {login(
  input:{
    email: "suggestic.admin@suggestic.com"
    password: "adminpass"
  }
){
  success
  message
  accessToken
  refreshToken
  }
}
{
  "data": {
    "login": {
      "success": true,
      "message": "User logged in",
      "accessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9eyJleHAiOjE3MTk4NDg3NDYsImlzcyI6InNnOnBvcnRhbCIsImlhdCI6MTcxOTI0Mzk0NiwidWlkIjoiNTA0MyIsImVtYWlsIjoia2V5c3BhbkBzdWdnZXN0aWMuY29tIiwidGhpcmRwYXJ0eSI6IjU0NjkiLCJyb2xlcyI6WyJBRE1JTiIsIkNPQUNIX0FETUlOIiwiQ09BQ0hfQUxMX01FTUJFUlMiXX0.BmXI4I58k-rdV7Flcc1PsLvDN-uKtz-nd53oCInuFYQ",
      "refreshToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9eyJleHAiOjE3MjA0NTM1NDYsImlzcyI6InNnOnBvcnRhbCIsImlhdCI6MTcxOTI0Mzk0NiwidWlkIjoiNTA0MyIsImVtYWlsIjoia2V5c3BhbkBzdWdnZXN0aWMuY29tIiwidGhpcmRwYXJ0eSI6IjU0NjkiLCJyb2xlcyI6WyJBRE1JTiIsIkNPQUNIX0FETUlOIiwiQ09BQ0hfQUxMX01FTUJFUlMiXX0.jy06oUFPX2yl7CWczQ8shb0TdUYK_J5OF4_c-AZTQLc"
    }
  }
}
PreviousNote TemplatesNextAppointments

Last updated 10 months ago