Retrieve actions for a traveller journey
import requests response = requests.get( "https://journeys-api.50skills.app/v1/traveller-journeys/actions/?journey=8om3gXzp", ) print(response.json()
{ "eJzQZrym":[ { "shortId":"mK77gpKZ", "action":"journey_start", "description":null, "status":"waiting_to_be_started", "result":null }, { "shortId":"ZzwlvXyw", "action":"send_sms", "description":"Send follow up SMS", "status":"next_up", "result":null } ], "6mK7ZPGZ":[ { "shortId":"8GXqV5KY", "action":"journey_start", "description":null, "status":"waiting_to_be_started", "result":null }, { "shortId":"OzYeb6z5", "action":"send_sms", "description":"Send follow up SMS", "status":"next_up", "result":null } ] }
Last updated 8 months ago
const response = await fetch('https://journeys-api.50skills.app/v1/traveller-journeys/actions/', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "short_id": "text", "actions": [ { "short_id": "text", "action": "text", "description": "text", "status": "text", "result": { "short_id": "text", "date_started": "2024-07-27T06:29:43.299Z", "date_updated": "2024-07-27T06:29:43.299Z", "date_succeeded": "2024-07-27T06:29:43.299Z", "date_failed": "2024-07-27T06:29:43.299Z", "status": "started", "message": "text" } } ] } ]