Skip to content

Authorizing the APIs

Auth Token API

Host URL for Optima Gateway environments will be as given below:

Environment {host-url}
Dev optima-dev.optumrx.com
Stage optima-stage.optumrx.com
Prod optima-prod.optumrx.com

Get Access Token

POST - https://{host-url}/gateway/auth/token

Request Header:

tenant: <--tenant-name-->

Request Body:

{
  "username": "<--username-->",
  "password": "<--password-->"
}

Note

<--tenant-name-->, <--username--> and <--password--> will be provided to the respective Team (Admin) at the time of On-boarding Optima.

Response:

{
  "message": "AUTHORIZED",
  "accessToken": "Bearer <--bearer-token-->",
  "expiresIn": <--seconds-->
}


Important Notes before using Module APIs

  1. All the Optima Gateway APIs, INCLUDING Auth Token API, will require a common header field with their Request, whose key will be tenant and the value will be tenant-name (which will be provided to the team when they onboard in Optima Platform).
  2. All the Optima Gateway APIs, EXCLUDING Auth Token API, are authorized and require Authorization Bearer Token.