| GET | /auth/status | 
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Voice.Api.Authentication
Imports Voice.Api.Endpoints
Namespace Global
    Namespace Voice.Api.Authentication
        Public Enum DashboardPermissions
            ViewFiles
            ViewNotifications
            ViewSessions
            ViewEndpoints
            ViewReports
            ViewCustomers
            ViewFlows
            ViewCallCenter
        End Enum
        '''<Summary>
        '''Gets the current authenticated status or null
        '''</Summary>
        <Api(Description:="Gets the current authenticated status or null")>
        Public Partial Class GetAuthStatus
            Implements IGet
        End Class
        Public Partial Class UserInfo
            Public Overridable Property Id As String
            Public Overridable Property IsAuthenticated As Boolean
            Public Overridable Property FirstName As String
            Public Overridable Property LastName As String
            Public Overridable Property Name As String
            Public Overridable Property AvatarUrl As String
            Public Overridable Property EmailAddress As String
            Public Overridable Property Roles As List(Of String)
            Public Overridable Property AccountIds As List(Of String)
            Public Overridable Property AccountNames As List(Of String)
            Public Overridable Property ManagerAccess As UserManagerAccess
            Public Overridable Property DashboardPermissions As List(Of DashboardPermissions)
        End Class
    End Namespace
    Namespace Voice.Api.Endpoints
        Public Enum UserManagerAccess
            [ReadOnly]
            ReadWrite
            ReadWriteDelete
        End Enum
    End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /auth/status HTTP/1.1 Host: evovoice.io Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
	id: String,
	isAuthenticated: False,
	firstName: String,
	lastName: String,
	name: String,
	avatarUrl: String,
	emailAddress: String,
	roles: 
	[
		String
	],
	accountIds: 
	[
		String
	],
	accountNames: 
	[
		String
	],
	managerAccess: ReadOnly,
	dashboardPermissions: 
	[
		ViewFiles
	]
}