Config API Version 2 SIP Phone System

Introduction

Infinity Tracking can provide a hosted phone system on SIP (Session Initiation Protocol).

This section describes the API routes available to configure domains, users, groups and queues in the system.

List SIP Domains

Lists the SIP Domains you have access to.

Request:

GET /config/v2/sip/domains

Response:

HTTP 200 - OK
SIP Domain rows.

Read SIP Domain

Returns the properties for a particular SIP Domain.

URL Path Params

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}

Response:

HTTP 200 - OK
SIP Domain row.

Update SIP Domain

Updates a particular SIP domain

URL Path Params

POST Params

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}

Response:

HTTP 204 - NO CONTENT

List SIP Users

Lists the SIP Users in a domain.

URL Path Params

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/users

Response:

HTTP 200 - OK
SIP User rows.

Read SIP User

Returns the properties for a particular SIP User.

URL Path Params

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/users/{USER SPECIFIER}

Response:

HTTP 200 - OK
SIP User row.

Create SIP User

Create a new SIP User.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/users

URL Path Params

POST Params

Response:

HTTP 201 - CREATED

Update SIP User

Update the properties for a particular SIP User.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/users/{USER SPECIFIER}

URL Path Params

POST Params

Response:

HTTP 204 - NO CONTENT

Delete SIP User

Delete a particular SIP User.

Request:

DELETE /config/v2/sip/domains/{DOMAIN SPECIFIER}/users/{USER SPECIFIER}

URL Path Params

Response:

HTTP 204 - NO CONTENT

List SIP Groups

Lists the SIP Groups for a domain.

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/groups

URL Path Params

Response:

HTTP 200 - OK
SIP Group rows.

Read SIP Group

Returns the properties for a particular SIP Group.

URL Path Params

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/groups/{GROUP SPECIFIER}

Response:

HTTP 200 - OK
SIP Group row.

Create SIP Group

Create a new SIP Group.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/groups

URL Path Params

POST Params

callerNameFormat

The formatting string can contain any of the variables defined below using brackets

E.g. for ‘displayName - srcPhoneNumber’ use ‘{displayName} - {srcPhoneNumber}’. This will be compiled to ‘Group display name - 0123456789’

Response:

HTTP 201 - CREATED

Update SIP Group

Update a SIP Group.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/groups/{GROUP SPECIFIER}

URL Path Params

POST Params

Response:

HTTP 204 - NO CONTENT

Delete SIP Group

Delete a particular SIP Group.

Request:

DELETE /config/v2/sip/domains/{DOMAIN SPECIFIER}/groups/{GROUP SPECIFIER}

URL Path Params

Response:

HTTP 204 - NO CONTENT

List SIP Group Users

Lists the Users who are members of a SIP Group for a domain.

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/groups/{GROUP SPECIFIER}/users

URL Path Params

Response:

HTTP 200 - OK
SIP Group User rows.

Add SIP Group Users

Add Users to a SIP Group for a domain.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/groups/{GROUP SPECIFIER}/users

URL Path Params

POST Params

Response:

HTTP 204 - NO CONTENT

Delete SIP Group Users

Delete Users from a SIP Group for a domain.

Request:

DELETE /config/v2/sip/domains/{DOMAIN SPECIFIER}/groups/{GROUP SPECIFIER}/users

URL Path Params

POST Params

Response:

HTTP 204 - NO CONTENT

List PBX User Devices

Lists the PBX devices that a SIP user is associated with.

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/users/{USER SPECIFIER}/devices

URL Path Params

GET Params

Filter Fields

Any of the returned fields

Sort Fields

Any of the returned fields

Response:

Returns a list of all PBX devices that a user is associated with.

HTTP 200 - OK
{"userId":"1","pbxDeviceId":"1","user":"user.name","updateDatetime":"2001-01-01 00:00:00","pbxDeviceName":"deviceName 1"}
{"userId":"1","pbxDeviceId":"2","user":"user.name","updateDatetime":"2001-01-01 00:00:00","pbxDeviceName":"deviceName 2"}

Read PBX User Device

Reads a single PBX device that a SIP user is associated with.

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/users/{USER SPECIFIER}/devices/{DEVICE SPECIFIER}

URL Path Params

Response:

Returns a single PBX devices that a user is associated with.

HTTP 200 - OK
{"userId":"1","pbxDeviceId":"1","user":"user.name","updateDatetime":"2001-01-01 00:00:00","pbxDeviceName":"deviceName 1"}

Create PBX User Device

Creates a new PBX user device association with a SIP user.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/users/{USER SPECIFIER}/devices

URL Path Params

POST Params

Response:

Returns the HTTP 201 (Created) status code if successful.

HTTP 201 - CREATED

Returns the entire newly created PBX user device:

{"pbxDeviceId":"1","userId":"1","pbxDeviceToken":"432e2286a22f28a3e3a4d2dde"}

Delete PBX User Device

Deletes the association between PBX device and a SIP user.

Request:

DELETE /config/v2/sip/domains/{DOMAIN SPECIFIER}/users/{USER SPECIFIER}/devices/{DEVICE SPECIFIER}

URL Path Params

Response:

HTTP 204 - NO CONTENT

List SIP User Groups

Lists the groups for a SIP user for a domain.

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/users/{USER SPECIFIER}/groups

URL Path Params

GET Params

Filter Fields

Any of the returned fields

Sort Fields

Any of the returned fields

Response:

HTTP 200 - OK
SIP User Group rows.

Add SIP User Groups

Add groups to a SIP user for a domain.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/users/{USER SPECIFIER}/groups

URL Path Params

POST Params

Response:

HTTP 204 - NO CONTENT

List SIP queues

Lists the SIP queues for a domain.

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/queues

URL Path Params

GET Params

Filter Fields

Any of the returned fields

Sort Fields

Any of the returned fields

Response:

HTTP 200 - OK
SIP queue rows.

Read SIP queue

Returns the properties for a particular SIP queue.

URL Path Params

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/queues/{QUEUE SPECIFIER}

Response:

HTTP 200 - OK
SIP queue row.

Create SIP queue

Create a new SIP queue.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/queues

URL Path Params

POST Params

callerNameFormat

The formatting string can contain any of the variables defined below using brackets

E.g. for ‘displayName - srcPhoneNumber’ use ‘{displayName} - {srcPhoneNumber}’. This will be compiled to ‘queue display name - 0123456789’

Response:

HTTP 201 - CREATED

Update SIP queue

Updates a SIP queue.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/queues/{QUEUE SPECIFIER}

URL Path Params

POST Params

Response:

HTTP 204 - NO CONTENT

Delete SIP queue

Delete a particular SIP queue.

Request:

DELETE /config/v2/sip/domains/{DOMAIN SPECIFIER}/queues/{QUEUE SPECIFIER}

URL Path Params

Response:

HTTP 204 - NO CONTENT

List SIP queue members

Lists the members in a SIP queue.

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/queues/{QUEUE SPECIFIER}/members

URL Path Params

Response:

HTTP 200 - OK
SIP queue rows.

Read SIP queue member

Returns the properties for a particular SIP queue member.

URL Path Params

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/queues/{QUEUE SPECIFIER}/members/{QUEUE MEMBER SPECIFIER}

Response:

HTTP 200 - OK
SIP queue member row.

Create SIP queue member

Create a new SIP queue member.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/queues/{QUEUE SPECIFIER}/members

URL Path Params

POST Params

Response:

HTTP 201 - CREATED

Update SIP queue member

Updates a SIP queue member.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/queues/{QUEUE SPECIFIER}/members/{QUEUE MEMBER SPECIFIER}

URL Path Params

POST Params

Response:

HTTP 204 - NO CONTENT

Delete SIP queue member

Delete a particular SIP queue member.

Request:

DELETE /config/v2/sip/domains/{DOMAIN SPECIFIER}/queues/{QUEUE SPECIFIER}/members/{QUEUE MEMBER SPECIFIER}

URL Path Params

Response:

HTTP 204 - NO CONTENT

Set SIP queue member order

Sets the SIP queue member order.

Request:

PUT /config/v2/sip/domains/{DOMAIN SPECIFIER}/queues/{QUEUE SPECIFIER}/members/order

URL Path Params

POST Params

Response:

HTTP 204 - NO CONTENT

List SIP trusted networks

Lists the SIP trusted networks for a domain.

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/trustednetworks

URL Path Params

GET Params

Filter Fields

Any of the returned fields

Sort Fields

Any of the returned fields

Response:

HTTP 200 - OK
SIP trusted networks rows.

Read SIP trusted network

Returns the properties for a particular SIP trusted network.

URL Path Params

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/trustedNetworks/{TRUSTED NETWORK SPECIFIER}

Response:

HTTP 200 - OK
SIP trusted network row.

Create SIP trusted network

Create a new SIP trusted network.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/trustedNetworks

URL Path Params

POST Params

Response:

HTTP 201 - CREATED

Update SIP trusted network

Updates a SIP trusted network.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/trustedNetwork/{TRUSTED NETWORK SPECIFIER}

URL Path Params

POST Params

Response:

HTTP 204 - NO CONTENT

Delete SIP trusted network

Delete a particular SIP trusted network.

Request:

DELETE /config/v2/sip/domains/{DOMAIN SPECIFIER}/trustedNetwork/{TRUSTED NETWORK SPECIFIER}

URL Path Params

Response:

HTTP 204 - NO CONTENT

List PBX devices

Lists the SIP registered PBX devices.

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/devices

URL Path Params

GET Params

Filter Types

Sort Types

Same fields as Filter Types, see above.

Response:

List of details of PBX Devices

HTTP 200 - OK
{"pbxDeviceId":"1","pbxDeviceName":"My PBX Device 1","domainId":"1","deviceMacAddress":"10:20:30:1A:2B:3C","createDatetime":"2019-10-31 09:42:56","updateDatetime":"2019-10-31 09:50:06","userId":"11","user":"test.user"}
{"pbxDeviceId":"2","pbxDeviceName":"My PBX Device 2","domainId":"1","deviceMacAddress":"10:20:30:5C:4F:2A","createDatetime":"2019-10-31 14:41:10","updateDatetime":"2019-10-31 15:54:22","userId":"11","user":"test.user"}

Read PBX devices

Reads the SIP registered PBX device.

Request:

GET /config/v2/sip/domains/{DOMAIN SPECIFIER}/devices/{DEVICE SPECIFIER}

URL Path Params

Response:

Details of a specific PBX device

HTTP 200 - OK
{"pbxDeviceId":"1","pbxDeviceName":"My PBX Device 1","domainId":"1","deviceMacAddress":"10:20:30:1A:2B:3C","createDatetime":"2019-10-31 09:42:56","updateDatetime":"2019-10-31 09:50:06","userId":"11","user":"test.user"}

Create PBX device

Create a new PBX device.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/devices

URL Path Params

POST Params

Response:

HTTP 201 - CREATED
{"pbxDeviceId":"1"}

Update PBX device

Update given PBX device.

Request:

POST /config/v2/sip/domains/{DOMAIN SPECIFIER}/devices/{DEVICE SPECIFIER}

URL Path Params

POST Params

Response:

HTTP 204 - NO CONTENT

Delete PBX device

Delete given PBX device.

Request:

DELETE /config/v2/sip/domains/{DOMAIN SPECIFIER}/devices/{DEVICE SPECIFIER}

URL Path Params

Response:

HTTP 204 - NO CONTENT