Journeys
  • Introduction
  • Getting access
  • Authentication
  • Terminology
  • API reference
    • Authorization
      • Authorize
    • Company
      • Retrieve company
      • Update company
    • Company lists
      • Retrieve company list
      • List company lists
      • Create company list
      • Update company list
      • Delete company list
    • Journeys
      • List journeys
      • Retrieve journey
      • Delete journey
      • Edit journey
    • Journey actions
      • List journey actions
      • Retrieve journey action
      • Delete journey action
    • Traveller journeys
      • List traveller journeys
      • Retrieve traveller journey
      • Retrieve actions
      • Start traveller journey
      • Create traveller journey
      • Delete traveller journey
    • Traveller journey actions
      • List journey traveller actions
      • Retrieve journey traveller action
    • Users
      • Invite
      • List users
      • Create user
      • Retrieve user
      • Delete user
      • Update user
  • Specification
Powered by GitBook
On this page
  1. API reference
  2. Journey actions

List journey actions

PreviousJourney actionsNextRetrieve journey action

Last updated 1 year ago

Request samples

import requests
response = requests.get(
    "https://journeys-api.50skills.app/v1/journey-actions/?journey_id=48GX8GYl",
)
print(response.json())
fetch("https://journeys-api.50skills.app/v1/journey-actions/?journey_id=48GX8GYl")
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error(error));                                     

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
   }
]

List journey actions

get

List all actions for journey

Authorizations
Query parameters
journey_idintegerOptional

The id of the journey in question

Responses
200Success
application/json
401
Unauthorized
[
  {
    "shortId": "qwKJ3z9B",
    "action": "journey_start",
    "description": null,
    "values": null,
    "isAutomatic": false,
    "assignees": [],
    "parentAction": null,
    "journey": "48GX8GYl",
    "isConfigured": true
  }
]