Saltar al contenido principal
GET
/
v1
/
workflow
List All Flows
import requests

url = "https://api.diga.io/v1/workflow/"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "data": [
    {
      "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
        }
      }
    }
  ],
  "has_more": true,
  "first_id": "<string>",
  "last_id": "<string>",
  "current_page": 123,
  "total_pages": 123
}

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parámetros de consulta

after
string | null
before
string | null
page
integer | null
Rango requerido: x >= 1
limit
integer
predeterminado:10
Rango requerido: 1 <= x <= 30
order
string
predeterminado:desc
Allowed value: "desc"
status
enum<string> | null
Opciones disponibles:
ENABLED,
DISABLED
is_diga_trigger
boolean | null
flow_category
enum<string> | null
Opciones disponibles:
post_call,
during_call,
pre_call,
empty

Respuesta

Successful Response

data
FlowAllResponse · object[]
requerido
has_more
boolean
requerido
first_id
string | null
last_id
string | null
current_page
integer | null
total_pages
integer | null