Skip to main content
POST
/
api
/
auth
/
refresh
Renovar tokens con refresh token
curl --request POST \
  --url https://api.raul.ugps.io/api/auth/refresh \
  --header 'Content-Type: application/json' \
  --data '
{
  "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
'
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.new-access-token",
  "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.new-refresh-token"
}

Body

application/json
refresh_token
string
required

Refresh token

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Response

Tokens renovados

token
string
required

Nuevo JWT access token

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.new-access-token"

refresh_token
string
required

Nuevo refresh token

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.new-refresh-token"