Skip to main content
POST
/
user
/
refresh
Exchange Refresh Token
curl --request POST \
  --url https://api.sternrockcapital.com/user/refresh \
  --header 'Content-Type: application/json' \
  --data '{
  "refreshToken": "<string>"
}'
{
  "email": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "role": "admin",
  "sip": {
    "sipHost": "<string>",
    "sipPassword": "<string>",
    "sipUsername": "<string>"
  },
  "token": {
    "refreshToken": "<string>",
    "refreshTokenExpire": 123,
    "token": "<string>",
    "tokenExpire": 123
  },
  "username": "<string>"
}

Body

application/json

Refresh token payload

refreshToken
string

Response

OK

email
string

Email is the user's registered email address.

id
string<uuid>

ID is the unique identifier of the authenticated user.

role
enum<string>

Role is the role of the user

Available options:
admin,
agent,
user,
sales
sip
object

Sip is the sip credentials of the user

token
object

Token contains the access and refresh tokens for session management.

username
string

Username is the user's chosen display name.