Docs

Docs

  • Support

›Authorization

Vern Insurance Process

  • About Vern
  • Open API Usage

Authorization

  • Sales Partners
  • Sales Projects
  • Authentication

Travel Insurance

  • Travel Insurance Quote
  • Travel Insurance Quote by Product
  • Travel Insurance Policy
  • Travel Policy Payment

Authentication

Request access and refresh token with your credentials

API Endpoint

/auth/email/sign-in

Methods

POST

Data Params

FieldTypeDescriptionRequired
emailstringEmail address of the sales partner user.Yes
passwordstringPassword of the sales partner user.Yes

Success Response

Code: 200

FieldTypeDescription
accessTokenstringAuthentication token that has to be included in all further requests.
refreshTokenstringUsed to retrieve new tokens when they expire (more informations below).

Sample Call

Body

{
    "email": "youremail@gmail.com",
    "password": "supersecret"
}

Response

{
    "accessToken": "cewbdqijcw@&#hbub4bi8hbb",
    "refreshToken": "kjfesnkhd83oqijdcnkdow"
}

Refresh expired tokens

API Endpoint

/auth/refresh

Methods

POST

Data Params

FieldTypeDescriptionRequired
tokenstringRefresh token obtained during authentication.Yes

Success Response

Code: 200

FieldTypeDescription
accessTokenstringAuthentication token that has to be included in all further requests.
refreshTokenstringUsed to retrieve new tokens when they expire.

Sample Call

Body

{
    "token": "kjfesnkhd83oqijdcnkdow"
}

Response

{
    "accessToken": "#hbub4bi8hbbcewbdb4bi8hbb",
    "refreshToken": "oqijdcnkdowkjfesnkhd83"
}
← Sales ProjectsTravel Insurance Quote →
  • Request access and refresh token with your credentials
  • Refresh expired tokens
Docs
Docs
SDK
Copyright © 2019 Vernsurance