POST
Use the refresh_token grant when you want to exchange a valid refresh token for a new access token.

Body

application/json
grant_type
enum<string>
default:client_credentials
required

Use client_credentials to exchange a client assertion, or refresh_token to obtain a new access token.

Available options:
client_credentials,
refresh_token
Example:

"client_credentials"

client_id
string
required

This is your OAuth Client ID which can be gotten from your app page on the dashboard.

institutionId
string
required

This is your institution ID.

client_assertion_type
string
required

This is the client assertion type.

Example:

"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"

client_assertion
string
required

This is the client assertion you generated earlier.

refresh_token
string

Pass your refresh token when grant_type is refresh_token.

Response

200 - application/json

Token exchange completed successfully.

statusCode
number
required
Example:

200

message
string
required
Example:

"Institution OAuth created successfully."

data
object
required

The fields returned depend on the grant type used. refreshToken is returned for client_credentials and omitted for refresh_token.