Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Request parameters

Header parameters

...

Required The accept header describes the content types that the response can return. The content-type of the Interactions API’s responses is always JSON format so you must set the accept header to accept JSON. You must also specify the version of the API you are using. For information about specifying the version, see Versioning (Interactions API) for more information.

Example application/vnd.newvoicemedia.v1+json

...

  • a HTTP/1.1 413 status code with the following message:
{
    "message":"Payload Too Large"
}

or

  • a HTTP/1.1 417 status code with the following message:
{
   "message":"Request size limit exceeded"
}

Example request

$ curl -X POST -H "Accept: application/vnd.newvoicemedia.v1+json" -H "Authorization: bearer 24d80e703a037349cb4818cf7ec695cc" -d '{
  "provider": "CrmIntegration",
  "requests":
  [
      {
          "action": "dispatch",
          "requestid": "8762187187",
          "externalid": "ObjectId_001",
          "route": "CrmCallRouting",
          "linkeddata":
          [
              {"type": "clid", "value": "+44123456789"},
              {"type": "url", "label": "Click me", "value": "http://foo.bar.com"},
              {"type": "object", "owner":"Crm", "key":"Contact", "value": "500ea8787a87s87s"}
          ],
          "routingdata":
          {
              "interactiontype" : "nonlive"
          }
      }
  ]
}
' "https://***.api.newvoicemedia.com/interactions/Invoke"
HTTP/1.1 100 Continue