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.
The sub (subject) field returned in the login response.
Successful Response
Successful response payload
Show child attributes