Retrieve journey action
Last updated
Last updated
import requests
response = requests.get(
"https://journeys-api.50skills.app/v1/journey-actions/1YKMe7K5/",
)
print(response.json())
fetch("https://journeys-api.50skills.app/v1/journey-actions/1YKMe7K5/")
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));
{
"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":[
],
"actionVariables":[
{
"action":"journey_start",
"label":null,
"description":null,
"shortId":"YGPe0LKw",
"fields":{
}
}
],
"isConfigured":true,
"ancestors":[
"YGPe0LKw"
],
"descendants":[
"vzL7jYK3"
],
"isInsideLoop":false,
"groupActions":[
],
"journey":"8oz3gXzp",
"reminder":null
}
Retrieve a journey action
v1/journey-actions/{id}//
{
"shortId": "1YKMe7K5",
"action": "send_sms",
"description": "Send sms to traveller",
"isAutomatic": false,
"parentAction": "qwKJ3z9B",
"journey": "48GX8GYl",
"isConfigured": true,
"assignees": [],
"values": {
"message": {
"value": "The message sent"
},
"recipients": [
{
"value": "+3546666666"
}
]
}
}