The POST /register endpoint allows you to register a provider and configure how interactions tags with that provider are handled.

Headers

Header parameters in Requests (Interactions API) apply to this endpoint.

Authorization scopes supported:

ScopeAccess granted
interactions:writeEntire endpoint

Request

Example Request

curl -L -X POST "https://***.api.newvoicemedia.com/interactions/register" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Accept: application/vnd.newvoicemedia.v1+json" \
-H "Content-Type: application/json" \
--data-raw "<JSON BODY>"

Example body

{
    "provider": "TestProviderName",
    "endpoint": "https://endpoint.example.com/routingendpoint",
    "headers":
    {
        "x-header1": "value1",
        "x-header2": "value2"
    },
    "agentactionspermitted":
    {
        "release" : 1,
        "hold" : 1,
        "transferToAgent": 1,
        "transferToRoute": 1
    }
}

Registering a provider and allowing release

{
    "provider": "TestProviderName",
    "agentactionspermitted":
    {
        "release" : 1
    }
}

Registering a provider with a callback endpoint

{
    "provider": "TestProviderName",
    "endpoint": "https://endpoint.example.com/routingendpoint",
    "headers":
    {
        "Authorization": "Basic <token>"
    }
}

Registering a provider without a callback endpoint

{
    "provider": "TestProviderName",
    "agentactionspermitted":
    {
        "release" : 1,
        "hold" : 1,
        "transferToAgent": 1,
        "transferToRoute": 1
    }
}

Callbacks

Providers registered will receive the following API callbacks.

Interaction assigned to Agent

[
  {
    "notification": "AssignToAgent",
    "objectid": "88381694",
    "notificationid": "d8016173-f069-4fa4-ac3e-2a4a1bae6ea8",
    "params": {
      "AccountName": "InsightsDemoEMEA",
      "Agent": "InsightsAgentEMEA",
      "AgentId": "5464"
    }
  }
]

Interaction released from the VCC Platform

[
  {
    "notification": "Release",
    "objectid": "88381694",
    "notificationid": "309eb0a5-6647-4b5c-9bf7-54a2b9a82768",
    "params": {
      "AccountName": "InsightsDemoEMEA"
    }
  }
]