Creating a new REST integration

To create a new REST integration key pair, complete the following steps:

Procedure

  1. Select > REST.
    The REST page appears.
  2. Click + REST Integration.
    The New REST Integration page appears.
  3. Provide values for the following fields:
    • App Name - Mandatory.
    • Description - Optional.
  4. Click Generate Keys.
    The system generates a ClientID and ClientSecret.
  5. Use the toggle bar to change the Status to Active or Inactive. By default, the Status is Active.
  6. To save the REST integration, click Save.
    To send audience data to Journey, follow the details mentioned on the REST Entry Source used for configuring the REST end point. Use the ClientID and ClientSecret, which you received when executing Step (4), for configuring the REST end point on Entry Source. For more information, see Creating Entry sources.
  7. Generate the authentication token using the URL example: "http://comp-4946-.nonprod.hclpnp.com:80/journey/api/thirdpartylogin". Use this authentication token and entry source code while sending the data.
    Note: Entry source code is mandatory to send data on REST entry source.
  8. 8. REST API end point (as available on REST entry source creation page) example - http://comp-4946-1.nonprod.hclpnp.com:80/journey/api/entrysources/rest/data
  9. Sample format of JSON that /journey/api/entrysources/rest/data takes as input is as below -

    {

    "entrySourceCode": "ES-00000125",

    "data": [

    { "Email": "pooja_sharma@hcl.com", "FirstName": "Pooja", "LastName": "Sharma", "Age": 30, "Address": 125, "CreatedDate": "15 09 22", "PHONE_NUMBER": "+919623444160", "DeviceID":"ac79649c-ca1b-4c3f-99ce-56d5ad69fbba" }

    ]

    }

    Note: The json fields should be changed as per the data definition which is associated with the journey.
  10. Journey should be in published state before pushing the data on REST entry source.