cURL
curl --request POST \ --url https://api.pathstack.io/refresh \ --header 'Content-Type: application/json' \ --data '{ "sub": "<string>", "refresh_token": "<string>" }'
{ "data": { "token_type": "<string>", "expires_in": 123, "access_token": "<string>" } }
This endpoint takes the sub and a refresh token and returns an access token and refresh token.
The access token is to be used for all endpoints except for /token and /refresh.
"2024-03-26"
Successful Response
The response is of type object.
object