import requests
url = "https://api.diga.io/v1/workflow/{flow_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"status": "ENABLED",
"flow_category": "post_call",
"trigger": {
"name": "<string>",
"type": "<string>",
"valid": true,
"displayName": "<string>",
"settings": {
"pieceName": "<string>",
"pieceVersion": "<string>",
"triggerName": "<string>",
"input": {},
"propertySettings": {},
"sampleData": {}
},
"nextAction": {
"name": "<string>",
"type": "<string>",
"valid": true,
"displayName": "<string>",
"skip": true,
"settings": {
"pieceName": "<string>",
"pieceVersion": "<string>",
"actionName": "<string>",
"triggerName": "<string>",
"input": {},
"propertySettings": {},
"sampleData": {},
"branches": [
{}
],
"executionType": "<string>"
},
"children": [
"<unknown>"
],
"nextAction": null
}
}
}Get a single flow by ID.
Args: flow_id: The workflow flow ID. auth_context: Authentication context. session: Database session.
Returns: Flow details.
import requests
url = "https://api.diga.io/v1/workflow/{flow_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"status": "ENABLED",
"flow_category": "post_call",
"trigger": {
"name": "<string>",
"type": "<string>",
"valid": true,
"displayName": "<string>",
"settings": {
"pieceName": "<string>",
"pieceVersion": "<string>",
"triggerName": "<string>",
"input": {},
"propertySettings": {},
"sampleData": {}
},
"nextAction": {
"name": "<string>",
"type": "<string>",
"valid": true,
"displayName": "<string>",
"skip": true,
"settings": {
"pieceName": "<string>",
"pieceVersion": "<string>",
"actionName": "<string>",
"triggerName": "<string>",
"input": {},
"propertySettings": {},
"sampleData": {},
"branches": [
{}
],
"executionType": "<string>"
},
"children": [
"<unknown>"
],
"nextAction": null
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Flow response.
ENABLED, DISABLED post_call, during_call, pre_call, empty Trigger definition.
Show child attributes