Get a New Access Token and Refresh Token

post

/ic/api/process/v1/auth/token/permission

Gets a new access token and a new refresh token using basic authentication. This is the initial call to make to get a token pair, an access token and a refresh token, for subsequent access to Decision Modeling Service. The caller may use the access token to access Decision Modeling Service for 15 minutes, while keeping the refresh token for obtaining a new access token upon the expiration of the initial access token. See Refresh the Access token for getting a new access token. See Decision Modeling Service for detecting access token expiration.

Request

Header Parameters
  • Authorization header MUST be set to type Basic, and base64 encoded username and password pair must be provided
    Default Value: Basic XXXXXXXXXX
Security
  • Type: basic
    Description: HTTP Basic Authentication. Works over `HTTP` and `HTTPS`
Back to Top

Response

Supported Media Types

200 Response

Successful Response
Body ()
Root Schema : Tokens
Match All
Show Source
Nested Schema : AccessToken
Type: object
Show Source
Nested Schema : RefreshToken
Type: object
Show Source
Nested Schema : BaseToken
Type: object
Show Source
Example Response (application/json)
{
    "accessToken":{
        "jwtToken":"JSUzI1NiIsInR5cCI6IkpX9.eyJleHAiOjC01YzgwOW4iOiJqY29vcGVyIiwQ.Ay6FY2LRNslKXQHVw73JC5UyF7741cg",
        "expiry":900
    },
    "refreshToken":{
        "jwtToken":"eMUpQNFRZZTEybyJ9.eyJleHA1NjQ3fQ.L9GSU5Z7CI0mup_9fyQ80D4",
        "expiry":43200
    }
}

401 Response

Unauthorized
Back to Top