Skip to main content
POST
/
user
/
login
Login User
curl --request POST \
  --url https://api.sternrockcapital.com/user/login \
  --header 'Content-Type: application/json' \
  --data '{
  "password": "<string>",
  "username": "<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

User login payload

password
string
username
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.