{
  "info": {
    "_postman_id": "1603f9fa-2611-4006-b095-cd2d1e1d253b",
    "name": "Dstny Service Account API",
    "description": "Dstny Service Account API. Fill in the collection variables first: client_id, client_secret, sa_username, sa_password and domain. Dstny gives you the first four when the service account is created. Then run Get access token. All other requests use the saved token. Full documentation: https://dstny.se/hubfs/dstny-service-account-api.html",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{access_token}}",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "Get access token",
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "// Saves the JWT so every other request in this collection uses it.",
              "if (pm.response.code === 200) {",
              "  pm.collectionVariables.set('access_token', pm.response.json().access_token);",
              "}"
            ]
          }
        }
      ],
      "request": {
        "auth": {
          "type": "noauth"
        },
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/x-www-form-urlencoded"
          }
        ],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "client_id",
              "value": "{{client_id}}"
            },
            {
              "key": "client_secret",
              "value": "{{client_secret}}"
            },
            {
              "key": "grant_type",
              "value": "password"
            },
            {
              "key": "username",
              "value": "{{sa_username}}"
            },
            {
              "key": "password",
              "value": "{{sa_password}}"
            }
          ]
        },
        "url": {
          "raw": "{{tokenBase}}/auth/realms/dstnyse-skondal-dstnyse/protocol/openid-connect/token",
          "host": [
            "{{tokenBase}}"
          ],
          "path": [
            "auth",
            "realms",
            "dstnyse-skondal-dstnyse",
            "protocol",
            "openid-connect",
            "token"
          ]
        },
        "description": "Run this first. The token is valid for 3600 seconds. When another request returns 401, run it again."
      }
    },
    {
      "name": "ACD/Attendant Group",
      "item": [
        {
          "name": "List groups",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/acd-attendant-group/v1/:domain/:user",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "acd-attendant-group",
                "v1",
                ":domain",
                ":user"
              ],
              "query": [
                {
                  "key": "ignoreStatistics",
                  "value": "",
                  "disabled": true,
                  "description": "Whether statistics shall be included, or not. If omitted, statistics will be included."
                },
                {
                  "key": "ignoreAgents",
                  "value": "",
                  "disabled": true,
                  "description": "Whether agents shall be included, or not. If omitted, agents will be included."
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user's organization"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user's id"
                }
              ]
            },
            "description": "Scope: ACD/attendant queues\n\nList all ACD/ACD Light/Attendant groups for a user. <br>Login state, availability and activity for all agents/attendants belonging to respective group are also included."
          }
        },
        {
          "name": "Log in/Log out",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/acd-attendant-group/:domain/:group/agents/:agent",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "acd-attendant-group",
                ":domain",
                ":group",
                "agents",
                ":agent"
              ],
              "query": [
                {
                  "key": "action",
                  "value": "",
                  "disabled": false,
                  "description": "Required. The action to perform"
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization the ACD/Attendant group belongs to"
                },
                {
                  "key": "group",
                  "value": "",
                  "description": "The ID of the ACD/Attendant group"
                },
                {
                  "key": "agent",
                  "value": "",
                  "description": "The username of the agent to log in or out, including domain part"
                }
              ]
            },
            "description": "Scope: ACD/attendant queues\n\nTo log in/log out an agent or attendant of an ACD/Attendant group"
          }
        }
      ]
    },
    {
      "name": "Queue Statistics",
      "item": [
        {
          "name": "Get organization queue statistics",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/queue/statistics/v1/list/:domain",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "queue",
                "statistics",
                "v1",
                "list",
                ":domain"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain queue statistics shall be fetched for"
                }
              ]
            },
            "description": "Scope: Queue statistics\n\nRetrieve the queue statistics for an organization."
          }
        },
        {
          "name": "Get queue statistics for queue",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/queue/statistics/v1/:domain/:queueId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "queue",
                "statistics",
                "v1",
                ":domain",
                ":queueId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the group queue statistics shall be fetched for"
                },
                {
                  "key": "queueId",
                  "value": "",
                  "description": "The id of the group queue statistics shall be fetched for"
                }
              ]
            },
            "description": "Scope: Queue statistics\n\nRetrieve queue statistics for a distribution group."
          }
        }
      ]
    },
    {
      "name": "User Line",
      "item": [
        {
          "name": "Get user lines",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/line/:domain/:user",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "line",
                ":domain",
                ":user"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The organization domain"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The username of the user"
                }
              ]
            },
            "description": "Scope: User info\n\nGet the list of all available lines that user can use"
          }
        },
        {
          "name": "Get active user line",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/line/:domain/:user/status",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "line",
                ":domain",
                ":user",
                "status"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The organization domain"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The username of the user"
                }
              ]
            },
            "description": "Scope: User info\n\nGet the current active caller ID for a user."
          }
        },
        {
          "name": "Update user line",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/line/:domain/:user/status",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "line",
                ":domain",
                ":user",
                "status"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The organization domain"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The username of the user"
                }
              ]
            },
            "description": "Scope: User info\n\nUpdate the current active caller ID for user.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"OFFICE_FIXED\",\n  \"groupId\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Call Control",
      "item": [
        {
          "name": "Add call to ad-hoc conference",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/addtoconference/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "addtoconference",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user performing the call"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call that should be the ad-hoc conference call"
                }
              ]
            },
            "description": "Scope: Call control\n\nThe call specified by {callId} will be transformed into an ad-hoc conference call, if it is not already, and the call specified in the request body will be added to the conference.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stateToken\": 487345453,\n  \"targetCallId\": \"dd33dxw9\",\n  \"targetStateToken\": 63772\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Alternate call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/alternate/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "alternate",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user having the two calls"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call that should be put on hold"
                }
              ]
            },
            "description": "Scope: Call control\n\nPlace an existing call on hold and then retrieves a previously held call. This can also be used to place an existing call on hold and then answer to an alerting call at the same device.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stateToken\": 487345453,\n  \"targetCallId\": \"dd33dxw9\",\n  \"targetStateToken\": 63772\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Answer call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/answer/:domain/:userId/:callId/:deviceId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "answer",
                ":domain",
                ":userId",
                ":callId",
                ":deviceId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user answering the call"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call to answer"
                },
                {
                  "key": "deviceId",
                  "value": "",
                  "description": "The device used to answer the call"
                }
              ]
            },
            "description": "Scope: Call control\n\nAnswer a call that is in the ringing state using a specific device. Note that it's not possible to perform this action for all devices. The call state will show which devices that can be used.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"targetUrl\": \"https://example.com/callback?id=34ff\",\n  \"targetId\": \"my_callback_id\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Terminate call",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/delete/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "delete",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user deleting the call"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call to delete"
                }
              ]
            },
            "description": "Scope: Call control\n\nHanging up (clear) an established call, reject (decline) a call that is in the ringing state or cancel an outbound ringing call."
          }
        },
        {
          "name": "Hold call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/hold/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "hold",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user having the call to hold"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call to hold"
                }
              ]
            },
            "description": "Scope: Call control\n\nPut the call on hold. Depending on the configuration of the server, music on hold may be played to the other party.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stateToken\": 487345453\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Leave ad-hoc conference",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/leaveconference/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "leaveconference",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user having the ad-hoc conference call"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the ad-hoc conference call"
                }
              ]
            },
            "description": "Scope: Call control\n\nLeaving an ad-hoc conference allowing any remaining participants to continue the call. To terminate the conference, use the method to terminate a call."
          }
        },
        {
          "name": "Make call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/make/:domain/:userId/:deviceId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "make",
                ":domain",
                ":userId",
                ":deviceId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user performing the call"
                },
                {
                  "key": "deviceId",
                  "value": "",
                  "description": "The device used to perform the call"
                }
              ]
            },
            "description": "Scope: Call control\n\nSetup up call from a particular device. The device ID can be fetched from the UserDeviceInfo API. Successful completion of this request does not mean that the call is established, just that the device has successfully initiated the call.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"destination\": \"tel:+1444344\",\n  \"userLine\": {\n    \"type\": \"OFFICE_FIXED\",\n    \"groupId\": 0\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Make consultation call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/makeconsultation/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "makeconsultation",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user performing the call"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The Id of the call that should be re-used"
                }
              ]
            },
            "description": "Scope: Call control\n\nSetup up call re-using an existing call leg putting that call on-hold/in the background. This variant of the make call is useful for devices that do not support parallel calls. It's only possible to have one background call per device. If the device supports parallel calls, this API behaves the same way as makeCall. Successful completion of this request does not mean that the call is established, just that the device has successfully initiated the call. The make consultation call API is not supported if the existing call is transcoded.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"destination\": \"tel:+1444344\",\n  \"userLine\": {\n    \"type\": \"OFFICE_FIXED\",\n    \"groupId\": 0\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Move call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/move/:domain/:userId/:callId/:deviceId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "move",
                ":domain",
                ":userId",
                ":callId",
                ":deviceId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user having the call to move"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call to move"
                },
                {
                  "key": "deviceId",
                  "value": "",
                  "description": "The device to move the call to"
                }
              ]
            },
            "description": "Scope: Call control\n\nMove the established call to another available device for the user. Should the call be on hold, then it will remain on hold in the new device.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Mute call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/mute/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "mute",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user having the call to mute"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call to mute"
                }
              ]
            },
            "description": "Scope: Call control\n\nMute an ongoing call. Depending on the type of call this action may or may not be available.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stateToken\": 487345453\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Park call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/park/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "park",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user having the call to park"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call to park"
                }
              ]
            },
            "description": "Scope: Call control\n\nPark the call and make it available for other users, or the same user, to pick it up. The call is no longer belonging to the user, meaning that the Call ID is removed from the user's state. ",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stateToken\": 487345453\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Pick up ringing call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/pickupringing/:domain/:userId/:deviceId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "pickupringing",
                ":domain",
                ":userId",
                ":deviceId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user picking up the call"
                },
                {
                  "key": "deviceId",
                  "value": "",
                  "description": "The device to use to pickup the call"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The call ID of the ringing call to pickup"
                }
              ]
            },
            "description": "Scope: Call control\n\nPickup a ringing call for another user using the specified device. This is not an end-user API and can only be accessed using service accounts. When using the service account, the call pickup permissions configured at the organization level do not apply.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"targetUrl\": \"https://example.com/callback?id=34ff\",\n  \"targetId\": \"my_callback_id\",\n  \"publicTarget\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Pick up SIP call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/pickup/:domain/:userId/:deviceId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "pickup",
                ":domain",
                ":userId",
                ":deviceId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user picking up the call"
                },
                {
                  "key": "deviceId",
                  "value": "",
                  "description": "The device to use to pickup the call"
                }
              ]
            },
            "description": "Scope: Call control\n\nPickup a SIP call from a queue or a ringing call for another user using the specified device. The SIP dialog Id of the call must be known and the user must be configured to pick up another user calls.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"targetUrl\": \"https://example.com/callback?id=34ff\",\n  \"targetId\": \"my_callback_id\",\n  \"publicTarget\": true,\n  \"callId\": \"425928@bobster.example.org\",\n  \"toTag\": \"7743\",\n  \"fromTag\": \"6472\",\n  \"earlyOnly\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Remove participant from ad-hoc conference",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/removefromconference/:domain/:userId/:callId/:participantId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "removefromconference",
                ":domain",
                ":userId",
                ":callId",
                ":participantId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user performing the call"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the ad-hoc conference call"
                },
                {
                  "key": "participantId",
                  "value": "",
                  "description": "The ID of the participant to remove"
                }
              ]
            },
            "description": "Scope: Call control\n\nRemoving the participant {participantId} from the ad-hoc conference specified by {callId}.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stateToken\": 487345453\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Resume call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/resume/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "resume",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user having the call to resume"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call to resume"
                }
              ]
            },
            "description": "Scope: Call control\n\nResume a call that previously was put on hold.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stateToken\": 487345453\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Send DTMF digits",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/senddtmf/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "senddtmf",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user sending the DTMF digits"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call to send the DTMF digits in"
                }
              ]
            },
            "description": "Scope: Call control\n\nA string of DTMF digits is sent within the call.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stateToken\": 487345453,\n  \"digits\": \"5\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Transfer call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/singlesteptransfer/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "singlesteptransfer",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user having the call to transfer"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call to transfer"
                }
              ]
            },
            "description": "Scope: Call control\n\nTransfer a call to a new destination. The call will be automatically unheld if it is currently on hold.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stateToken\": 487345453,\n  \"blind\": true,\n  \"type\": \"CAMP_ON\",\n  \"destination\": \"tel:+15555\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Transfer call to another call that belongs to the user",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/transfer/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "transfer",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user having the call to transfer"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call to transfer"
                }
              ]
            },
            "description": "Scope: Call control\n\nA user having two separate calls can use the transfer method to connect the two parties the user is talking to. The two calls does not need to be active on the same device. Should either of the calls be on hold, it will automatically be unheld as the calls are connected. An attempt to update the caller Id to the transferred party will be made for the target call but depending on the device of the remote party, this may not succeed. ",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stateToken\": 487345453,\n  \"targetCallId\": \"dd33dxw9\",\n  \"waitForAnswer\": false,\n  \"targetStateToken\": 832211\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Unmute call",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/control/v1/unmute/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "control",
                "v1",
                "unmute",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The user having the call to unmute"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call to unmute"
                }
              ]
            },
            "description": "Scope: Call control\n\nUnmute a call that previously was muted.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"stateToken\": 487345453\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Call State",
      "item": [
        {
          "name": "Read call state",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/state/v1/snapshot/call/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "state",
                "v1",
                "snapshot",
                "call",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call"
                }
              ]
            },
            "description": "Scope: Call control\n\nFetch a snapshot of the current state of a call."
          }
        },
        {
          "name": "Read user state",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/state/v1/snapshot/:domain/:userId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "state",
                "v1",
                "snapshot",
                ":domain",
                ":userId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                }
              ]
            },
            "description": "Scope: Call control\n\nFetch a snapshot of the current state of a user."
          }
        },
        {
          "name": "Subscribe for state changes for user call",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "text/event-stream"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/state/v1/sse/call/:domain/:userId/:callId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "state",
                "v1",
                "sse",
                "call",
                ":domain",
                ":userId",
                ":callId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The ID of the user"
                },
                {
                  "key": "callId",
                  "value": "",
                  "description": "The ID of the call"
                }
              ]
            },
            "description": "Scope: Call control\n\nThe method will produce a SSE stream of call state objects."
          }
        },
        {
          "name": "Subscribe for remote SIP dialog events",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "text/event-stream"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/state/v1/sse/remote/:domain/:userId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "state",
                "v1",
                "sse",
                "remote",
                ":domain",
                ":userId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The ID of the user"
                }
              ]
            },
            "description": "Scope: Call control\n\nThe method will produce a SSE stream of remote SIP dialog events in the format described in RFC4235.\n\nUse it to build your own event stream of SIP dialog state for a user, for example for a wallboard or a CTI client."
          }
        },
        {
          "name": "Subscribe for state changes for user",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "text/event-stream"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/call/state/v1/sse/:domain/:userId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "call",
                "state",
                "v1",
                "sse",
                ":domain",
                ":userId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The ID of the user"
                }
              ]
            },
            "description": "Scope: Call control\n\nThe method will produce a SSE stream of user state objects."
          }
        }
      ]
    },
    {
      "name": "Diversion",
      "item": [
        {
          "name": "Get diversion rules",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/diversion/:domain/:userId/rules",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "diversion",
                ":domain",
                ":userId",
                "rules"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                }
              ]
            },
            "description": "Scope: Call setup\n\nRetrieves a user's diversion rules."
          }
        },
        {
          "name": "Set diversion rules",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/diversion/:domain/:userId/rules",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "diversion",
                ":domain",
                ":userId",
                "rules"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                }
              ]
            },
            "description": "Scope: Call setup\n\nUpdates the user's defined diversion rules for available lines.<br>Both POST and PUT can be used in the request.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"user\": {\n    \"domain\": \"example.com\",\n    \"userid\": \"albo\"\n  },\n  \"userDiversionLineRules\": [\n    {\n      \"lineNumber\": \"+123460000\",\n      \"lineOrderType\": \"PRIMARY\",\n      \"lineType\": \"OFFICE_FIXED\",\n      \"userDiversionRules\": [\n        {\n          \"diversionRoutingRulesType\": \"CFWD_ALL\"\n        },\n        {\n          \"phoneNumber\": \"+12345679\",\n          \"diversionRoutingRulesType\": \"CFWD_ON_BUSY\"\n        },\n        {\n          \"diversionRoutingRulesType\": \"CFWD_ON_BUSY_IN_CALL\"\n        },\n        {\n          \"diversionRoutingRulesType\": \"CFWD_ON_BUSY_IN_CALL_OR_UNREACHABLE\"\n        },\n        {\n          \"diversionRoutingRulesType\": \"CFWD_ON_BUSY_OR_UNREACHABLE\"\n        },\n        {\n          \"phoneNumber\": \"+12345678\",\n          \"diversionRoutingRulesType\": \"CFWD_NO_ANSWER\"\n        },\n        {\n          \"diversionRoutingRulesType\": \"CFWD_NO_ANSWER_OR_UNREACHABLE\"\n        },\n        {\n          \"diversionRoutingRulesType\": \"CFWD_UNREACHABLE\"\n        }\n      ]\n    },\n    {\n      \"lineNumber\": \"+123467890\",\n      \"lineOrderType\": \"SECONDARY\",\n      \"lineType\": \"OFFICE_MOBILE\",\n      \"userDiversionRules\": [\n        {\n          \"diversionRoutingRulesType\": \"CFWD_ALL\"\n        },\n        {\n          \"diversionRoutingRulesType\": \"CFWD_ON_BUSY\"\n        },\n        {\n          \"diversionRoutingRulesType\": \"CFWD_ON_BUSY_IN_CALL\"\n        },\n        {\n          \"diversionRoutingRulesType\": \"CFWD_ON_BUSY_IN_CALL_OR_UNREACHABLE\"\n        },\n        {\n          \"diversionRoutingRulesType\": \"CFWD_ON_BUSY_OR_UNREACHABLE\"\n        },\n        {\n          \"phoneNumber\": \"+12345678\",\n          \"diversionRoutingRulesType\": \"CFWD_NO_ANSWER\"\n        },\n        {\n          \"diversionRoutingRulesType\": \"CFWD_NO_ANSWER_OR_UNREACHABLE\"\n        },\n        {\n          \"diversionRoutingRulesType\": \"CFWD_UNREACHABLE\"\n        }\n      ]\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete diversion rule",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/diversion/:domain/:userId/rules",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "diversion",
                ":domain",
                ":userId",
                "rules"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                }
              ]
            },
            "description": "Scope: Call setup\n\nDeletes a user's defined diversion rules."
          }
        },
        {
          "name": "Get diversion by line order type",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/diversion/:domain/:userId/rules/:lineOrderType",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "diversion",
                ":domain",
                ":userId",
                "rules",
                ":lineOrderType"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                },
                {
                  "key": "lineOrderType",
                  "value": "",
                  "description": "User line order for which diversion details shall to be fetched. Possible values are:<br>PRIMARY - Primary line<br>SECONDARY - Secondary line "
                }
              ]
            },
            "description": "Scope: Call setup\n\nRetrieves a user's diversion rules for specified line order type."
          }
        },
        {
          "name": "Set diversion for line order",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/diversion/:domain/:userId/rules/:lineOrderType",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "diversion",
                ":domain",
                ":userId",
                "rules",
                ":lineOrderType"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                },
                {
                  "key": "lineOrderType",
                  "value": "",
                  "description": "User line order for which diversion shall be set. Possible values are:<br>PRIMARY - Primary line<br>SECONDARY - Secondary line "
                }
              ]
            },
            "description": "Scope: Call setup\n\nCreates or updates a user's defined diversion rule for a pre-defined diversion rule type.<br>Both PUT and POST can be used in the request.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"userDiversionLineRules\": [\n    {\n      \"userDiversionRules\": [\n        {\n          \"phoneNumber\": \"+12345679\",\n          \"diversionRoutingRulesType\": \"CFWD_ON_BUSY\"\n        }\n      ]\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete diversion rule for line order",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/diversion/:domain/:userId/rules/:lineOrderType",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "diversion",
                ":domain",
                ":userId",
                "rules",
                ":lineOrderType"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                },
                {
                  "key": "lineOrderType",
                  "value": "",
                  "description": "User line order for which diversion rules shall be deleted. Possible values are:<br>PRIMARY - Primary line<br>SECONDARY - Secondary line"
                }
              ]
            },
            "description": "Scope: Call setup\n\nDeletes a user's defined diversion rule for a line order type."
          }
        },
        {
          "name": "Get diversion for rule type",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/diversion/:domain/:userId/rules/:lineOrderType/:diversionRuleType",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "diversion",
                ":domain",
                ":userId",
                "rules",
                ":lineOrderType",
                ":diversionRuleType"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                },
                {
                  "key": "lineOrderType",
                  "value": "",
                  "description": "User line order for which diversion details shall be fetched. Possible values are:<br>PRIMARY - Primary line<br>SECONDARY - Secondary line "
                },
                {
                  "key": "diversionRuleType",
                  "value": "",
                  "description": "The diversion rule type for which details shall be fetched."
                }
              ]
            },
            "description": "Scope: Call setup\n\nRetrieves a user's diversion rules for a specific line order and rule type."
          }
        },
        {
          "name": "Set diversion for rule type",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/diversion/:domain/:userId/rules/:lineOrderType/:diversionRuleType",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "diversion",
                ":domain",
                ":userId",
                "rules",
                ":lineOrderType",
                ":diversionRuleType"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                },
                {
                  "key": "lineOrderType",
                  "value": "",
                  "description": "User line order for which diversion rules shall be set. Possible values are:<br>PRIMARY - Primary line<br>SECONDARY - Secondary line "
                },
                {
                  "key": "diversionRuleType",
                  "value": "",
                  "description": "The diversion rule type details shall be set for."
                }
              ]
            },
            "description": "Scope: Call setup\n\nCreates or updates a user's defined diversion rule for a pre-defined diversion rule type.<br>Both POST and PUT can be used in the request.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phoneNumber\": \"+12345679\",\n  \"diversionRoutingRulesType\": \"CFWD_ON_BUSY\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete diversion for rule",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/diversion/:domain/:userId/rules/:lineOrderType/:diversionRuleType",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "diversion",
                ":domain",
                ":userId",
                "rules",
                ":lineOrderType",
                ":diversionRuleType"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                },
                {
                  "key": "lineOrderType",
                  "value": "",
                  "description": "User line order for which diversion rules shall be deleted. Possible values are:<br>PRIMARY - Primary line<br>SECONDARY - Secondary line "
                },
                {
                  "key": "diversionRuleType",
                  "value": "",
                  "description": "The diversion rule type for which diversion shall be deleted"
                }
              ]
            },
            "description": "Scope: Call setup\n\nDeletes a user's defined diversion rule for a pre-defined diversion rule type."
          }
        },
        {
          "name": "Get active diversion number",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/diversion/:domain/:userId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "diversion",
                ":domain",
                ":userId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                }
              ]
            },
            "description": "Scope: Call setup\n\nRetrieves a user's active diversion number."
          }
        },
        {
          "name": "Set diversion number",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/diversion/:domain/:userId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "diversion",
                ":domain",
                ":userId"
              ],
              "query": [
                {
                  "key": "phoneNumber",
                  "value": "",
                  "disabled": false,
                  "description": "Required. The diversion number"
                },
                {
                  "key": "activityScoped",
                  "value": "",
                  "disabled": true,
                  "description": "Set to true if the diversion number should be cleared after a change of presence activity."
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                }
              ]
            },
            "description": "Scope: Call setup\n\nSets a user's active diversion number.<br>Both POST and PUT can be used in the request."
          }
        },
        {
          "name": "Delete diversion number",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/diversion/:domain/:userId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "diversion",
                ":domain",
                ":userId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": "The username of the user accessing the API"
                }
              ]
            },
            "description": "Scope: Call setup\n\nClears a user's active diversion number."
          }
        }
      ]
    },
    {
      "name": "CDR",
      "item": [
        {
          "name": "List webhooks",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/cdr/v1/hooks/:domain",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "cdr",
                "v1",
                "hooks",
                ":domain"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                }
              ]
            },
            "description": "Scope: Reports\n\nFetch a list of registered webhooks."
          }
        },
        {
          "name": "Register webhook",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/cdr/v1/hooks/:domain",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "cdr",
                "v1",
                "hooks",
                ":domain"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                }
              ]
            },
            "description": "Scope: Reports\n\nRegister a new webhook for an organization.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": 434356,\n  \"target_url\": \"https://example.com/callback?id=34ff\",\n  \"type\": \"CALL\",\n  \"ongoing\": true,\n  \"public\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get webhook",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/cdr/v1/hooks/:domain/:id",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "cdr",
                "v1",
                "hooks",
                ":domain",
                ":id"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "id",
                  "value": "",
                  "description": "The id of the webhook"
                }
              ]
            },
            "description": "Scope: Reports\n\nRetrieve a webhook registered for an organization."
          }
        },
        {
          "name": "Update webhook",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/cdr/v1/hooks/:domain/:id",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "cdr",
                "v1",
                "hooks",
                ":domain",
                ":id"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "id",
                  "value": "",
                  "description": "The id of the webhook"
                }
              ]
            },
            "description": "Scope: Reports\n\nUpdate an existing webhook.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": 434356,\n  \"target_url\": \"https://example.com/callback?id=34ff\",\n  \"type\": \"CALL\",\n  \"ongoing\": true,\n  \"public\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete webhook",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/cdr/v1/hooks/:domain/:id",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "cdr",
                "v1",
                "hooks",
                ":domain",
                ":id"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "id",
                  "value": "",
                  "description": "The id of web hook"
                }
              ]
            },
            "description": "Scope: Reports\n\nDelete an existing webhook."
          }
        },
        {
          "name": "Get CDRs",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/cdr/v1/cdrs/:domain/:cdrType",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "cdr",
                "v1",
                "cdrs",
                ":domain",
                ":cdrType"
              ],
              "query": [
                {
                  "key": "spanStart",
                  "value": "",
                  "disabled": true,
                  "description": "The start of the time span in UTC milliseconds (Epoch time)"
                },
                {
                  "key": "spanEnd",
                  "value": "",
                  "disabled": true,
                  "description": "The end of the time span in UTC milliseconds  (Epoch time)"
                },
                {
                  "key": "download",
                  "value": "",
                  "disabled": true,
                  "description": "Set to 'true' to download the file as a Content-Disposition attachment"
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization for which to fetch CDRs"
                },
                {
                  "key": "cdrType",
                  "value": "",
                  "description": "The CDR type"
                }
              ]
            },
            "description": "Scope: Reports\n\nRetrieves CDRs in CSV format."
          }
        }
      ]
    },
    {
      "name": "Contacts",
      "item": [
        {
          "name": "Get contacts distribution",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/contacts/headers/v1/:domain/:user",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "contacts",
                "headers",
                "v1",
                ":domain",
                ":user"
              ],
              "query": [
                {
                  "key": "orderby",
                  "value": "",
                  "disabled": true,
                  "description": "The primary field for sorting the result (ascending order). Default is lastname. The other sortable field will be used as secondary sort expression."
                },
                {
                  "key": "excludeFnrs",
                  "value": "",
                  "disabled": true,
                  "description": "Exclude function numbers from the result by providing this parameter with value 'true'. Otherwise, function numbers are included."
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API."
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The username of the user accessing the API."
                }
              ]
            },
            "description": "Scope: Contact search\n\nGet information on alphabetic classification of all possible contacts for a user. "
          }
        },
        {
          "name": "Get a page of contacts",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/contacts/page/v1/:domain/:user",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "contacts",
                "page",
                "v1",
                ":domain",
                ":user"
              ],
              "query": [
                {
                  "key": "index",
                  "value": "",
                  "disabled": true,
                  "description": "The index number of the first item to get. Must be a positive integer. Default is 1 (first item)."
                },
                {
                  "key": "items",
                  "value": "",
                  "disabled": true,
                  "description": "The number of items to get. Must be an integer in the range 1-200. Default is 20."
                },
                {
                  "key": "orderby",
                  "value": "",
                  "disabled": true,
                  "description": "The primary field for sorting the result (ascending order). Default is lastname. The other sortable field will be used as secondary sort expression."
                },
                {
                  "key": "excludeFnrs",
                  "value": "",
                  "disabled": true,
                  "description": "Exclude function numbers from the result by providing this parameter with value 'true'. Otherwise, function numbers are included."
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API."
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The username of the user accessing the API."
                }
              ]
            },
            "description": "Scope: Contact search\n\nGet a subset of all possible contacts, internal and external, for a user."
          }
        },
        {
          "name": "List contacts",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/contacts/list/:domain/:user",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "contacts",
                "list",
                ":domain",
                ":user"
              ],
              "query": [
                {
                  "key": "query",
                  "value": "",
                  "disabled": true,
                  "description": "An optional query consisting of one or many search terms, separated with space. If provided, contacts where any word in a searchable field starts with a search term will be returned. If not stated, only user's favourites will be returned."
                },
                {
                  "key": "maxResults",
                  "value": "",
                  "disabled": true,
                  "description": "Limit the amount of results when searching with a provided filter. If omitted, a maximum of 25 matching contacts will be returned."
                },
                {
                  "key": "dontIncludeFnrs",
                  "value": "",
                  "disabled": true,
                  "description": "Exclude function numbers from the search result by providing this parameter with value 'true'. Otherwise, function numbers are included."
                },
                {
                  "key": "includeBlocked",
                  "value": "",
                  "disabled": true,
                  "description": "Include blocked external contacts in the search result by providing this parameter with value 'true'. Otherwise, blocked external contacts are not included."
                },
                {
                  "key": "includeFields",
                  "value": "",
                  "disabled": true,
                  "description": "Include directory fields of directory contacts by providing this parameter with value 'true'. Note that including fields will increase the response time. Default is false."
                },
                {
                  "key": "includeMatchInfo",
                  "value": "",
                  "disabled": true,
                  "description": "Include information on how contacts have matched the stated query by providing this parameter with value 'true'. Ignored if no query is provided. Default is false."
                },
                {
                  "key": "excludeType",
                  "value": "",
                  "disabled": true,
                  "description": "Exclude contacts of these types from the search result. If any excluded contact type is provided, dontIncludeFnrs is ignored."
                },
                {
                  "key": "searchtype",
                  "value": "",
                  "disabled": true,
                  "description": "The type of search to conduct. Default is NORMALIZED. <br/>With EXACT search: <ul><li>a string search term will match as prefix as stated</li><li>a numeric search term will either match as prefix as stated, or match a phone number in clean number form (08-334 -> 08334)</li></ul>With NORMALIZED search stated terms match as above, and also: <ul><li>a string search term can match as prefix in normalized form (Ã¥->a, Ã©->e)</li><li>a numeric search term can match a phone number in a converted form (according to number conversion rules)</li></ul>"
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API."
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The username of the user accessing the API."
                }
              ]
            },
            "description": "Scope: Contact search\n\nGet a list of matching contacts for a user. By default contacts are ordered alphabetically by name. The user of the API is expected to reorder them as needed."
          }
        },
        {
          "name": "Lookup contact by number",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/contacts/lookup/v1/:domain/:user/:number",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "contacts",
                "lookup",
                "v1",
                ":domain",
                ":user",
                ":number"
              ],
              "query": [
                {
                  "key": "includeType",
                  "value": "",
                  "disabled": true,
                  "description": "The type of contacts to include in the lookup. Multiple types can be stated. If not provided, <b>directory</b>, <b>external</b> and <b>number</b> are included."
                },
                {
                  "key": "maxHits",
                  "value": "",
                  "disabled": true,
                  "description": "The number of contacts to return. If not provided, default is 25 contacts."
                },
                {
                  "key": "searchType",
                  "value": "",
                  "disabled": true,
                  "description": "The type of lookup to conduct. Valid values are:<br/><b>EXACT</b> - contacts with a number that equals the provided number are included. <br/><b>NORMALIZED</b> - contacts with a number that equals the provided number, or a variant thereof (according to number conversion rules), are included.<br/>If not provided, normalized lookup is the default."
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization."
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The username of the user to lookup contacts for."
                },
                {
                  "key": "number",
                  "value": "",
                  "description": "The number to lookup."
                }
              ]
            },
            "description": "Scope: Contact search\n\nLookup matching contacts for a user by number. Contacts will be looked up in federated organizations if there are no matches in the user's own organization. Exchange contacts are only searched if there are no other matches. </br>Note that the returned order of contacts is not defined. The user of the API is expected to reorder them as needed."
          }
        }
      ]
    },
    {
      "name": "ACD Groups",
      "item": [
        {
          "name": "Get ACD group",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/fnr/v1/:domain/acd/:number",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "fnr",
                "v1",
                ":domain",
                "acd",
                ":number"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization the function number belongs to"
                },
                {
                  "key": "number",
                  "value": "",
                  "description": "The phone number of the function number"
                }
              ]
            },
            "description": "Scope: Function numbers\n\nFetches information about an ACD function number.<br>For example of values, please look into ACD Light and Attendant group as well."
          }
        }
      ]
    },
    {
      "name": "Attendant Groups",
      "item": [
        {
          "name": "Get Attendant group",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/fnr/v1/:domain/attendant/:number",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "fnr",
                "v1",
                ":domain",
                "attendant",
                ":number"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization the function number belongs to"
                },
                {
                  "key": "number",
                  "value": "",
                  "description": "The phone number of the function number"
                }
              ]
            },
            "description": "Scope: Function numbers\n\nFetches information about an Attendant function number.<br>For example of values, please look into ACD and ACD Light group as well."
          }
        }
      ]
    },
    {
      "name": "Function Numbers",
      "item": [
        {
          "name": "List function numbers",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/fnr/:domain",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "fnr",
                ":domain"
              ],
              "query": [
                {
                  "key": "type",
                  "value": "",
                  "disabled": true,
                  "description": "The function number type<br>If a faulty value is given, all function numbers will be returned."
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                }
              ]
            },
            "description": "Scope: Function numbers, Organization provisioning\n\nRetrieve all function numbers"
          }
        }
      ]
    },
    {
      "name": "Organization Properties",
      "item": [
        {
          "name": "Get localized activity labels",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/organization/v1/presence/activity/:domain",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "organization",
                "v1",
                "presence",
                "activity",
                ":domain"
              ],
              "query": [
                {
                  "key": "language",
                  "value": "",
                  "disabled": true,
                  "description": "The language in which to get the localized labels. If omitted, the organization default language is used. The language parameter should contain correct ISO 639-1 language code, i.e. use 'sv' to get Swedish or en-us to get English (United States) resource bundles"
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                }
              ]
            },
            "description": "Scope: Organization provisioning\n\nRetrieve activity presence states with localized labels."
          }
        },
        {
          "name": "Get localized role labels",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/organization/v1/presence/role/:domain",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "organization",
                "v1",
                "presence",
                "role",
                ":domain"
              ],
              "query": [
                {
                  "key": "language",
                  "value": "",
                  "disabled": true,
                  "description": "The language in which to get the localized labels. If omitted, the organization default language is used. The language parameter should contain correct ISO 639-1 language code, i.e. use 'sv' to get Swedish or en-us to get English (United States) resource bundles"
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                }
              ]
            },
            "description": "Scope: Organization provisioning\n\nRetrieve presence roles with localized labels."
          }
        }
      ]
    },
    {
      "name": "User Groups",
      "item": [
        {
          "name": "Get user group",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/organization/:domain/userGroups/:groupName",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "organization",
                ":domain",
                "userGroups",
                ":groupName"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "groupName",
                  "value": "",
                  "description": "The name of the user group"
                }
              ]
            },
            "description": "Scope: Group provisioning, Organization provisioning\n\nGet details of a user group in an organization."
          }
        },
        {
          "name": "Get user group with users",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/organization/:domain/userGroups/:groupName/users",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "organization",
                ":domain",
                "userGroups",
                ":groupName",
                "users"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "groupName",
                  "value": "",
                  "description": "The name of the user group"
                }
              ]
            },
            "description": "Scope: Group provisioning, Organization provisioning\n\nRetrieve user group info including users"
          }
        },
        {
          "name": "List user groups",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/organization/:domain/userGroups",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "organization",
                ":domain",
                "userGroups"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                }
              ]
            },
            "description": "Scope: Group provisioning, Organization provisioning\n\nRetrieve all user groups of an organization."
          }
        }
      ]
    },
    {
      "name": "Service Monitor",
      "item": [
        {
          "name": "Unregister for call state changes for all users",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/service/monitor/v1/callstate/:domain/:targetId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "service",
                "monitor",
                "v1",
                "callstate",
                ":domain",
                ":targetId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "targetId",
                  "value": "",
                  "description": "The unique ID of the webhook that should be unregistered"
                }
              ]
            },
            "description": "Scope: Call control\n\nUnregister an existing call state webhook registered for all users."
          }
        },
        {
          "name": "Unregister for presence state changes for all users",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/service/monitor/v1/presence/:domain/:targetId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "service",
                "monitor",
                "v1",
                "presence",
                ":domain",
                ":targetId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "targetId",
                  "value": "",
                  "description": "The unique ID of the webhook that should be unregistered"
                }
              ]
            },
            "description": "Scope: User info\n\nUnregister an existing presence state webhook registered for all users."
          }
        },
        {
          "name": "Unregister user config updates webhook",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/service/monitor/v1/userconfig/:domain/:userId/:targetId",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "service",
                "monitor",
                "v1",
                "userconfig",
                ":domain",
                ":userId",
                ":targetId"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "userId",
                  "value": "",
                  "description": ""
                },
                {
                  "key": "targetId",
                  "value": "",
                  "description": "The unique id of the webhook that should be unregistered"
                }
              ]
            },
            "description": "Scope: User info\n\nUnregister an existing webhook."
          }
        },
        {
          "name": "Register for call state changes for all users",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/service/monitor/v1/callstate/:domain",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "service",
                "monitor",
                "v1",
                "callstate",
                ":domain"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                }
              ]
            },
            "description": "Scope: Call control\n\nRegister a webhook where notifications about new and deleted calls for all users will be pushed. Only CTI enabled users are handled, and the registration is valid for all the users devices.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"targetUrl\": \"https://example.com/callback?id=34ff\",\n  \"targetId\": \"434356\",\n  \"publicTarget\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Register for presence state changes for all users",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/service/monitor/v1/presence/:domain",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "service",
                "monitor",
                "v1",
                "presence",
                ":domain"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                }
              ]
            },
            "description": "Scope: User info\n\nRegister a webhook where notifications about presence state changes for all users will be pushed.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"targetUrl\": \"https://example.com/callback?id=34ff\",\n  \"targetId\": \"434356\",\n  \"publicTarget\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Register for user config changes for all users",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/service/monitor/v1/userconfig/:domain",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "service",
                "monitor",
                "v1",
                "userconfig",
                ":domain"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                }
              ]
            },
            "description": "Scope: User info\n\nRegister a webhook where notifications when there are any changes in any user's active caller ID, diversion number or device configuration.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"targetUrl\": \"https://example.com/callback?id=34ff\",\n  \"targetId\": \"434356\",\n  \"publicTarget\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "User Information",
      "item": [
        {
          "name": "Get photo",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "image/jpeg"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/info/:domain/:user/photo",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "info",
                ":domain",
                ":user",
                "photo"
              ],
              "query": [
                {
                  "key": "prefWidth",
                  "value": "",
                  "disabled": true,
                  "description": "The preferred width of the photo"
                },
                {
                  "key": "prefHeight",
                  "value": "",
                  "disabled": true,
                  "description": "The preferred height of the photo"
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user"
                }
              ]
            },
            "description": "Scope: User info\n\nGet the photo associated with a user."
          }
        },
        {
          "name": "Upload photo",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/info/:domain/:user/photo",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "info",
                ":domain",
                ":user",
                "photo"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user"
                }
              ]
            },
            "description": "Scope: User info\n\nUpload a photo to be associated with a user. Both PUT and POST methods are accepted for this operation. <br>The photo shall be added in the HTTP body."
          }
        },
        {
          "name": "Delete photo",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/info/:domain/:user/photo",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "info",
                ":domain",
                ":user",
                "photo"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user"
                }
              ]
            },
            "description": "Scope: User info\n\nDelete photo associated with the user."
          }
        },
        {
          "name": "Get presence state",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/info/:domain/:user/presence",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "info",
                ":domain",
                ":user",
                "presence"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user accessing the API"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user accessing the API"
                }
              ]
            },
            "description": "Scope: User info\n\nGet the presence state for the accessing user."
          }
        },
        {
          "name": "Update presence state",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/info/:domain/:user/presence",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "info",
                ":domain",
                ":user",
                "presence"
              ],
              "query": [
                {
                  "key": "updateMode",
                  "value": "",
                  "disabled": true,
                  "description": "How the presence items note, role and activity should be updated. Valid values are: <BR/>CHANGE - will update only items that are stated and changed<BR/>CLEAR - will update items that are changed, items not stated will be cleared or reset to default<BR/>OVERRIDE - will update all items, items not stated will be cleared or reset to default<BR/>If not provided, CHANGE is the default mode. "
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user to be updated"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user to be updated"
                }
              ]
            },
            "description": "Scope: User info\n\nUpdate the presence state of a user.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"note\": \"Presenting at the conference\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get activity",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "*/*"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/info/:domain/:user/activity",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "info",
                ":domain",
                ":user",
                "activity"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user"
                }
              ]
            },
            "description": "Scope: User info\n\nGet the ID of the user's current activity."
          }
        },
        {
          "name": "Get activity end-time",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "*/*"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/info/:domain/:user/activityexpiration",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "info",
                ":domain",
                ":user",
                "activityexpiration"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user"
                }
              ]
            },
            "description": "Scope: User info\n\nGet end-time of the user's current activity. Returns 'never' if no end-time is set."
          }
        },
        {
          "name": "Get availability state",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "*/*"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/info/:domain/:user/available",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "info",
                ":domain",
                ":user",
                "available"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user"
                }
              ]
            },
            "description": "Scope: User info\n\nGet the availability state for the user. The operation returns \"true\" if the user is available, and \"false\" otherwise."
          }
        },
        {
          "name": "Get presence note",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "*/*"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/info/:domain/:user/note",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "info",
                ":domain",
                ":user",
                "note"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user"
                }
              ]
            },
            "description": "Scope: User info\n\nGet presence note of a user."
          }
        },
        {
          "name": "Get role",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "*/*"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/info/:domain/:user/role",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "info",
                ":domain",
                ":user",
                "role"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user"
                }
              ]
            },
            "description": "Scope: User info\n\nGet the role of a user."
          }
        },
        {
          "name": "Set activity",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "*/*"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/info/:domain/:user/activity/:activity",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "info",
                ":domain",
                ":user",
                "activity",
                ":activity"
              ],
              "query": [
                {
                  "key": "available",
                  "value": "",
                  "disabled": true,
                  "description": "The new availability of the user"
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user"
                },
                {
                  "key": "activity",
                  "value": "",
                  "description": "The new activity ID"
                }
              ]
            },
            "description": "Scope: User info\n\nSet the activity of the user."
          }
        },
        {
          "name": "Set activity end-time",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "*/*"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/info/:domain/:user/activityexpiration/:expires",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "info",
                ":domain",
                ":user",
                "activityexpiration",
                ":expires"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user"
                },
                {
                  "key": "expires",
                  "value": "",
                  "description": "The activity end-time in ISO-8601 format, or 'never' if the activity should not have an expiry time"
                }
              ]
            },
            "description": "Scope: User info\n\nSet a user's current activity's end-time."
          }
        },
        {
          "name": "Set presence note",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "*/*"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/user/info/:domain/:user/note/:note",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "user",
                "info",
                ":domain",
                ":user",
                "note",
                ":note"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the user"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user"
                },
                {
                  "key": "note",
                  "value": "",
                  "description": "The new note"
                }
              ]
            },
            "description": "Scope: User info\n\nSet the presence note for a user."
          }
        }
      ]
    },
    {
      "name": "User Administration",
      "item": [
        {
          "name": "Get user",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/useradmin/v1/:domain/:user",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "useradmin",
                "v1",
                ":domain",
                ":user"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user"
                }
              ]
            },
            "description": "Scope: User provisioning\n\nRead details of a user in an organization."
          }
        },
        {
          "name": "Update user setting",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json-patch+json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/useradmin/v1/:domain/:user",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "useradmin",
                "v1",
                ":domain",
                ":user"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user ID of the user"
                }
              ]
            },
            "description": "Scope: User provisioning\n\nUpdate a certain setting for a user in an organization.\n\nTypical use is to keep user data in sync with another system, such as name, department, cost center, language and time zone. The same call can also change admin profile, administrative roles, licences, the two-factor mobile number and billing information. Only enable the User provisioning scope for integrations that need it, and let the integration send only the settings it manages.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"op\": \"replace\",\n    \"path\": \"/email\",\n    \"value\": \"alice.smith001@example.com\"\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "List users",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/admin/useradmin/list/v1/:domain",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "admin",
                "useradmin",
                "list",
                "v1",
                ":domain"
              ],
              "query": [
                {
                  "key": "query",
                  "value": "",
                  "disabled": true,
                  "description": "If provided, only users whose name or user ID match the provided query are included."
                }
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "The domain of the organization"
                }
              ]
            },
            "description": "Scope: User provisioning\n\nList all users in an organization, optionally matching a stated filter."
          }
        }
      ]
    },
    {
      "name": "User tickets",
      "item": [
        {
          "name": "Create a user ticket",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/tickets/v1/:domain/:user",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "tickets",
                "v1",
                ":domain",
                ":user"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "Your organization's domain."
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user the ticket is for."
                }
              ]
            },
            "description": "Scope: User provisioning\n\nCreates an API ticket for one user. Use the ticket as a bearer token against the Core User API at the returned `baseUrl`. Needs the User provisioning scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"expires\": 3600,\n  \"ticketName\": \"example\",\n  \"allowedApis\": [\n    \"COMMUNICATION_LOG\",\n    \"DISTRIBUTION_GROUP\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete a user ticket",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{apiBase}}/tickets/v1/:domain/:user/:ticketName",
              "host": [
                "{{apiBase}}"
              ],
              "path": [
                "tickets",
                "v1",
                ":domain",
                ":user",
                ":ticketName"
              ],
              "variable": [
                {
                  "key": "domain",
                  "value": "{{domain}}",
                  "description": "Your organization's domain."
                },
                {
                  "key": "user",
                  "value": "",
                  "description": "The user the ticket is for."
                },
                {
                  "key": "ticketName",
                  "value": "",
                  "description": "The name you gave the ticket."
                }
              ]
            },
            "description": "Scope: User provisioning\n\nDeletes a user ticket by name. Do this when the integration is finished with it."
          }
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "tokenBase",
      "value": "https://keycloak.eu-nordics-sto-production.dstny.d4sp.com",
      "type": "string"
    },
    {
      "key": "apiBase",
      "value": "https://api.eu-nordics-sto-production.dstny.d4sp.com/api-admin/realm/dstnyse-skondal-dstnyse/fwd/api",
      "type": "string"
    },
    {
      "key": "client_id",
      "value": "",
      "type": "string"
    },
    {
      "key": "client_secret",
      "value": "",
      "type": "string"
    },
    {
      "key": "sa_username",
      "value": "",
      "type": "string"
    },
    {
      "key": "sa_password",
      "value": "",
      "type": "string"
    },
    {
      "key": "domain",
      "value": "",
      "type": "string"
    },
    {
      "key": "access_token",
      "value": "",
      "type": "string"
    }
  ]
}