Refresh Access Token

How to refresh the Access Token

post
Refresh Token

https://sec-id-api.securitize.io/v1/{clientId}/oauth2/refresh
Used to exchange provided refresh token for new accessToken. NOTE: Access token expires in 7days, refresh token is one time use and expires in 365 days.
Request
Response
Request
Path Parameters
clientId
required
string
Your application Client Id provided by Securitize
Headers
authorization
required
string
Your application secret provided by Securitize
Body Parameters
refreshToken
required
string
Code provided from Authentication flow on users browser
Response
200: OK
Returns new access token and a new refresh token
{
"investorId": "string",
"accessToken": "string",
"refreshToken": "string",
"expiration": "2020-05-23T18:52:03.415Z"
}
401: Unauthorized
{
"statusCode": 401,
"error": "Unauthorized",
"message": "Failed to authorize",
"details": null
}