Skip to content

Authorizing the APIs

Auth Token API

Host URL for Optima Admin Console environments will be as given below:

Environment {host-url}
Dev optima-dev.optumrx.com

Get Access Token

POST - https://{host-url}/admin-console/auth/v2/token

Request Header:

client: master

Request Body:

{
  "username": "string",
  "password": "string"
}

Note

<--tenant-name-->, username and password of master will be used to generate auth token.

Response:

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


Important Notes before using Module APIs

  1. Auth Token API will require header field in the request, which is common for all api's i.e. master.

  2. All the admin console APIs, will require a header field with their Request, whose key will be client and the value will be tenant-name (which will be provided to the team when they onboard in Optima Platform).

  3. All the admin console APIs, EXCLUDING Auth Token API, are authorized and require Authorization Bearer Token.