Skip to main content

AutomationService

A list of all methods in the AutomationService service. Click on the method name to view detailed information about that method.

MethodsDescription
CustomTriggers_TriggerByContactId
CustomTriggers_TriggerBySocialSecurityNumber
CustomTriggers_TriggerByExternalContactId
CustomTriggers_TriggerByContactTypeAndKey

CustomTriggers_TriggerByContactId

  • HTTP Method: POST
  • Endpoint: /api/v2/automation/customTriggers/{triggerId}/triggerByContactId/{contactId}

Parameters

NameTypeRequiredDescription
bodyanyThe request body.
triggerIdstring
contactIdstring

Return Type

any

Example Usage Code Snippet

import { VoyadoEngage } from 'voyado_engage';

(async () => {
const voyadoEngage = new VoyadoEngage({
token: 'YOUR_TOKEN',
});

const { data } = await voyadoEngage.automation.customTriggersTriggerByContactId('triggerId', 'contactId', input);

console.log(data);
})();

CustomTriggers_TriggerBySocialSecurityNumber

  • HTTP Method: POST
  • Endpoint: /api/v2/automation/customTriggers/{triggerId}/triggerBySocialSecurityNumber/{ssn}

Parameters

NameTypeRequiredDescription
bodyanyThe request body.
triggerIdstring
ssnstring

Return Type

any

Example Usage Code Snippet

import { VoyadoEngage } from 'voyado_engage';

(async () => {
const voyadoEngage = new VoyadoEngage({
token: 'YOUR_TOKEN',
});

const { data } = await voyadoEngage.automation.customTriggersTriggerBySocialSecurityNumber('triggerId', 'ssn', input);

console.log(data);
})();

CustomTriggers_TriggerByExternalContactId

  • HTTP Method: POST
  • Endpoint: /api/v2/automation/customTriggers/{triggerId}/triggerByExternalContactId/{externalId}

Parameters

NameTypeRequiredDescription
bodyanyThe request body.
triggerIdstring
externalIdstring

Return Type

any

Example Usage Code Snippet

import { VoyadoEngage } from 'voyado_engage';

(async () => {
const voyadoEngage = new VoyadoEngage({
token: 'YOUR_TOKEN',
});

const { data } = await voyadoEngage.automation.customTriggersTriggerByExternalContactId(
'triggerId',
'externalId',
input,
);

console.log(data);
})();

CustomTriggers_TriggerByContactTypeAndKey

  • HTTP Method: POST
  • Endpoint: /api/v2/automation/customTriggers/{triggerId}/triggerByContactTypeAndKey/{contactType}/{keyValue}

Parameters

NameTypeRequiredDescription
bodyanyThe request body.
triggerIdstring
contactTypestring
keyValuestring

Return Type

any

Example Usage Code Snippet

import { VoyadoEngage } from 'voyado_engage';

(async () => {
const voyadoEngage = new VoyadoEngage({
token: 'YOUR_TOKEN',
});

const { data } = await voyadoEngage.automation.customTriggersTriggerByContactTypeAndKey(
'triggerId',
'contactType',
'keyValue',
input,
);

console.log(data);
})();

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →