APITatTool APIAPI reference

Read a permitted Flow with webhook secrets removed. REST returns published definitions only.

Read a permitted Flow with webhook secrets removed. REST returns published definitions only.

Read a permitted Flow with webhook secrets removed. REST returns published definitions only.

GET /api/v1/flows/{flowId}

Read a permitted Flow with webhook secrets removed. REST returns published definitions only.

API version: 1.0.0; source revision: development; SHA-256: 48cf3a12f6c45a2618345f604165f68f7efcee3648a8b923ccd02ef716aa8a9e.

Group: Flows.

Required permissions: ["flows:read"].

Authentication: Authorization: Bearer <user-owned-api-key>.

Parameters

path: flowId

Required. Flow flowId.

{
  "format": "uuid",
  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
  "type": "string"
}

Request examples

[
  {
    "name": "read",
    "request": {
      "path": {
        "flowId": "00000000-0000-4000-8000-000000000228"
      },
      "query": {}
    }
  }
]

curl

curl --request GET \
  --header 'Authorization: Bearer <user-owned-api-key>' \
  "$TATTOOL_API_URL/api/v1/flows/00000000-0000-4000-8000-000000000228"

Responses

200

Read a permitted Flow with webhook secrets removed. REST returns published definitions only. Media type: application/json

  • data
  • data.active
  • data.anchorField
  • data.definition
  • data.definition.edges
  • data.definition.edges[].id
  • data.definition.edges[].source
  • data.definition.edges[].sourceHandle
  • data.definition.edges[].target
  • data.definition.edges[].targetHandle
  • data.definition.edges[].type
  • data.definition.name
  • data.definition.nodes
  • data.definition.nodes[].data
  • data.definition.nodes[].id
  • data.definition.nodes[].position
  • data.definition.nodes[].position.x
  • data.definition.nodes[].position.y
  • data.definition.nodes[].type
  • data.definition.nodes[].validationIssues
  • data.definition.nodes[].validationIssues[].field
  • data.definition.nodes[].validationIssues[].message
  • data.definition.runAlways
  • data.definition.version
  • data.eventKind
  • data.id
  • data.name
  • data.revision
  • data.runAlways
  • data.status
  • data.triggerIntervalSeconds
  • data.triggerType
  • data.url

Schema and constraints:

{
  "properties": {
    "data": {
      "description": "Flow data.",
      "properties": {
        "active": {
          "description": "Flow active.",
          "type": "boolean"
        },
        "anchorField": {
          "description": "Explicit relative anchor or current booking/consultation startTime default.",
          "type": [
            "string",
            "null"
          ]
        },
        "definition": {
          "properties": {
            "edges": {
              "description": "Flow edges.",
              "items": {
                "properties": {
                  "id": {
                    "description": "Flow id.",
                    "type": "string"
                  },
                  "source": {
                    "description": "Flow source.",
                    "type": "string"
                  },
                  "sourceHandle": {
                    "description": "Flow sourceHandle.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "target": {
                    "description": "Flow target.",
                    "type": "string"
                  },
                  "targetHandle": {
                    "description": "Flow targetHandle.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "type": {
                    "description": "Flow type.",
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "source",
                  "target"
                ],
                "type": "object"
              },
              "maxItems": 1000,
              "type": "array"
            },
            "name": {
              "description": "Flow name.",
              "type": "string"
            },
            "nodes": {
              "description": "Flow nodes.",
              "items": {
                "properties": {
                  "data": {
                    "additionalProperties": {
                      "$ref": "#/components/schemas/__schema0"
                    },
                    "description": "Flow data.",
                    "propertyNames": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "id": {
                    "description": "Flow id.",
                    "type": "string"
                  },
                  "position": {
                    "description": "Flow position.",
                    "properties": {
                      "x": {
                        "description": "Flow x.",
                        "type": "number"
                      },
                      "y": {
                        "description": "Flow y.",
                        "type": "number"
                      }
                    },
                    "required": [
                      "x",
                      "y"
                    ],
                    "type": "object"
                  },
                  "type": {
                    "description": "Flow type.",
                    "type": "string"
                  },
                  "validationIssues": {
                    "description": "Flow validationIssues.",
                    "items": {
                      "properties": {
                        "field": {
                          "description": "Flow field.",
                          "type": "string"
                        },
                        "message": {
                          "description": "Flow message.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "field",
                        "message"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "id",
                  "type",
                  "position",
                  "data"
                ],
                "type": "object"
              },
              "maxItems": 500,
              "type": "array"
            },
            "runAlways": {
              "description": "Flow runAlways.",
              "type": "boolean"
            },
            "version": {
              "const": 1,
              "description": "Flow version.",
              "type": "number"
            }
          },
          "required": [
            "version",
            "name",
            "runAlways",
            "nodes",
            "edges"
          ],
          "type": "object"
        },
        "eventKind": {
          "description": "Flow eventKind.",
          "enum": [
            "booking",
            "consultation",
            "payment",
            "payment_request",
            "ink",
            "consent_form",
            "todo",
            "time_off",
            "guest_spot",
            "closure"
          ],
          "type": "string"
        },
        "id": {
          "description": "Flow id.",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
          "type": "string"
        },
        "name": {
          "description": "Flow name.",
          "type": "string"
        },
        "revision": {
          "description": "Flow revision.",
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        "runAlways": {
          "description": "Flow runAlways.",
          "type": "boolean"
        },
        "status": {
          "description": "Flow status.",
          "enum": [
            "draft",
            "published",
            "archived"
          ],
          "type": "string"
        },
        "triggerIntervalSeconds": {
          "description": "Explicit seconds before/after the anchor; booking and consultation default to startTime.",
          "type": [
            "number",
            "null"
          ]
        },
        "triggerType": {
          "description": "Flow triggerType.",
          "enum": [
            "created",
            "updated",
            "canceled",
            "before",
            "after",
            "paid",
            "rejected",
            "expired"
          ],
          "type": "string"
        },
        "url": {
          "anyOf": [
            {
              "format": "uri",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Authenticated TatTool page. Present this exact URL as a clickable link when referring to the record; do not invent routes. Null means unavailable."
        }
      },
      "required": [
        "id",
        "name",
        "status",
        "revision",
        "eventKind",
        "triggerType",
        "triggerIntervalSeconds",
        "anchorField",
        "runAlways",
        "active",
        "definition"
      ],
      "type": "object"
    }
  },
  "required": [
    "data"
  ],
  "type": "object"
}

Synthetic example:

{
  "data": {
    "active": true,
    "anchorField": "startTime",
    "definition": {
      "edges": [],
      "name": "Booking confirmation",
      "nodes": [],
      "runAlways": true,
      "version": 1
    },
    "eventKind": "booking",
    "id": "00000000-0000-4000-8000-000000000228",
    "name": "Booking confirmation",
    "revision": 1,
    "runAlways": true,
    "status": "published",
    "triggerIntervalSeconds": 1,
    "triggerType": "created"
  }
}

401

Authentication is required. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "UNAUTHENTICATED",
    "message": "Authentication is required.",
    "retryable": false
  }
}

403

Access denied. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "FORBIDDEN",
    "message": "Access denied.",
    "retryable": false
  }
}

404

Record not found. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "NOT_FOUND",
    "message": "Record not found.",
    "retryable": false
  }
}

409

The operation conflicts with the current state. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "CONFLICT",
    "message": "The operation conflicts with the current state.",
    "reason": "DOMAIN_CONFLICT",
    "retryable": false
  }
}

422

Invalid operation input. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "INVALID_INPUT",
    "message": "Invalid operation input.",
    "retryable": false
  }
}

429

Request limit reached. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Request limit reached.",
    "retryable": true,
    "retryAfterSeconds": 60
  }
}

503

The provider is unavailable. Media type: application/json

  • error
  • error.code
  • error.fieldErrors
  • error.message
  • error.operationId
  • error.reason
  • error.retryable
  • error.retryAfterSeconds

Schema and constraints:

{
  "properties": {
    "error": {
      "properties": {
        "code": {
          "description": "Stable safe failure code.",
          "enum": [
            "INVALID_INPUT",
            "UNAUTHENTICATED",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "RATE_LIMITED",
            "CAPABILITY_UNAVAILABLE",
            "PROVIDER_UNAVAILABLE"
          ],
          "type": "string"
        },
        "fieldErrors": {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": "Safe field-level validation details.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "message": {
          "description": "Fixed public failure message, without provider or private details.",
          "type": "string"
        },
        "operationId": {
          "description": "Original domain recovery operation ID when available.",
          "type": "string"
        },
        "reason": {
          "description": "Safe conflict or availability category; stale versions must not trigger an automatic overwrite.",
          "enum": [
            "STALE_VERSION",
            "EDIT_SESSION_EXPIRED",
            "IDEMPOTENCY_MISMATCH",
            "DOMAIN_CONFLICT",
            "SLOT_UNAVAILABLE",
            "INCOMPLETE_AVAILABILITY",
            "MISSING_OPENING_HOURS"
          ],
          "type": "string"
        },
        "retryable": {
          "description": "Whether the same logical request may safely resume; never permission for blind provider resubmission.",
          "type": "boolean"
        },
        "retryAfterSeconds": {
          "description": "Seconds before retry or reconciliation.",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  },
  "required": [
    "error"
  ],
  "type": "object"
}

Synthetic example:

{
  "error": {
    "code": "PROVIDER_UNAVAILABLE",
    "message": "The provider is unavailable.",
    "retryable": false
  }
}