FreJun API

Oauth 2.0 Overview
Connecting your application with FreJun using OAuth 2.0
Initiate integration with Oauth
GETObtain access token
POSTVerify Token
POSTRefresh access token
Calling APIs
POSTInitiate a call
GETCalls API
GETCall Analytics API
Webhooks
Events
Webhook verification
POSTCreate webhook API
PUTUpdate webhook API
DELETEDelete webhook API
GETRetrieve webhook API
GETRetrieve all webhooks API
Example Responses for Webhooks
DocStarBuilt with DocStar
  1. Oauth 2.0 Overview
  2. Connecting your application wi...

Connecting your application with FreJun using OAuth 2.0

  1. Build the authentication URL with the client id provided and send the user to that URL as follows:
    <authorization_endpoint>?client_id=<client_id>
    authorization_endpoint is FreJun’s oauth authorization endpoint and client_id is what you obtained from FreJun

  2. Once the user reaches the FreJun’s authorization page, the user will be prompted to login to FreJun ( if not logged in already ) and will be redirected to a consent page where the user can Accept or Decline

  3. On Accept, the user will be redirected to the callback URL provided while creating the app with code attached as query param as follows:
    <callback_url>?code=<authorization_code>
    Note: authorization_code is valid only for 10 minutes

  4. On Decline, the user will be redirected to the callback URL provided while creating the app with code attached as empty string as follows:
    <callback_url>?code=

The authorization_code obtained will be used to get the access_token and refresh_token by invoking the AccessToken endpoint of FreJun as follows:
<obtain_access_token_endpoint>?code=<authorization_code>

Was this helpful?
DocStarBuilt with DocStar
Was this helpful?