List journey actions

Request samples

import requests
response = requests.get(
    "https://journeys-api.50skills.app/v1/journey-actions/?journey_id=48GX8GYl",
)
print(response.json())

Response samples

[
   {
      "shortId":"YGPe0LKw",
      "action":"journey_start",
      "description":null,
      "values":null,
      "isAutomatic":false,
      "assignees":[
         
      ],
      "parentAction":null,
      "dependants":[
         
      ],
      "isConfigured":true
   },
   {
      "shortId":"OynNw8yR",
      "action":"send_email",
      "description":"Send E-mail to Sauron",
      "values":{
         "content":{
            "value":"Dear Sauron,This is an informational post that {{ company_traveller_first_name }} is coming to visit tomorrow afternoon.",
            "variables":{
               "company_traveller_first_name":{
                  "type":"text",
                  "field":"first_name",
                  "label":"Traveller first name",
                  "action":"undefined",
                  "source":"company_traveller"
               }
            }
         },
         "subject":{
            "value":"{{ company_traveller_name }} is coming your way",
            "variables":{
               "company_traveller_name":{
                  "type":"text",
                  "field":"name",
                  "label":"Traveller full name",
                  "action":"undefined",
                  "source":"company_traveller"
               }
            }
         },
         "recipients":[
            {
               "value":"{{ traveller_email }}",
               "variables":{
                  "traveller_email":{
                     "type":"email",
                     "field":"email",
                     "label":"Traveller email",
                     "action":"undefined",
                     "source":"traveller"
                  }
               }
            }
         ],
         "attachments":[
            
         ]
      },
      "isAutomatic":true,
      "assignees":[
         
      ],
      "parentAction":{
         "shortId":"YGPe0LKw",
         "action":"journey_start",
         "values":null
      },
      "dependants":[
         
      ],
      "isConfigured":true
   },
   {
      "shortId":"vzL7jYK3",
      "action":"send_sms",
      "description":"Send follow up SMS",
      "values":{
         "message":{
            "value":"Dear Frodo Baggins, this is an automatic text reminder about your trip to Mordor.",
            "variables":{
               
            }
         },
         "recipients":[
            {
               "value":"{{ company_traveller_phone }}",
               "variables":{
                  "company_traveller_phone":{
                     "type":"phone",
                     "field":"phone",
                     "label":"Traveller phone",
                     "action":"undefined",
                     "source":"company_traveller"
                  }
               }
            }
         ]
      },
      "isAutomatic":true,
      "assignees":[
         
      ],
      "parentAction":{
         "shortId":"OynNw8yR",
         "action":"send_email",
         "values":{
            "content":{
               "value":"Dear Sauron,This is an informational post that {{ company_traveller_first_name }} is coming to visit tomorrow afternoon.",
               "variables":{
                  "company_traveller_first_name":{
                     "type":"text",
                     "field":"first_name",
                     "label":"Traveller first name",
                     "action":"undefined",
                     "source":"company_traveller"
                  }
               }
            },
            "subject":{
               "value":"{{ company_traveller_name }} is coming your way",
               "variables":{
                  "company_traveller_name":{
                     "type":"text",
                     "field":"name",
                     "label":"Traveller full name",
                     "action":"undefined",
                     "source":"company_traveller"
                  }
               }
            },
            "recipients":[
               {
                  "value":"{{ traveller_email }}",
                  "variables":{
                     "traveller_email":{
                        "type":"email",
                        "field":"email",
                        "label":"Traveller email",
                        "action":"undefined",
                        "source":"traveller"
                     }
                  }
               }
            ],
            "attachments":[
               
            ]
         }
      },
      "dependants":[
         
      ],
      "isConfigured":true
   }
]

Last updated