Authentication

Manage authentication.

Retrieve metadata.

get

Retrieve system metadata information. If the optional domain query parameter is specified, the relevant tenant metadata information will be returned together. System metadata:

  • web_domain

  • private_ipv4

  • public_ipv4

  • enable_ipv6

  • private_ipv6

  • public_ipv6

  • primary_dns_server

  • secondary_dns_server

  • enable_dataflow Tenant metadata:

  • name

  • domain

  • website

  • avatar_url

  • enable_ms365_integration

  • ms365_authorization_endpoint

Query parameters
domainstringOptional

Use the domain query parameter to retrieve just a subset of a collection.

Responses
200

OK

application/json
get
/info

Sign in with credentials

post

Sign in with credentials

Query parameters
qrbooleanOptionalDefault: false
Body
usernamestring · min: 1 · max: 64Required

The user's account name.
Only letters, numbers, and the following special characters can be added: underscore, dash, single quote, and period (_, -, ', and .).
Username cannot start or end with period (.).
admin, system, administrator, and root are reserved names for system admin only with case ignored.

passwordstringRequired

The password of user.

domainstring · min: 1 · max: 280Optional

The SIP domain of tenant.
It is usually a fully qualified domain name (FQDN). If there is no FQDN, you can also use the IP address of the PBX server as the SIP domain. The SIP domain name is only used for SIP message authentication and does not require analysis.

Responses
200

OK

application/json
Responseone of
or
post
/auth/sign_in

Sign in with social account

post

Sign in with social account

Path parameters
providerstringRequired

The name of IdP provider. Currently only supports microsoft.

Body
domainstring · min: 1 · max: 280Required

The SIP domain of tenant.
It is usually a fully qualified domain name (FQDN). If there is no FQDN, you can also use the IP address of the PBX server as the SIP domain. The SIP domain name is only used for SIP message authentication and does not require analysis.

callback_urlstringRequired

The callback url for authentication flow.

Responses
200

OK

application/json
post
/auth/sign_in/{provider}

Sign out from system.

post

Sign out from system.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

No content

post
/auth/sign_out

No content

Send OTP to email.

post

Request to send OTP to email.

Body
tokenstringRequired

The session token in authentication flow.

Responses
200

OK

No content

post
/auth/send_otp

No content

Verify OTP from email.

post

Request to verify OTP from email.

Body
tokenstringRequired

The session token in authentication flow.

codestringRequired

The OTP code in authentication flow.

Responses
200

OK

No content

post
/auth/verify_otp

No content

Initiate authentication forget password flow

post

Initiate authentication forget password flow.

Body
domainstring · min: 1 · max: 280Required

The SIP domain of tenant.
It is usually a fully qualified domain name (FQDN). If there is no FQDN, you can also use the IP address of the PBX server as the SIP domain. The SIP domain name is only used for SIP message authentication and does not require analysis.

usernamestring · min: 1 · max: 64Required

The user's account name.
Only letters, numbers, and the following special characters can be added: underscore, dash, single quote, and period (_, -, ', and .).
Username cannot start or end with period (.).
admin, system, administrator, and root are reserved names for system admin only with case ignored.

callback_urlstringRequired

The callback url for authentication flow.

Responses
200

OK

No content

post
/auth/forget_password

No content

Reset password with session token.

post

Reset password with session token.

Body
tokenstringRequired

The session token in authentication flow.

new_passwordstringRequired

The password of user.

Responses
200

OK

No content

post
/auth/reset_password

No content

Refresh the access token.

post

Refresh the access token.

Body
refresh_tokenstringRequired

The refresh token.

Responses
200

OK

application/json
post
/auth/refresh_token

Get the authentication information of the logged-in user.

get

Get the authentication information of the logged-in user.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

application/json
get
/auth/user

Get login status of current session

get

Get login status of current session.

Responses
200

OK

application/json
get
/login

Login into system

post

Login with username and password.

Body
usernamestring · min: 1 · max: 64Required

The user's account name.
Only letters, numbers, and the following special characters can be added: underscore, dash, single quote, and period (_, -, ', and .).
Username cannot start or end with period (.).
admin, system, administrator, and root are reserved names for system admin only with case ignored.

passwordstringRequired

The password of user.

domainstring · min: 1 · max: 280Optional

The SIP domain of tenant.
It is usually a fully qualified domain name (FQDN). If there is no FQDN, you can also use the IP address of the PBX server as the SIP domain. The SIP domain name is only used for SIP message authentication and does not require analysis.

Responses
200

OK

No content

post
/login

No content

login with Microsoft Identity Provider by Authorization Code Flow

post

login with Microsoft Identity Provider by Authorization Code Flow.

Body
domainstring · min: 1 · max: 280Required

The SIP domain of tenant.
It is usually a fully qualified domain name (FQDN). If there is no FQDN, you can also use the IP address of the PBX server as the SIP domain. The SIP domain name is only used for SIP message authentication and does not require analysis.

Responses
200

OK

No content

post
/login/by_microsoft

No content

Log out from system

post

Logs out current session.

Responses
post
/logout

No content

Last updated