Skip to content

Operator / User Authentication

View as Markdown
POST
/auth/login
curl --request POST \
--url https://pbx.ring2all.com/api/v1/auth/login \
--header 'Content-Type: application/json' \
--data '{ "username": "admin@carrier.ring2all.com", "password": "Secr3tP@ssw0rd!" }'

Authenticates user credentials and returns a signed JWT access token and refresh token.

Media typeapplication/json
object
username
required
string
Example
admin@carrier.ring2all.com
password
required
string format: password
Example
Secr3tP@ssw0rd!

Authentication successful

Media typeapplication/json
object
token
string
expires_in
integer
user
object
id
integer
tenant_id
integer
role
string
Example
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_in": 86400,
"user": {
"id": 1,
"tenant_id": 10,
"role": "superadmin"
}
}

Invalid credentials