Refresh tokens can be exchanged for access tokens without a customer reauthorizing the application. These tokens should be protected like passwords! You will obtain a refresh token in the same response as an access token.
Unlike other requests to the Tradier API, this request only returns JSON due to the OAuth 2.0 specification and for compatibility with most OAuth clients.
Due to the OAuth specification, this API endpoint uses HTTP Basic Authentication. Your application client Id will serve as your username and the client secret the password. You can learn more about HTTP Basic Authentication on Wikipedia or directly reference the specification.
Header | Required | Values/Example | Default | |
---|---|---|---|---|
Content-Type | Required | application/x-www-form-urlencoded | ||
Authorization | Required | Basic lhQOWo0RzJUOWc6Z== | ||
Basic HTTP Authentication. Username: Application client Id, Password: Application client secret |
Parameter | Type | Param Type | Required | Values/Example | Default |
---|---|---|---|---|---|
grant_type | Body | String | Required | refresh_token | |
Value MUST be set to "refresh_token". | |||||
refresh_token | Body | String | Required | o0d897fusdnjfo28yoi2noi23098j | |
The refresh token to exchange. |