Published on: 23-12-21 06:01pm
You can use client credentials details to interact with the REST API of UVdesk using OAuth 2.0 standard. The client-server authentication model followed is as
per "The OAuth 2.0 Authorization Framework proposed in RFC 6749".
Admin(s) can get API client credentials by Login into Admin Panel >> Search Api Client From Search bar >> Visit Api Client Page. You can Copy/Generate Client credentials details for API, from there.
UVdesk API supports Authorization Code grant, Password Grant, and Refresh Token grant.
curl https://companydomain.uvdesk.com/oauth/v2/token -d 'client_id=TestClient&client_secret=TestSecret&grant_type=password&username=zondo&password=mypassword'
https://companydomain.uvdesk.com/en/member/oauth/v2/auth?response_type=code&client_id=123456789&redirect_uri=https://myredirecturi.com/route
https://myredirecturi.com/route?code=SplxlOBeZQQYbYS6WxSbIA&state=xyz
https://companydomain.uvdesk.com/oauth/v2/token?client_id=TestClient&client_secret=TestSecret&grant_type=authorization_code&code=xyz&&redirect_uri=https://myredirecturi.com/route
{"access_token":"f6c777d4dfae9c0d3b3c3503807cb390319339bd","expires_in":3600,"token_type":"bearer","scope":"API"}
Often Access Token have limited lifetime. In UVdesk, Access tokens have default lifetime of 2 months. To Increase lifetime of Access Tokens, corresponding refresh Tokens can be used.
curl https://companydomain.uvdesk.com/oauth/v2/token -d 'client_id=TestClient&client_secret=TestSecret&grant_type=refresh_token&refresh_token=G5QY2potGz3JOkF0XlKWIA'
Hvis du ikke er i stand til at finde et svar på dit spørgsmål igennem vores hjælpeartikler, er du altid velkommen til at oprette en support sag
Kontakt Os