Skip to content

API Reference

Ashwin Shenoy edited this page Sep 5, 2019 · 8 revisions

Authorisation APIs

Generate JWT Auth Token

Generates an authorisation token for the user

mutation TokenAuth($username: String!, $password: String!) {
  tokenAuth(username: $username, password: $password) {
    token
    refreshToken
  }
}

Read more about Authorisation APIs

Attendance

Log Attendance

mutation logAttendance($username: String!, $password: String!, $list: [String]) {
  LogAttendance(username: $username, password: $password, list: $list)
	{
    id
  }
}

Leave Record

mutation RecordLeaveToday($userId: String!, $reason: String!, $type: String!, $botToken: String!,$token:String!{
  RecordLeaveToday(userId: $userId, reason: $reason, type: $type, botToken: $botToken, token: $token){
    id
  }
}