Session management (/oauth/session/)

The resource is designed to obtain information about the current active sessions of PBX users and manage them.

Description of data structures

Name

Type

Description

Name

Type

Description

Name

Type

Description

Name

Type

Description

client_id

long

The unique identifier of the client.

user_id

long

Unique user ID

app_id

string

Application Unique ID

id

string

Unique session ID

expires

string

Session end date

 

GET /client/{client_id}/oauth/session/

Get active sessions

Parameters URL

Name

Type

Name

Type

client_id

string

Request parameters

Name

Type

Name

Type

user_id

array [integer]

Response fields

Name

Type

Name

Type

expires

string

user_id

integer

app_id

string

id

string


GET /user/oauth/session/

Get current session

Response fields

Name

Type

Name

Type

expires

string

app_id

string

id

string

DELETE /client/{client_id}/oauth/session/{session_id}

Force end session

Parameters URL

Name

Type

Name

Type

Name

Type

Name

Type

client_id

string

session_id

string