Create Bulk Smart Links API (Beta)

📘

This API is currently available only for clients hosted in the AWS-USA data centre.

This API is used to create bulk smart links.

📘

Based on the domain that is assigned, the endpoint domain for your API varies. For more information, refer to the Know Your API Endpoints section.

Headers

The following table describes the request headers:

Request HeaderDescription
content-Typeapplication/json
AuthorizationAccess token in Bearer format

Example: Bearer $(key)

Request Example



[
{
  "longUrl": "https://touchstone1.webexcampaign.io/nextgen3",
  "domain": "ciscowebexcampaign6.com",
  "linkassetid":"4f5081f6def94c7386885d7408ffffa8",
  "redirectParam": "redirect",
  "encAlgo": "AES",
  "encPassKey": "testingtest@1234",
  "expiresOn": "2023-10-08T07:44:51.000Z",
  "expiryUrl": "https://touchstone1.webexcampaign.io/expired",
  "urlContext": {
    "msisdn": "123456789"
  },
  "referenceId": "6391b6da5481373783e33952"
},

{
  "longUrl": "https://touchstone1.webexcampaign.io/nextgen4",
  "domain": "ciscowebexcampaign6.com",
  "linkassetid":"4f5081f6def94c7386885d7408ffffb8",
  "redirectParam": "redirect",
  "encAlgo": "AES",
  "encPassKey": "testingtest@1234",
  "expiresOn": "2023-10-08T07:44:51.000Z",
  "expiryUrl": "https://touchstone1.webexcampaign.io/expired",
  "urlContext": {
    "msisdn": "123456789"
  },
  "referenceId": "6391b6da5481373783e33952"
},

{
  "longUrl": "https://touchstone1.webexcampaign.io/nextgen5",
  "domain": "ciscowebexcampaign6.com",
  "linkassetid":"4f5081f6def94c7386885d7408ffffc8",
  "redirectParam": "redirect",
  "encAlgo": "AES",
  "encPassKey": "testingtest@1234",
  "expiresOn": "2023-10-08T07:44:51.000Z",
  "expiryUrl": "https://touchstone1.webexcampaign.io/expired",
  "urlContext": {
    "msisdn": "123456789"
  },
  "referenceId": "6391b6da5481373783e33952"
}

]

Response Example

[
    {
        "code": "1001",
        "message": "SmartLinks Details Added Successfully.",
        "id": "93clT79V",
        "smartLink": "https://ciscowebexcampaign6.com/93clT79V"
    },
    {
        "code": "1001",
        "message": "SmartLinks Details Added Successfully.",
        "id": "2WTKJKgk",
        "smartLink": "https://ciscowebexcampaign6.com/2WTKJKgk"
    },
    {
        "code": "1001",
        "message": "SmartLinks Details Added Successfully.",
        "id": "UH4K35No",
        "smartLink": "https://ciscowebexcampaign6.com/UH4K35No"
    }
]

Response Parameters

This API will return the following response parameters:

ParametersDescription
codeReturns the success response code
messageReturns the confirmation message
idReturns the smart link id.
smartlinkReturns the smart link.

Failure Response Codes

The API will return a code within the response as per the following table in case of failure scenarios.

HTTP Status CodeCode within API ResponseDescription
400NABad request
401NAInvalid token or Access token expired
404NANo Entity exists with the given Id.
405NAMethod not supported
500NAInternal server error.
Language