Renovar Token (Refresh)
curl --request POST \
--url https://beta-jackson.safest.com.br/api/seguros/auth/refresh \
--header 'Content-Type: application/json' \
--data '
{
"refresh_token": "seu_refresh_token_aqui"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({refresh_token: 'seu_refresh_token_aqui'})
};
fetch('https://beta-jackson.safest.com.br/api/seguros/auth/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://beta-jackson.safest.com.br/api/seguros/auth/refresh",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'refresh_token' => 'seu_refresh_token_aqui'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"response": {
"access_token": "novo_token_aqui.1234567890",
"token_type": "Bearer",
"expires_in": 1800,
"expires_at": "2026-02-13T19:00:00+00:00"
}
}{
"success": false,
"response": "Refresh token inválido ou expirado."
}API Reference
Renovar Token (Refresh)
Use o refresh_token para obter um novo access_token quando o atual expirar.
O refresh_token expira em 7 dias.
POST
/
seguros
/
auth
/
refresh
Renovar Token (Refresh)
curl --request POST \
--url https://beta-jackson.safest.com.br/api/seguros/auth/refresh \
--header 'Content-Type: application/json' \
--data '
{
"refresh_token": "seu_refresh_token_aqui"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({refresh_token: 'seu_refresh_token_aqui'})
};
fetch('https://beta-jackson.safest.com.br/api/seguros/auth/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://beta-jackson.safest.com.br/api/seguros/auth/refresh",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'refresh_token' => 'seu_refresh_token_aqui'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"response": {
"access_token": "novo_token_aqui.1234567890",
"token_type": "Bearer",
"expires_in": 1800,
"expires_at": "2026-02-13T19:00:00+00:00"
}
}{
"success": false,
"response": "Refresh token inválido ou expirado."
}⌘I

