Subscribe to a New Stream

You can get real-time data, via HTTP SSE notifications, available in Talkdesk Live (real-time live monitoring dashboard of a Talkdesk account activity).

The live dashboard metrics is available here.

Scope

live-subscriptions:write

live-subscriptions:read

Request Body

{
  "queries": [
    {
      "id": "7b8deafb74bf490288220fd3543b76af",
      "metadata": {
        "name": "arrived_contacts"
      },
      "params": [],
      "filters": {
        "ring_groups": [
          "agents"
        ],
        "range": {
          "type": "interval",
          "interval": 86400
        }
      }
    }
  ]
}
  • The response provides the representation of the newly created subscription with the description of its queries.
  • The relation stream provides the URL for an HTTP SSE client to connect, including the token of a subscription stream resource.
Language
Click Try It! to start a request and see the response here!