Get a specific workflow by ID.
Python
import requests url = 'https://api.simplex.sh/workflow/your_workflow_id' headers = { 'X-API-Key': 'your_api_key_here' } response = requests.get(url, headers=headers) result = response.json() if result['succeeded']: workflow = result['workflow'] print(f"Workflow: {workflow['name']}") print(f"Actions: {len(workflow['actions'])} actions")
{ "succeeded": true, "workflow": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "actions": [ {} ], "variables": {}, "url": "<string>", "metadata": "<string>" } }
The ID of the workflow to retrieve
Workflow retrieved successfully
Whether the request succeeded
Show child attributes
The workflow ID
The workflow name
Array of actions in the workflow
Variables used in the workflow
Starting URL for the workflow
Additional metadata about the workflow
Was this page helpful?