Get User Lines


This request returns a list of phone line relations where the current user is part of.
This call can only be used in a system based on user based lines.

Resource

GET /me/user_lines

Parameters

Name Type Description

where

Where-clause
"where=member=value"
seperate by comma if you want to include multiple fields

Following where filters are available where=[selected filters]
-isCreatedForGroupChat=[boolean] : filter out lines that are created for group chats (true) or not (false).

Payload

None

Context

Authorization

User

Errors

Example

Request
GET https://xelion.nl/api/v1/master/me/user_lines
Response
{
    "data": [
        {
            "object": {
                "line": {
                    "externalNumber": "",
                    "callerName": "wes",
                    "associatedAddressable": {
                        "iconId": "2007902",
                        "commonName": "Antwoordapparaat",
                        "oid": "1650975",
                        "objectType": "Person"
                    },
                    "commonName": "Antwoordapparaat",
                    "oid": "1057453",
                    "objectType": "XCCPhoneLine"
                },
                "orderNumber": 1,
                "skillNumber": 0,
                "incoming": false,
                "outgoing": true,
                "editable": "INCOMINGANDOUTGOING",
                "oid": "2008373",
                "objectType": "XCCConnectedUser"
            },
            "links": [
                {
                    "rel": "self",
                    "method": "GET"
                }
            ]
        },
        {
            "object": {
                "line": {
                    "callerName": "",
                    "commonName": "Support",
                    "oid": "1651614",
                    "objectType": "XCCPhoneLine"
                },
                "orderNumber": 2,
                "skillNumber": 10,
                "incoming": false,
                "outgoing": false,
                "editable": "INCOMINGANDOUTGOING",
                "oid": "2008369",
                "objectType": "XCCConnectedUser"
            },
            "links": [
                {
                    "rel": "self",
                    "method": "GET"
                }
            ]
        },
        {
            "object": {
                "line": {
                    "callerName": "",
                    "commonName": "Sales",
                    "oid": "1651626",
                    "objectType": "XCCPhoneLine"
                },
                "orderNumber": 3,
                "skillNumber": 0,
                "incoming": true,
                "outgoing": false,
                "editable": "INCOMINGANDOUTGOING",
                "oid": "2010387",
                "objectType": "XCCConnectedUser"
            },
            "links": [
                {
                    "rel": "self",
                    "method": "GET"
                }
            ]
        },
        {
            "object": {
                "line": {
                    "callerName": "",
                    "commonName": "testline1234",
                    "oid": "2010391",
                    "objectType": "XCCPhoneLine"
                },
                "orderNumber": 4,
                "skillNumber": 0,
                "incoming": true,
                "outgoing": false,
                "editable": "INCOMINGANDOUTGOING",
                "oid": "2010408",
                "objectType": "XCCConnectedUser"
            },
            "links": [
                {
                    "rel": "self",
                    "method": "GET"
                }
            ]
        }
    ],
    "meta": {
        "links": [
            {
                "rel": "refresh",
                "href": "https://xelion.nl/api/v1/master/me/user_lines",
                "method": "GET"
            }
        ]
    }
}