API Integration in Desklog

API

Where you get API ?

You can find Desklog API integration from Desklog ->Settings ->Integration

https://app.desklog.io/admin/settings/integrations

Base Url: https://api.desklog.io/api/v2/

App key: You can collect app key from Desklog ->Settings ->Integration –>Desklog Api Integration
–> Activate

Ping

GET: https://api.desklog.io/api/v2/ping
EXAMPLE
Request:
https://api.desklog.io/api/v2/ping

Get all users

GET: https://app.desklog.io/api/v2/all_users?appKey={appKey}

  • appKey(Required):

EXAMPLE
Request:
https://api.desklog.io/api/v2/all_users?appKey=yiyvkw1lh6uhlcqa8qm9j16g3e14sc19aovj58bj

Get user profile

GET: https://api.desklog.io/api/v2/user_profile?appKey={appKey}&email={email}

  • appKey(Required):
  • email (Required):

EXAMPLE
Request:
https://api.desklog.io/api/v2/user_profile?appKey=yiyvkw1lh6uhlcqa8qm9j16g3e14sc19aovj58bj&email=john@doe.com

Update user profile

POST: https://api.desklog.io/api/v2/user_profile_update

  • appKey(Required):
  • email (Required):
  • new_name (Required):
  • new_phone (Required):

EXAMPLE
Request:
curl –location –request POST ‘https://api.desklog.io/api/v2/user_profile_update’ \
–form ‘appKey=”yiyvkw1lh6uhlcqa8qm9j16g3e14sc19aovj58bj”‘ \
–form ’email=”john@doe.com”‘ \
–form ‘new_name=”John Doe”‘ \
–form ‘new_phone=”123456″‘

Get app usage attendance:

GET: https://api.desklog.io/api/v2/app_usage_attendance?appKey={appKey}&date={date}

  • appKey(Required):
  • date:
  • User_id (Optional):

EXAMPLE
Request:
https://api.desklog.io/api/v2/app_usage_attendance?appKey=yiyvkw1lh6uhlcqa8qm9j16g3e14sc19aovj58bj&date=25-09-2021