POST
/
refresh
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>"
  }
}

Headers

x-api-version
string
default:2024-03-26
Example:

"2024-03-26"

Body

application/json
sub
string
required

The sub (subject) field returned in the login response.

refresh_token
string
required

Response

200
application/json
Successful Response
data
object
required

Successful response payload