Subscribes a lead to a specified sequence, at a particular step within the sequence. That step is defined by the step’s box number.  Note that the sequence and the step number must be already created in your account (https://app.kartra.com/communication/sequences).  

TypeParametersValues
POSTcmd*subscribe_lead_to_sequence_at_step
POSTsequence_name*string
POSTstep*string

* Required fields Here is an example:

'lead' => [
    'email' => 'example@email.com'
],
'actions' => [
    '0' => [
        'cmd' => 'subscribe_lead_to_sequence_at_step',
        'sequence_name' => 'Sequence name',
        'step' => '1'
    ]
]

Success message:

{
  "status": "Success",
  "message": "Lead added to sequence",
  "type": "107"
}
Error Cases:
Type NumberMessageCause
226Sequence cannot be empty
  • sequence_name parameter is mandatory and cannot be empty.
225Step cannot be empty
  • step parameter is mandatory and cannot be empty.
219Sequence does not exist
  • The sequence is not in our database.
229Step has to be alphanumeric
  • step parameter needs to have alphanumeric characters.
230Step does not exist
  • The sequence step was not found in our database.
An example of an error message:
{
  "status": "Error",
  "message": "Sequence cannot be empty",
  "type": "226"
}