Create Access Token

Creates a new Access Token.

Request

POST/auth/v1/oauth/token

Parameters


audiencestring :requiredThe unique identifier of the target API you want to access. In this case, this should be set to: https://platform.wellviasolutions.com


grantTypestring :requiredSpecifies the protocol that should be used to get an access token. In this case, this should be set to: client_credentials.


clientIdstring :requiredThe public identifier for your application, provided to you by Recuro Health.


clientSecretstring :requiredThe secret that is used to authenticate your application, provided to you by Recuro Health.


userFirstNamestring:requiredThe first name of the user your app is authenticating.


userLastNamestring:requiredThe last name of the user your app is authenticating.


userDateOfBirthdate:requiredThe date of birth of the user your app is authenticating.


userIdstring:requiredThe unique identifier of the user your app is authenticating. This value can be the ClientUserId or Recuro Health's UserId.

Example


curl -XPOST 'https://platform.wellviasolutions.com/auth/v1/oauth/token' \
    -d 'audience=https://platform.wellviasolutions.com'
    -d 'grantType=client_credentials'
    -d 'clientId=<YOUR-CLIENT-ID>'
    -d 'clientSecret=<YOUR-CLIENT-SECRET>'
    -d 'userFirstName=John'
    -d 'userLastName=Doe'
    -d 'userDateOfBirth=01/01/1975'
    -d 'userId=mbr_f528cd3dd40746c7a9ab5b2961b03511'

Response

An access token object if a valid request was provided.